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

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

Issue 10831240: Remove TouchEvent interface, and rename TouchEventImpl to TouchEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge-tot Created 8 years, 4 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/root_window.cc ('k') | ui/aura/root_window_host_linux.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 namespace gfx { 8 namespace gfx {
9 class Size; 9 class Size;
10 } 10 }
11 11
12 namespace ui { 12 namespace ui {
13 class KeyEvent; 13 class KeyEvent;
14 class MouseEvent; 14 class MouseEvent;
15 class ScrollEvent; 15 class ScrollEvent;
16 class TouchEventImpl; 16 class TouchEvent;
17 } 17 }
18 18
19 namespace aura { 19 namespace aura {
20 20
21 class RootWindow; 21 class RootWindow;
22 22
23 // A private interface used by RootWindowHost implementations to communicate 23 // A private interface used by RootWindowHost implementations to communicate
24 // with their owning RootWindow. 24 // with their owning RootWindow.
25 class AURA_EXPORT RootWindowHostDelegate { 25 class AURA_EXPORT RootWindowHostDelegate {
26 public: 26 public:
27 virtual bool OnHostKeyEvent(ui::KeyEvent* event) = 0; 27 virtual bool OnHostKeyEvent(ui::KeyEvent* event) = 0;
28 virtual bool OnHostMouseEvent(ui::MouseEvent* event) = 0; 28 virtual bool OnHostMouseEvent(ui::MouseEvent* event) = 0;
29 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) = 0; 29 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) = 0;
30 virtual bool OnHostTouchEvent(ui::TouchEventImpl* event) = 0; 30 virtual bool OnHostTouchEvent(ui::TouchEvent* event) = 0;
31 31
32 virtual void OnHostLostCapture() = 0; 32 virtual void OnHostLostCapture() = 0;
33 33
34 virtual void OnHostPaint() = 0; 34 virtual void OnHostPaint() = 0;
35 35
36 virtual void OnHostResized(const gfx::Size& size) = 0; 36 virtual void OnHostResized(const gfx::Size& size) = 0;
37 37
38 virtual float GetDeviceScaleFactor() = 0; 38 virtual float GetDeviceScaleFactor() = 0;
39 39
40 virtual RootWindow* AsRootWindow() = 0; 40 virtual RootWindow* AsRootWindow() = 0;
41 41
42 protected: 42 protected:
43 virtual ~RootWindowHostDelegate() {} 43 virtual ~RootWindowHostDelegate() {}
44 }; 44 };
45 45
46 } // namespace aura 46 } // namespace aura
47 47
48 #endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_ 48 #endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698