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

Side by Side Diff: ui/aura/window_tree_host_delegate.h

Issue 147203004: aura: Remove event-dispatch methods from WindowTreeHostDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/window_targeter_unittest.cc ('k') | ui/aura/window_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ROOT_WINDOW_HOST_DELEGATE_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 namespace aura { 25 namespace aura {
26 26
27 class RootWindow; 27 class RootWindow;
28 28
29 // A private interface used by WindowTreeHost implementations to communicate 29 // A private interface used by WindowTreeHost implementations to communicate
30 // with their owning RootWindow. 30 // with their owning RootWindow.
31 class AURA_EXPORT WindowTreeHostDelegate { 31 class AURA_EXPORT WindowTreeHostDelegate {
32 public: 32 public:
33 virtual bool OnHostKeyEvent(ui::KeyEvent* event) = 0;
34 virtual bool OnHostMouseEvent(ui::MouseEvent* event) = 0;
35 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) = 0;
36 virtual bool OnHostTouchEvent(ui::TouchEvent* event) = 0;
37 virtual void OnHostCancelMode() = 0; 33 virtual void OnHostCancelMode() = 0;
38 34
39 // Called when the windowing system activates the window. 35 // Called when the windowing system activates the window.
40 virtual void OnHostActivated() = 0; 36 virtual void OnHostActivated() = 0;
41 37
42 // Called when system focus is changed to another window. 38 // Called when system focus is changed to another window.
43 virtual void OnHostLostWindowCapture() = 0; 39 virtual void OnHostLostWindowCapture() = 0;
44 40
45 // Called when the windowing system has mouse grab because it's performing a 41 // Called when the windowing system has mouse grab because it's performing a
46 // window move on our behalf, but we should still paint as if we're active. 42 // window move on our behalf, but we should still paint as if we're active.
47 virtual void OnHostLostMouseGrab() = 0; 43 virtual void OnHostLostMouseGrab() = 0;
48 44
49 virtual void OnHostMoved(const gfx::Point& origin) = 0; 45 virtual void OnHostMoved(const gfx::Point& origin) = 0;
50 virtual void OnHostResized(const gfx::Size& size) = 0; 46 virtual void OnHostResized(const gfx::Size& size) = 0;
51 47
52 virtual RootWindow* AsRootWindow() = 0; 48 virtual RootWindow* AsRootWindow() = 0;
53 virtual const RootWindow* AsRootWindow() const = 0; 49 virtual const RootWindow* AsRootWindow() const = 0;
54 50
55 virtual ui::EventProcessor* GetEventProcessor() = 0; 51 virtual ui::EventProcessor* GetEventProcessor() = 0;
56 52
57 protected: 53 protected:
58 virtual ~WindowTreeHostDelegate() {} 54 virtual ~WindowTreeHostDelegate() {}
59 }; 55 };
60 56
61 } // namespace aura 57 } // namespace aura
62 58
63 #endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_ 59 #endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/window_targeter_unittest.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698