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 aura { | 14 namespace aura { |
15 | 15 |
16 class AURA_EXPORT WindowTreeHostWin : public WindowTreeHost, | 16 class AURA_EXPORT WindowTreeHostWin : public WindowTreeHost, |
17 public ui::EventSource, | 17 public ui::EventSource, |
18 public gfx::WindowImpl { | 18 public gfx::WindowImpl { |
19 public: | 19 public: |
20 explicit WindowTreeHostWin(const gfx::Rect& bounds); | 20 explicit WindowTreeHostWin(const gfx::Rect& bounds); |
21 virtual ~WindowTreeHostWin(); | 21 virtual ~WindowTreeHostWin(); |
22 // WindowTreeHost: | 22 // WindowTreeHost: |
| 23 virtual ui::EventSource* GetEventSource() OVERRIDE; |
23 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 24 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
24 virtual void Show() OVERRIDE; | 25 virtual void Show() OVERRIDE; |
25 virtual void Hide() OVERRIDE; | 26 virtual void Hide() OVERRIDE; |
26 virtual gfx::Rect GetBounds() const OVERRIDE; | 27 virtual gfx::Rect GetBounds() const OVERRIDE; |
27 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
28 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 29 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
29 virtual void SetCapture() OVERRIDE; | 30 virtual void SetCapture() OVERRIDE; |
30 virtual void ReleaseCapture() OVERRIDE; | 31 virtual void ReleaseCapture() OVERRIDE; |
31 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 32 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
32 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 33 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Set true to let WindowTreeHostWin use a popup window | 85 // Set true to let WindowTreeHostWin use a popup window |
85 // with no frame/title so that the window size and test's | 86 // with no frame/title so that the window size and test's |
86 // expectations matches. | 87 // expectations matches. |
87 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | 88 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); |
88 | 89 |
89 } // namespace | 90 } // namespace |
90 | 91 |
91 } // namespace aura | 92 } // namespace aura |
92 | 93 |
93 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ | 94 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
OLD | NEW |