| 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 15 matching lines...) Expand all Loading... |
| 26 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 26 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 27 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 27 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
| 28 virtual void SetCapture() OVERRIDE; | 28 virtual void SetCapture() OVERRIDE; |
| 29 virtual void ReleaseCapture() OVERRIDE; | 29 virtual void ReleaseCapture() OVERRIDE; |
| 30 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 30 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
| 31 virtual void ShowCursor(bool show) OVERRIDE; | 31 virtual void ShowCursor(bool show) OVERRIDE; |
| 32 virtual gfx::Point QueryMouseLocation() OVERRIDE; | 32 virtual gfx::Point QueryMouseLocation() OVERRIDE; |
| 33 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 33 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
| 34 virtual void UnConfineCursor() OVERRIDE; | 34 virtual void UnConfineCursor() OVERRIDE; |
| 35 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 35 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
| 36 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; |
| 36 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 37 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 BEGIN_MSG_MAP_EX(RootWindowHostWin) | 40 BEGIN_MSG_MAP_EX(RootWindowHostWin) |
| 40 // Range handlers must go first! | 41 // Range handlers must go first! |
| 41 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 42 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
| 42 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) | 43 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) |
| 43 | 44 |
| 44 // Mouse capture events. | 45 // Mouse capture events. |
| 45 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) | 46 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 72 RECT saved_window_rect_; | 73 RECT saved_window_rect_; |
| 73 DWORD saved_window_style_; | 74 DWORD saved_window_style_; |
| 74 DWORD saved_window_ex_style_; | 75 DWORD saved_window_ex_style_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); | 77 DISALLOW_COPY_AND_ASSIGN(RootWindowHostWin); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace aura | 80 } // namespace aura |
| 80 | 81 |
| 81 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ | 82 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |