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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::OnClose() { | 257 void RootWindowHostWin::OnClose() { |
258 // TODO: this obviously shouldn't be here. | 258 // TODO: this obviously shouldn't be here. |
259 MessageLoopForUI::current()->Quit(); | 259 base::MessageLoopForUI::current()->Quit(); |
260 } | 260 } |
261 | 261 |
262 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, | 262 LRESULT RootWindowHostWin::OnKeyEvent(UINT message, |
263 WPARAM w_param, | 263 WPARAM w_param, |
264 LPARAM l_param) { | 264 LPARAM l_param) { |
265 MSG msg = { hwnd(), message, w_param, l_param }; | 265 MSG msg = { hwnd(), message, w_param, l_param }; |
266 ui::KeyEvent keyev(msg, message == WM_CHAR); | 266 ui::KeyEvent keyev(msg, message == WM_CHAR); |
267 SetMsgHandled(delegate_->OnHostKeyEvent(&keyev)); | 267 SetMsgHandled(delegate_->OnHostKeyEvent(&keyev)); |
268 return 0; | 268 return 0; |
269 } | 269 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 namespace test { | 323 namespace test { |
324 | 324 |
325 // static | 325 // static |
326 void SetUsePopupAsRootWindowForTest(bool use) { | 326 void SetUsePopupAsRootWindowForTest(bool use) { |
327 use_popup_as_root_window_for_test = use; | 327 use_popup_as_root_window_for_test = use; |
328 } | 328 } |
329 | 329 |
330 } // namespace test | 330 } // namespace test |
331 | 331 |
332 } // namespace aura | 332 } // namespace aura |
OLD | NEW |