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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 | 98 |
99 RootWindowHostDelegate* AsRootWindowHostDelegate(); | 99 RootWindowHostDelegate* AsRootWindowHostDelegate(); |
100 | 100 |
101 // Sets the size of the root window. | 101 // Sets the size of the root window. |
102 void SetHostSize(const gfx::Size& size_in_pixel); | 102 void SetHostSize(const gfx::Size& size_in_pixel); |
103 gfx::Size GetHostSize() const; | 103 gfx::Size GetHostSize() const; |
104 | 104 |
105 // Sets the bounds of the host window. | 105 // Sets the bounds of the host window. |
106 void SetHostBounds(const gfx::Rect& size_in_pixel); | 106 void SetHostBounds(const gfx::Rect& size_in_pixel); |
107 | 107 |
108 // Sets the hosting platform specific property. | |
Daniel Erat
2013/01/30 21:04:27
nits: "Sets a property on the host window using pl
oshima
2013/01/30 23:45:53
Done.
| |
109 void SetHostWindowProperty(const std::string& name, int value); | |
Daniel Erat
2013/01/30 21:04:27
if you plan to store something other than ints lat
oshima
2013/01/30 23:45:53
I have no plan to add other than ints, but agree t
| |
110 | |
108 // Returns where the RootWindow is on screen. | 111 // Returns where the RootWindow is on screen. |
109 gfx::Point GetHostOrigin() const; | 112 gfx::Point GetHostOrigin() const; |
110 | 113 |
111 // Sets the currently-displayed cursor. If the cursor was previously hidden | 114 // Sets the currently-displayed cursor. If the cursor was previously hidden |
112 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is | 115 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is |
113 // called, at which point the cursor that was last set via SetCursor() will be | 116 // called, at which point the cursor that was last set via SetCursor() will be |
114 // used. | 117 // used. |
115 void SetCursor(gfx::NativeCursor cursor); | 118 void SetCursor(gfx::NativeCursor cursor); |
116 | 119 |
117 // Invoked when the cursor's visibility has changed. | 120 // Invoked when the cursor's visibility has changed. |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
398 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_; | 401 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_; |
399 | 402 |
400 scoped_ptr<ui::ViewProp> prop_; | 403 scoped_ptr<ui::ViewProp> prop_; |
401 | 404 |
402 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 405 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
403 }; | 406 }; |
404 | 407 |
405 } // namespace aura | 408 } // namespace aura |
406 | 409 |
407 #endif // UI_AURA_ROOT_WINDOW_H_ | 410 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |