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_WIN_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
6 #define UI_AURA_WINDOW_TREE_HOST_WIN_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
10 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
11 #include "ui/events/event_source.h" | 11 #include "ui/events/event_source.h" |
12 #include "ui/gfx/win/window_impl.h" | 12 #include "ui/gfx/win/window_impl.h" |
13 | 13 |
| 14 namespace ui { |
| 15 class ContextFactory; |
| 16 } |
| 17 |
14 namespace aura { | 18 namespace aura { |
15 | 19 |
16 class AURA_EXPORT WindowTreeHostWin : public WindowTreeHost, | 20 class AURA_EXPORT WindowTreeHostWin : public WindowTreeHost, |
17 public ui::EventSource, | 21 public ui::EventSource, |
18 public gfx::WindowImpl { | 22 public gfx::WindowImpl { |
19 public: | 23 public: |
20 explicit WindowTreeHostWin(const gfx::Rect& bounds); | 24 WindowTreeHostWin(const gfx::Rect& bounds, |
| 25 ui::ContextFactory* context_factory); |
21 virtual ~WindowTreeHostWin(); | 26 virtual ~WindowTreeHostWin(); |
22 // WindowTreeHost: | 27 // WindowTreeHost: |
23 virtual ui::EventSource* GetEventSource() OVERRIDE; | 28 virtual ui::EventSource* GetEventSource() OVERRIDE; |
24 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 29 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
25 virtual void Show() OVERRIDE; | 30 virtual void Show() OVERRIDE; |
26 virtual void Hide() OVERRIDE; | 31 virtual void Hide() OVERRIDE; |
27 virtual gfx::Rect GetBounds() const OVERRIDE; | 32 virtual gfx::Rect GetBounds() const OVERRIDE; |
28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 33 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
29 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 34 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
30 virtual void SetCapture() OVERRIDE; | 35 virtual void SetCapture() OVERRIDE; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Set true to let WindowTreeHostWin use a popup window | 89 // Set true to let WindowTreeHostWin use a popup window |
85 // with no frame/title so that the window size and test's | 90 // with no frame/title so that the window size and test's |
86 // expectations matches. | 91 // expectations matches. |
87 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | 92 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); |
88 | 93 |
89 } // namespace | 94 } // namespace |
90 | 95 |
91 } // namespace aura | 96 } // namespace aura |
92 | 97 |
93 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ | 98 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
OLD | NEW |