Chromium Code Reviews| Index: ui/aura/window_tree_host.h |
| diff --git a/ui/aura/window_tree_host.h b/ui/aura/window_tree_host.h |
| index 6418791603146e406d1aeaf388b9c5b1e880a813..577c15316ec5dc53e0c332c9b2e9802c6520f24a 100644 |
| --- a/ui/aura/window_tree_host.h |
| +++ b/ui/aura/window_tree_host.h |
| @@ -23,6 +23,7 @@ class Transform; |
| namespace ui { |
| class Compositor; |
| +class ViewProp; |
| } |
| namespace aura { |
| @@ -40,13 +41,16 @@ class AURA_EXPORT WindowTreeHost { |
| // Creates a new WindowTreeHost. The caller owns the returned value. |
| static WindowTreeHost* Create(const gfx::Rect& bounds); |
| + // Returns the WindowTreeHost for the specified accelerated widget, or NULL |
| + // if there is none associated. |
| + static WindowTreeHost* GetForAcceleratedWidget(gfx::AcceleratedWidget widget); |
| + |
| void InitHost(); |
| void InitCompositor(); |
| - // TODO(beng): these will become trivial accessors in a future CL. |
| - Window* window(); |
| - const Window* window() const; |
| + Window* window() { return window_; } |
| + const Window* window() const { return window_; } |
| WindowEventDispatcher* dispatcher() { |
| return const_cast<WindowEventDispatcher*>( |
| @@ -193,6 +197,8 @@ class AURA_EXPORT WindowTreeHost { |
| void MoveCursorToInternal(const gfx::Point& root_location, |
| const gfx::Point& host_location); |
| + Window* window_; // Owning. |
|
sky
2014/03/04 00:25:49
Can you document why this isn't a scoped_ptr.
|
| + |
| scoped_ptr<WindowEventDispatcher> dispatcher_; |
| scoped_ptr<ui::Compositor> compositor_; |
| @@ -202,6 +208,8 @@ class AURA_EXPORT WindowTreeHost { |
| // Last cursor set. Used for testing. |
| gfx::NativeCursor last_cursor_; |
| + scoped_ptr<ui::ViewProp> prop_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| }; |