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" |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual void Hide() OVERRIDE; | 26 virtual void Hide() OVERRIDE; |
27 virtual gfx::Rect GetBounds() const OVERRIDE; | 27 virtual gfx::Rect GetBounds() const OVERRIDE; |
28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 28 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
29 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 29 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
30 virtual void SetCapture() OVERRIDE; | 30 virtual void SetCapture() OVERRIDE; |
31 virtual void ReleaseCapture() OVERRIDE; | 31 virtual void ReleaseCapture() OVERRIDE; |
32 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 32 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
33 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 33 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
34 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 34 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
35 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 35 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
36 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | |
37 | 36 |
38 // ui::EventSource: | 37 // ui::EventSource: |
39 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 38 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
40 | 39 |
41 private: | 40 private: |
42 CR_BEGIN_MSG_MAP_EX(WindowTreeHostWin) | 41 CR_BEGIN_MSG_MAP_EX(WindowTreeHostWin) |
43 // Range handlers must go first! | 42 // Range handlers must go first! |
44 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 43 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
45 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, | 44 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, |
46 WM_NCXBUTTONDBLCLK, | 45 WM_NCXBUTTONDBLCLK, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Set true to let WindowTreeHostWin use a popup window | 83 // Set true to let WindowTreeHostWin use a popup window |
85 // with no frame/title so that the window size and test's | 84 // with no frame/title so that the window size and test's |
86 // expectations matches. | 85 // expectations matches. |
87 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | 86 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); |
88 | 87 |
89 } // namespace | 88 } // namespace |
90 | 89 |
91 } // namespace aura | 90 } // namespace aura |
92 | 91 |
93 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ | 92 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
OLD | NEW |