| 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 |
| 106 // Sets the currently-displayed cursor. If the cursor was previously hidden | 112 // Sets the currently-displayed cursor. If the cursor was previously hidden |
| 107 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is | 113 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is |
| 108 // called, at which point the cursor that was last set via SetCursor() will be | 114 // called, at which point the cursor that was last set via SetCursor() will be |
| 109 // used. | 115 // used. |
| 110 void SetCursor(gfx::NativeCursor cursor); | 116 void SetCursor(gfx::NativeCursor cursor); |
| 111 | 117 |
| 112 // Invoked when the cursor's visibility has changed. | 118 // Invoked when the cursor's visibility has changed. |
| 113 void OnCursorVisibilityChanged(bool visible); | 119 void OnCursorVisibilityChanged(bool visible); |
| 114 | 120 |
| 115 // Invoked when the mouse events get enabled or disabled. | 121 // Invoked when the mouse events get enabled or disabled. |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 356 |
| 351 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 357 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
| 352 base::WeakPtrFactory<RootWindow> held_event_factory_; | 358 base::WeakPtrFactory<RootWindow> held_event_factory_; |
| 353 | 359 |
| 354 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 360 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 355 }; | 361 }; |
| 356 | 362 |
| 357 } // namespace aura | 363 } // namespace aura |
| 358 | 364 |
| 359 #endif // UI_AURA_ROOT_WINDOW_H_ | 365 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |