| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/aura/root_window_host.h" | 10 #include "ui/aura/root_window_host.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 virtual void SetCapture() OVERRIDE; | 33 virtual void SetCapture() OVERRIDE; |
| 34 virtual void ReleaseCapture() OVERRIDE; | 34 virtual void ReleaseCapture() OVERRIDE; |
| 35 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 35 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
| 36 virtual void ShowCursor(bool show) OVERRIDE; | 36 virtual void ShowCursor(bool show) OVERRIDE; |
| 37 virtual gfx::Point QueryMouseLocation() OVERRIDE; | 37 virtual gfx::Point QueryMouseLocation() 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 void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 42 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
| 43 virtual void SetUseOSWindowBorders(bool use_os_borders) OVERRIDE; |
| 44 virtual bool DispatchWindowDragMovement(int hittest, |
| 45 MouseEvent* event) OVERRIDE; |
| 43 | 46 |
| 44 private: | 47 private: |
| 45 BEGIN_MSG_MAP_EX(RootWindowHostWin) | 48 BEGIN_MSG_MAP_EX(RootWindowHostWin) |
| 46 // Range handlers must go first! | 49 // Range handlers must go first! |
| 47 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 50 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
| 48 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) | 51 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) |
| 49 | 52 |
| 50 // Mouse capture events. | 53 // Mouse capture events. |
| 51 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) | 54 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) |
| 52 | 55 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 80 DWORD saved_window_ex_style_; | 83 DWORD saved_window_ex_style_; |
| 81 | 84 |
| 82 scoped_ptr<ui::ViewProp> prop_; | 85 scoped_ptr<ui::ViewProp> prop_; |
| 83 | 86 |
| 84 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); | 87 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); |
| 85 }; | 88 }; |
| 86 | 89 |
| 87 } // namespace aura | 90 } // namespace aura |
| 88 | 91 |
| 89 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 92 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |