Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: ui/aura/test/event_generator_delegate_aura.h

Issue 684483002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/aura/test/aura_test_base.h ('k') | ui/aura/test/event_generator_delegate_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_TEST_EVENT_GENERATOR_DELEGATE_AURA_H_ 5 #ifndef UI_AURA_TEST_EVENT_GENERATOR_DELEGATE_AURA_H_
6 #define UI_AURA_TEST_EVENT_GENERATOR_DELEGATE_AURA_H_ 6 #define UI_AURA_TEST_EVENT_GENERATOR_DELEGATE_AURA_H_
7 7
8 #include "ui/events/test/event_generator.h" 8 #include "ui/events/test/event_generator.h"
9 9
10 namespace aura { 10 namespace aura {
11 class Window; 11 class Window;
12 class WindowTreeHost; 12 class WindowTreeHost;
13 13
14 namespace client { 14 namespace client {
15 class ScreenPositionClient; 15 class ScreenPositionClient;
16 } 16 }
17 17
18 namespace test { 18 namespace test {
19 19
20 void InitializeAuraEventGeneratorDelegate(); 20 void InitializeAuraEventGeneratorDelegate();
21 21
22 // Implementation of ui::test::EventGeneratorDelegate for Aura. 22 // Implementation of ui::test::EventGeneratorDelegate for Aura.
23 class EventGeneratorDelegateAura : public ui::test::EventGeneratorDelegate { 23 class EventGeneratorDelegateAura : public ui::test::EventGeneratorDelegate {
24 public: 24 public:
25 EventGeneratorDelegateAura(); 25 EventGeneratorDelegateAura();
26 virtual ~EventGeneratorDelegateAura(); 26 ~EventGeneratorDelegateAura() override;
27 27
28 // Returns the host for given point. 28 // Returns the host for given point.
29 virtual WindowTreeHost* GetHostAt(const gfx::Point& point) const = 0; 29 virtual WindowTreeHost* GetHostAt(const gfx::Point& point) const = 0;
30 30
31 // Returns the screen position client that determines the 31 // Returns the screen position client that determines the
32 // coordinates used in EventGenerator. EventGenerator uses 32 // coordinates used in EventGenerator. EventGenerator uses
33 // root Window's coordinate if this returns NULL. 33 // root Window's coordinate if this returns NULL.
34 virtual client::ScreenPositionClient* GetScreenPositionClient( 34 virtual client::ScreenPositionClient* GetScreenPositionClient(
35 const aura::Window* window) const = 0; 35 const aura::Window* window) const = 0;
36 36
37 // Overridden from ui::test::EventGeneratorDelegate: 37 // Overridden from ui::test::EventGeneratorDelegate:
38 virtual ui::EventTarget* GetTargetAt(const gfx::Point& location) override; 38 ui::EventTarget* GetTargetAt(const gfx::Point& location) override;
39 virtual ui::EventSource* GetEventSource(ui::EventTarget* target) override; 39 ui::EventSource* GetEventSource(ui::EventTarget* target) override;
40 virtual gfx::Point CenterOfTarget( 40 gfx::Point CenterOfTarget(const ui::EventTarget* target) const override;
41 const ui::EventTarget* target) const override; 41 gfx::Point CenterOfWindow(gfx::NativeWindow window) const override;
42 virtual gfx::Point CenterOfWindow(gfx::NativeWindow window) const override; 42 void ConvertPointFromTarget(const ui::EventTarget* target,
43 virtual void ConvertPointFromTarget(const ui::EventTarget* target, 43 gfx::Point* point) const override;
44 gfx::Point* point) const override; 44 void ConvertPointToTarget(const ui::EventTarget* target,
45 virtual void ConvertPointToTarget(const ui::EventTarget* target, 45 gfx::Point* point) const override;
46 gfx::Point* point) const override; 46 void ConvertPointFromHost(const ui::EventTarget* hosted_target,
47 virtual void ConvertPointFromHost(const ui::EventTarget* hosted_target, 47 gfx::Point* point) const override;
48 gfx::Point* point) const override;
49 48
50 private: 49 private:
51 DISALLOW_COPY_AND_ASSIGN(EventGeneratorDelegateAura); 50 DISALLOW_COPY_AND_ASSIGN(EventGeneratorDelegateAura);
52 }; 51 };
53 52
54 } // namespace test 53 } // namespace test
55 } // namespace aura 54 } // namespace aura
56 55
57 #endif // UI_AURA_TEST_EVENT_GENERATOR_DELEGATE_AURA_H_ 56 #endif // UI_AURA_TEST_EVENT_GENERATOR_DELEGATE_AURA_H_
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_base.h ('k') | ui/aura/test/event_generator_delegate_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698