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 #include "ui/aura/window_tree_host_win.h" | 5 #include "ui/aura/window_tree_host_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 void WindowTreeHostWin::PostNativeEvent(const base::NativeEvent& native_event) { | 218 void WindowTreeHostWin::PostNativeEvent(const base::NativeEvent& native_event) { |
219 ::PostMessage( | 219 ::PostMessage( |
220 hwnd(), native_event.message, native_event.wParam, native_event.lParam); | 220 hwnd(), native_event.message, native_event.wParam, native_event.lParam); |
221 } | 221 } |
222 | 222 |
223 void WindowTreeHostWin::OnDeviceScaleFactorChanged( | 223 void WindowTreeHostWin::OnDeviceScaleFactorChanged( |
224 float device_scale_factor) { | 224 float device_scale_factor) { |
225 NOTIMPLEMENTED(); | 225 NOTIMPLEMENTED(); |
226 } | 226 } |
227 | 227 |
228 void WindowTreeHostWin::PrepareForShutdown() { | |
229 NOTIMPLEMENTED(); | |
230 } | |
231 | |
232 ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() { | 228 ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() { |
233 return dispatcher(); | 229 return dispatcher(); |
234 } | 230 } |
235 | 231 |
236 void WindowTreeHostWin::OnClose() { | 232 void WindowTreeHostWin::OnClose() { |
237 // TODO: this obviously shouldn't be here. | 233 // TODO: this obviously shouldn't be here. |
238 base::MessageLoopForUI::current()->Quit(); | 234 base::MessageLoopForUI::current()->Quit(); |
239 } | 235 } |
240 | 236 |
241 LRESULT WindowTreeHostWin::OnKeyEvent(UINT message, | 237 LRESULT WindowTreeHostWin::OnKeyEvent(UINT message, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 namespace test { | 300 namespace test { |
305 | 301 |
306 // static | 302 // static |
307 void SetUsePopupAsRootWindowForTest(bool use) { | 303 void SetUsePopupAsRootWindowForTest(bool use) { |
308 use_popup_as_root_window_for_test = use; | 304 use_popup_as_root_window_for_test = use; |
309 } | 305 } |
310 | 306 |
311 } // namespace test | 307 } // namespace test |
312 | 308 |
313 } // namespace aura | 309 } // namespace aura |
OLD | NEW |