summaryrefslogtreecommitdiffstats
path: root/ui/aura/test/test_event_client.h
blob: 3f4520d4b1cca493b684d3b276c4c15aef0404fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_AURA_TEST_TEST_EVENT_CLIENT_H_
#define UI_AURA_TEST_TEST_EVENT_CLIENT_H_
#pragma once

#include "base/logging.h"
#include "ui/aura/client/event_client.h"

namespace aura {
namespace test {

class TestEventClient : public client::EventClient {
 public:
  explicit TestEventClient(RootWindow* root_window);
  virtual ~TestEventClient();

 private:
  // Overridden from client::EventClient:
  virtual bool CanProcessEventsWithinSubtree(
      const Window* window) const OVERRIDE;

  RootWindow* root_window_;
  client::EventClient* last_event_client_;

  DISALLOW_COPY_AND_ASSIGN(TestEventClient);
};

}  // namespace test
}  // namespace aura


#endif  // UI_AURA_TEST_TEST_EVENT_CLIENT_H_