| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 247 |
| 248 void RootWindowHostWin::OnDeviceScaleFactorChanged( | 248 void RootWindowHostWin::OnDeviceScaleFactorChanged( |
| 249 float device_scale_factor) { | 249 float device_scale_factor) { |
| 250 NOTIMPLEMENTED(); | 250 NOTIMPLEMENTED(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void RootWindowHostWin::PrepareForShutdown() { | 253 void RootWindowHostWin::PrepareForShutdown() { |
| 254 NOTIMPLEMENTED(); | 254 NOTIMPLEMENTED(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 void RootWindowHostWin::SetHostWindowExpansion(const gfx::Rect& extra) { |
| 258 NOTIMPLEMENTED(); |
| 259 } |
| 260 |
| 257 void RootWindowHostWin::OnClose() { | 261 void RootWindowHostWin::OnClose() { |
| 258 // TODO: this obviously shouldn't be here. | 262 // TODO: this obviously shouldn't be here. |
| 259 MessageLoopForUI::current()->Quit(); | 263 MessageLoopForUI::current()->Quit(); |
| 260 } | 264 } |
| 261 | 265 |
| 262 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, | 266 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, |
| 263 WPARAM w_param, | 267 WPARAM w_param, |
| 264 LPARAM l_param) { | 268 LPARAM l_param) { |
| 265 MSG msg = { hwnd(), message, w_param, l_param }; | 269 MSG msg = { hwnd(), message, w_param, l_param }; |
| 266 ui::KeyEvent keyev(msg, message == WM_CHAR); | 270 ui::KeyEvent keyev(msg, message == WM_CHAR); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 namespace test { | 323 namespace test { |
| 320 | 324 |
| 321 // static | 325 // static |
| 322 void SetUsePopupAsRootWindowForTest(bool use) { | 326 void SetUsePopupAsRootWindowForTest(bool use) { |
| 323 use_popup_as_root_window_for_test = use; | 327 use_popup_as_root_window_for_test = use; |
| 324 } | 328 } |
| 325 | 329 |
| 326 } // namespace test | 330 } // namespace test |
| 327 | 331 |
| 328 } // namespace aura | 332 } // namespace aura |
| OLD | NEW |