| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ | 5 #ifndef UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ |
| 6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ | 6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "ui/gfx/win/window_impl.h" | 9 #include "ui/gfx/win/window_impl.h" |
| 10 #include "ui/platform_window/platform_window.h" | 10 #include "ui/platform_window/platform_window.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 virtual void SetBounds(const gfx::Rect& bounds) override; | 28 virtual void SetBounds(const gfx::Rect& bounds) override; |
| 29 virtual gfx::Rect GetBounds() override; | 29 virtual gfx::Rect GetBounds() override; |
| 30 virtual void SetCapture() override; | 30 virtual void SetCapture() override; |
| 31 virtual void ReleaseCapture() override; | 31 virtual void ReleaseCapture() override; |
| 32 virtual void ToggleFullscreen() override; | 32 virtual void ToggleFullscreen() override; |
| 33 virtual void Maximize() override; | 33 virtual void Maximize() override; |
| 34 virtual void Minimize() override; | 34 virtual void Minimize() override; |
| 35 virtual void Restore() override; | 35 virtual void Restore() override; |
| 36 virtual void SetCursor(PlatformCursor cursor) override; | 36 virtual void SetCursor(PlatformCursor cursor) override; |
| 37 virtual void MoveCursorTo(const gfx::Point& location) override; | 37 virtual void MoveCursorTo(const gfx::Point& location) override; |
| 38 virtual void ConfineCursorToBounds(const gfx::Rect& bounds) override; |
| 38 | 39 |
| 39 CR_BEGIN_MSG_MAP_EX(WinWindow) | 40 CR_BEGIN_MSG_MAP_EX(WinWindow) |
| 40 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) | 41 CR_MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) |
| 41 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, | 42 CR_MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, |
| 42 WM_NCXBUTTONDBLCLK, | 43 WM_NCXBUTTONDBLCLK, |
| 43 OnMouseRange) | 44 OnMouseRange) |
| 44 CR_MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) | 45 CR_MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) |
| 45 | 46 |
| 46 CR_MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) | 47 CR_MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) |
| 47 CR_MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) | 48 CR_MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Set true to let WindowTreeHostWin use a popup window | 80 // Set true to let WindowTreeHostWin use a popup window |
| 80 // with no frame/title so that the window size and test's | 81 // with no frame/title so that the window size and test's |
| 81 // expectations matches. | 82 // expectations matches. |
| 82 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); | 83 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); |
| 83 | 84 |
| 84 } // namespace test | 85 } // namespace test |
| 85 | 86 |
| 86 } // namespace ui | 87 } // namespace ui |
| 87 | 88 |
| 88 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ | 89 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ |
| OLD | NEW |