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

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

Issue 188223002: Clean up WindowEventDispatcher some more. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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_tree_host.cc ('k') | ui/aura/window_tree_host_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WINDOW_TREE_HOST_DELEGATE_H_
6 #define UI_AURA_WINDOW_TREE_HOST_DELEGATE_H_
7
8 #include "ui/aura/aura_export.h"
9
10 namespace gfx {
11 class Point;
12 class Rect;
13 class Size;
14 }
15
16 namespace ui {
17 class Event;
18 class EventProcessor;
19 class KeyEvent;
20 class MouseEvent;
21 class ScrollEvent;
22 class TouchEvent;
23 }
24
25 namespace aura {
26
27 class RootWindow;
28
29 // A private interface used by WindowTreeHost implementations to communicate
30 // with their owning RootWindow.
31 class AURA_EXPORT WindowTreeHostDelegate {
32 public:
33 virtual void OnHostCancelMode() = 0;
34
35 // Called when the windowing system activates the window.
36 virtual void OnHostActivated() = 0;
37
38 // Called when system focus is changed to another window.
39 virtual void OnHostLostWindowCapture() = 0;
40
41 // Called when the windowing system has mouse grab because it's performing a
42 // window move on our behalf, but we should still paint as if we're active.
43 virtual void OnHostLostMouseGrab() = 0;
44
45 virtual void OnHostResized(const gfx::Size& size) = 0;
46
47 virtual void OnCursorMovedToRootLocation(const gfx::Point& root_location) = 0;
48
49 virtual WindowEventDispatcher* AsDispatcher() = 0;
50 virtual const WindowEventDispatcher* AsDispatcher() const = 0;
51
52 virtual ui::EventProcessor* GetEventProcessor() = 0;
53
54 protected:
55 virtual ~WindowTreeHostDelegate() {}
56 };
57
58 } // namespace aura
59
60 #endif // UI_AURA_WINDOW_TREE_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/aura/window_tree_host_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698