Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: ui/aura/root_window_host_win.cc

Issue 14061025: ui: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_x11.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698