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_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/aura/root_window_host.h" | 9 #include "ui/aura/root_window_host.h" |
10 #include "ui/base/win/window_impl.h" | 10 #include "ui/base/win/window_impl.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 37 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
38 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 38 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
39 virtual void UnConfineCursor() OVERRIDE; | 39 virtual void UnConfineCursor() OVERRIDE; |
40 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 40 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
41 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | 41 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
42 virtual bool GrabSnapshot( | 42 virtual bool GrabSnapshot( |
43 const gfx::Rect& snapshot_bounds, | 43 const gfx::Rect& snapshot_bounds, |
44 std::vector<unsigned char>* png_representation) OVERRIDE; | 44 std::vector<unsigned char>* png_representation) OVERRIDE; |
45 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 45 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
46 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 46 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 47 virtual void PrepareForShutdown() OVERRIDE; |
47 | 48 |
48 private: | 49 private: |
49 BEGIN_MSG_MAP_EX(RootWindowHostWin) | 50 BEGIN_MSG_MAP_EX(RootWindowHostWin) |
50 // Range handlers must go first! | 51 // Range handlers must go first! |
51 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 52 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
52 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) | 53 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) |
53 | 54 |
54 // Mouse capture events. | 55 // Mouse capture events. |
55 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) | 56 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) |
56 | 57 |
(...skipping 27 matching lines...) Expand all Loading... |
84 DWORD saved_window_ex_style_; | 85 DWORD saved_window_ex_style_; |
85 | 86 |
86 scoped_ptr<ui::ViewProp> prop_; | 87 scoped_ptr<ui::ViewProp> prop_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); | 89 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace aura | 92 } // namespace aura |
92 | 93 |
93 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 94 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |