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 21 matching lines...) Expand all Loading... |
32 virtual void SetCapture() OVERRIDE; | 32 virtual void SetCapture() OVERRIDE; |
33 virtual void ReleaseCapture() OVERRIDE; | 33 virtual void ReleaseCapture() OVERRIDE; |
34 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 34 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
35 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 35 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
36 virtual void UnConfineCursor() OVERRIDE; | 36 virtual void UnConfineCursor() OVERRIDE; |
37 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; | 37 virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE; |
38 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; | 38 virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE; |
39 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; | 39 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; |
40 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 40 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
41 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 41 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
42 virtual void PrepareForShutdown() OVERRIDE; | |
43 | 42 |
44 // ui::EventSource: | 43 // ui::EventSource: |
45 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; | 44 virtual ui::EventProcessor* GetEventProcessor() OVERRIDE; |
46 | 45 |
47 private: | 46 private: |
48 CR_BEGIN_MSG_MAP_EX(WindowTreeHostWin) | 47 CR_BEGIN_MSG_MAP_EX(WindowTreeHostWin) |
49 // Range handlers must go first! | 48 // Range handlers must go first! |
50 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 49 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
51 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, | 50 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, |
52 WM_NCXBUTTONDBLCLK, | 51 WM_NCXBUTTONDBLCLK, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // Set true to let WindowTreeHostWin use a popup window | 93 // Set true to let WindowTreeHostWin use a popup window |
95 // with no frame/title so that the window size and test's | 94 // with no frame/title so that the window size and test's |
96 // expectations matches. | 95 // expectations matches. |
97 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | 96 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); |
98 | 97 |
99 } // namespace | 98 } // namespace |
100 | 99 |
101 } // namespace aura | 100 } // namespace aura |
102 | 101 |
103 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ | 102 #endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
OLD | NEW |