| 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 |
| 228 ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() { | 232 ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() { |
| 229 return dispatcher(); | 233 return dispatcher(); |
| 230 } | 234 } |
| 231 | 235 |
| 232 void WindowTreeHostWin::OnClose() { | 236 void WindowTreeHostWin::OnClose() { |
| 233 // TODO: this obviously shouldn't be here. | 237 // TODO: this obviously shouldn't be here. |
| 234 base::MessageLoopForUI::current()->Quit(); | 238 base::MessageLoopForUI::current()->Quit(); |
| 235 } | 239 } |
| 236 | 240 |
| 237 LRESULT WindowTreeHostWin::OnKeyEvent(UINT message, | 241 LRESULT WindowTreeHostWin::OnKeyEvent(UINT message, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 namespace test { | 304 namespace test { |
| 301 | 305 |
| 302 // static | 306 // static |
| 303 void SetUsePopupAsRootWindowForTest(bool use) { | 307 void SetUsePopupAsRootWindowForTest(bool use) { |
| 304 use_popup_as_root_window_for_test = use; | 308 use_popup_as_root_window_for_test = use; |
| 305 } | 309 } |
| 306 | 310 |
| 307 } // namespace test | 311 } // namespace test |
| 308 | 312 |
| 309 } // namespace aura | 313 } // namespace aura |
| OLD | NEW |