| 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/root_window_host_win.h" | 5 #include "ui/aura/root_window_host_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 void RootWindowHostWin::OnDeviceScaleFactorChanged( | 240 void RootWindowHostWin::OnDeviceScaleFactorChanged( |
| 241 float device_scale_factor) { | 241 float device_scale_factor) { |
| 242 NOTIMPLEMENTED(); | 242 NOTIMPLEMENTED(); |
| 243 } | 243 } |
| 244 | 244 |
| 245 void RootWindowHostWin::PrepareForShutdown() { | 245 void RootWindowHostWin::PrepareForShutdown() { |
| 246 NOTIMPLEMENTED(); | 246 NOTIMPLEMENTED(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 void RootWindowHostWin::SetIntProperty(const std::string& name, int value) { |
| 250 } |
| 251 |
| 249 void RootWindowHostWin::OnClose() { | 252 void RootWindowHostWin::OnClose() { |
| 250 // TODO: this obviously shouldn't be here. | 253 // TODO: this obviously shouldn't be here. |
| 251 MessageLoopForUI::current()->Quit(); | 254 MessageLoopForUI::current()->Quit(); |
| 252 } | 255 } |
| 253 | 256 |
| 254 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, | 257 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, |
| 255 WPARAM w_param, | 258 WPARAM w_param, |
| 256 LPARAM l_param) { | 259 LPARAM l_param) { |
| 257 MSG msg = { hwnd(), message, w_param, l_param }; | 260 MSG msg = { hwnd(), message, w_param, l_param }; |
| 258 ui::KeyEvent keyev(msg, message == WM_CHAR); | 261 ui::KeyEvent keyev(msg, message == WM_CHAR); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 namespace test { | 314 namespace test { |
| 312 | 315 |
| 313 // static | 316 // static |
| 314 void SetUsePopupAsRootWindowForTest(bool use) { | 317 void SetUsePopupAsRootWindowForTest(bool use) { |
| 315 use_popup_as_root_window_for_test = use; | 318 use_popup_as_root_window_for_test = use; |
| 316 } | 319 } |
| 317 | 320 |
| 318 } // namespace test | 321 } // namespace test |
| 319 | 322 |
| 320 } // namespace aura | 323 } // namespace aura |
| OLD | NEW |