| 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_WINDOW_TREE_HOST_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_ |
| 6 #define UI_AURA_WINDOW_TREE_HOST_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Returns the accelerated widget. | 123 // Returns the accelerated widget. |
| 124 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; | 124 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; |
| 125 | 125 |
| 126 // Shows the WindowTreeHost. | 126 // Shows the WindowTreeHost. |
| 127 virtual void Show() = 0; | 127 virtual void Show() = 0; |
| 128 | 128 |
| 129 // Hides the WindowTreeHost. | 129 // Hides the WindowTreeHost. |
| 130 virtual void Hide() = 0; | 130 virtual void Hide() = 0; |
| 131 | 131 |
| 132 // Gets/Sets the size of the WindowTreeHost. | 132 // Gets/Sets the size of the WindowTreeHost (in pixels). |
| 133 virtual gfx::Rect GetBounds() const = 0; | 133 virtual gfx::Rect GetBounds() const = 0; |
| 134 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 134 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
| 135 | 135 |
| 136 // Sets the OS capture to the root window. | 136 // Sets the OS capture to the root window. |
| 137 virtual void SetCapture() = 0; | 137 virtual void SetCapture() = 0; |
| 138 | 138 |
| 139 // Releases OS capture of the root window. | 139 // Releases OS capture of the root window. |
| 140 virtual void ReleaseCapture() = 0; | 140 virtual void ReleaseCapture() = 0; |
| 141 | 141 |
| 142 protected: | 142 protected: |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 gfx::Point last_cursor_request_position_in_host_; | 191 gfx::Point last_cursor_request_position_in_host_; |
| 192 | 192 |
| 193 scoped_ptr<ui::ViewProp> prop_; | 193 scoped_ptr<ui::ViewProp> prop_; |
| 194 | 194 |
| 195 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 195 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 } // namespace aura | 198 } // namespace aura |
| 199 | 199 |
| 200 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 200 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |