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

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

Issue 10825050: Introduce RootWindowHostDelegate. The RootWindowHost performs most of its communication with RootWi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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_host.h ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
7
8 namespace gfx {
9 class Size;
10 }
11
12 namespace aura {
13
14 class KeyEvent;
15 class MouseEvent;
16 class RootWindow;
17 class ScrollEvent;
18 class TouchEvent;
19
20 // A private interface used by RootWindowHost implementations to communicate
21 // with their owning RootWindow.
22 class AURA_EXPORT RootWindowHostDelegate {
23 public:
24 virtual bool OnHostKeyEvent(KeyEvent* event) = 0;
25 virtual bool OnHostMouseEvent(MouseEvent* event) = 0;
26 virtual bool OnHostScrollEvent(ScrollEvent* event) = 0;
27 virtual bool OnHostTouchEvent(TouchEvent* event) = 0;
28
29 virtual void OnHostLostCapture() = 0;
30
31 virtual void OnHostPaint() = 0;
32
33 virtual void OnHostResized(const gfx::Size& size) = 0;
34
35 virtual float GetDeviceScaleFactor() = 0;
36
37 virtual RootWindow* AsRootWindow() = 0;
38
39 protected:
40 virtual ~RootWindowHostDelegate() {}
41 };
42
43 } // namespace aura
44
45 #endif // UI_AURA_ROOT_WINDOW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window_host.h ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698