Chromium Code Reviews| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 const Window* window() const { return window_; } | 69 const Window* window() const { return window_; } |
| 70 | 70 |
| 71 ui::EventProcessor* event_processor(); | 71 ui::EventProcessor* event_processor(); |
| 72 | 72 |
| 73 WindowEventDispatcher* dispatcher() { | 73 WindowEventDispatcher* dispatcher() { |
| 74 return const_cast<WindowEventDispatcher*>( | 74 return const_cast<WindowEventDispatcher*>( |
| 75 const_cast<const WindowTreeHost*>(this)->dispatcher()); | 75 const_cast<const WindowTreeHost*>(this)->dispatcher()); |
| 76 } | 76 } |
| 77 const WindowEventDispatcher* dispatcher() const { return dispatcher_.get(); } | 77 const WindowEventDispatcher* dispatcher() const { return dispatcher_.get(); } |
| 78 | 78 |
| 79 ui::Compositor* compositor() { return compositor_.get(); } | 79 ui::Compositor* compositor() const { return compositor_.get(); } |
|
sky
2016/11/21 22:27:25
const functions should return const objects, other
| |
| 80 | 80 |
| 81 // Gets/Sets the root window's transform. | 81 // Gets/Sets the root window's transform. |
| 82 virtual gfx::Transform GetRootTransform() const; | 82 virtual gfx::Transform GetRootTransform() const; |
| 83 virtual void SetRootTransform(const gfx::Transform& transform); | 83 virtual void SetRootTransform(const gfx::Transform& transform); |
| 84 virtual gfx::Transform GetInverseRootTransform() const; | 84 virtual gfx::Transform GetInverseRootTransform() const; |
| 85 | 85 |
| 86 // Sets padding applied to the output surface. The output surface is sized to | 86 // Sets padding applied to the output surface. The output surface is sized to |
| 87 // to the size of the host plus output surface padding. |window()| is offset | 87 // to the size of the host plus output surface padding. |window()| is offset |
| 88 // by |padding|, that is, |window|'s origin is set to padding.left(), | 88 // by |padding|, that is, |window|'s origin is set to padding.left(), |
| 89 // padding.top(). | 89 // padding.top(). |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 bool owned_input_method_; | 259 bool owned_input_method_; |
| 260 | 260 |
| 261 gfx::Insets output_surface_padding_; | 261 gfx::Insets output_surface_padding_; |
| 262 | 262 |
| 263 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 263 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 } // namespace aura | 266 } // namespace aura |
| 267 | 267 |
| 268 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 268 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |