OLD | NEW |
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_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_H_ |
6 #define UI_AURA_ROOT_WINDOW_H_ | 6 #define UI_AURA_ROOT_WINDOW_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Stop listening events in preparation for shutdown. | 96 // Stop listening events in preparation for shutdown. |
97 void PrepareForShutdown(); | 97 void PrepareForShutdown(); |
98 | 98 |
99 // Repost event for re-processing. Used when exiting context menus. | 99 // Repost event for re-processing. Used when exiting context menus. |
100 // We only support the ET_MOUSE_PRESSED and ET_GESTURE_TAP_DOWN event | 100 // We only support the ET_MOUSE_PRESSED and ET_GESTURE_TAP_DOWN event |
101 // types (although the latter is currently a no-op). | 101 // types (although the latter is currently a no-op). |
102 void RepostEvent(const ui::LocatedEvent& event); | 102 void RepostEvent(const ui::LocatedEvent& event); |
103 | 103 |
104 WindowTreeHostDelegate* AsWindowTreeHostDelegate(); | 104 WindowTreeHostDelegate* AsWindowTreeHostDelegate(); |
105 | 105 |
106 // Gets/sets the size of the host window. | |
107 void SetHostSize(const gfx::Size& size_in_pixel); | |
108 | |
109 // Sets the bounds of the host window. | |
110 void SetHostBounds(const gfx::Rect& size_in_pizel); | |
111 | |
112 // Sets the currently-displayed cursor. If the cursor was previously hidden | 106 // Sets the currently-displayed cursor. If the cursor was previously hidden |
113 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is | 107 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is |
114 // called, at which point the cursor that was last set via SetCursor() will be | 108 // called, at which point the cursor that was last set via SetCursor() will be |
115 // used. | 109 // used. |
116 void SetCursor(gfx::NativeCursor cursor); | 110 void SetCursor(gfx::NativeCursor cursor); |
117 | 111 |
118 // Invoked when the cursor's visibility has changed. | 112 // Invoked when the cursor's visibility has changed. |
119 void OnCursorVisibilityChanged(bool visible); | 113 void OnCursorVisibilityChanged(bool visible); |
120 | 114 |
121 // Invoked when the mouse events get enabled or disabled. | 115 // Invoked when the mouse events get enabled or disabled. |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 | 350 |
357 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 351 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
358 base::WeakPtrFactory<RootWindow> held_event_factory_; | 352 base::WeakPtrFactory<RootWindow> held_event_factory_; |
359 | 353 |
360 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 354 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
361 }; | 355 }; |
362 | 356 |
363 } // namespace aura | 357 } // namespace aura |
364 | 358 |
365 #endif // UI_AURA_ROOT_WINDOW_H_ | 359 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |