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 #include "ui/platform_window/win/win_window.h" | 5 #include "ui/platform_window/win/win_window.h" |
6 | 6 |
7 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
8 #include "ui/events/event_utils.h" | 8 #include "ui/events/event_utils.h" |
9 #include "ui/gfx/win/msg_util.h" | 9 #include "ui/gfx/win/msg_util.h" |
10 #include "ui/platform_window/platform_window_delegate.h" | 10 #include "ui/platform_window/platform_window_delegate.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 | 96 |
97 void WinWindow::ToggleFullscreen() {} | 97 void WinWindow::ToggleFullscreen() {} |
98 | 98 |
99 void WinWindow::Maximize() {} | 99 void WinWindow::Maximize() {} |
100 | 100 |
101 void WinWindow::Minimize() {} | 101 void WinWindow::Minimize() {} |
102 | 102 |
103 void WinWindow::Restore() {} | 103 void WinWindow::Restore() {} |
104 | 104 |
| 105 void WinWindow::SetCursor(PlatformCursor cursor) {} |
| 106 |
| 107 void WinWindow::MoveCursorTo(const gfx::Point& location) {} |
| 108 |
105 LRESULT WinWindow::OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param) { | 109 LRESULT WinWindow::OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param) { |
106 MSG msg = { hwnd(), message, w_param, l_param, 0, | 110 MSG msg = { hwnd(), message, w_param, l_param, 0, |
107 { CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param) } }; | 111 { CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param) } }; |
108 MouseEvent event(msg); | 112 MouseEvent event(msg); |
109 if (IsMouseEventFromTouch(message)) | 113 if (IsMouseEventFromTouch(message)) |
110 event.set_flags(event.flags() | EF_FROM_TOUCH); | 114 event.set_flags(event.flags() | EF_FROM_TOUCH); |
111 if (!(event.flags() & ui::EF_IS_NON_CLIENT)) | 115 if (!(event.flags() & ui::EF_IS_NON_CLIENT)) |
112 delegate_->DispatchEvent(&event); | 116 delegate_->DispatchEvent(&event); |
113 SetMsgHandled(event.handled()); | 117 SetMsgHandled(event.handled()); |
114 return 0; | 118 return 0; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 173 |
170 namespace test { | 174 namespace test { |
171 | 175 |
172 // static | 176 // static |
173 void SetUsePopupAsRootWindowForTest(bool use) { | 177 void SetUsePopupAsRootWindowForTest(bool use) { |
174 use_popup_as_root_window_for_test = use; | 178 use_popup_as_root_window_for_test = use; |
175 } | 179 } |
176 | 180 |
177 } // namespace test | 181 } // namespace test |
178 } // namespace ui | 182 } // namespace ui |
OLD | NEW |