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

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

Issue 1402543002: Don't use base::MessageLoop::{Quit,QuitClosure} in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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/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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 void WindowTreeHostWin::DispatchEvent(ui::Event* event) { 123 void WindowTreeHostWin::DispatchEvent(ui::Event* event) {
124 ui::EventDispatchDetails details = SendEventToProcessor(event); 124 ui::EventDispatchDetails details = SendEventToProcessor(event);
125 if (details.dispatcher_destroyed) 125 if (details.dispatcher_destroyed)
126 event->SetHandled(); 126 event->SetHandled();
127 } 127 }
128 128
129 void WindowTreeHostWin::OnCloseRequest() { 129 void WindowTreeHostWin::OnCloseRequest() {
130 // TODO: this obviously shouldn't be here. 130 // TODO: this obviously shouldn't be here.
131 base::MessageLoopForUI::current()->Quit(); 131 base::MessageLoopForUI::current()->QuitWhenIdle();
132 } 132 }
133 133
134 void WindowTreeHostWin::OnClosed() { 134 void WindowTreeHostWin::OnClosed() {
135 } 135 }
136 136
137 void WindowTreeHostWin::OnWindowStateChanged( 137 void WindowTreeHostWin::OnWindowStateChanged(
138 ui::PlatformWindowState new_state) { 138 ui::PlatformWindowState new_state) {
139 } 139 }
140 140
141 void WindowTreeHostWin::OnLostCapture() { 141 void WindowTreeHostWin::OnLostCapture() {
(...skipping 10 matching lines...) Expand all
152 CreateCompositor(); 152 CreateCompositor();
153 WindowTreeHost::OnAcceleratedWidgetAvailable(); 153 WindowTreeHost::OnAcceleratedWidgetAvailable();
154 } 154 }
155 155
156 void WindowTreeHostWin::OnActivationChanged(bool active) { 156 void WindowTreeHostWin::OnActivationChanged(bool active) {
157 if (active) 157 if (active)
158 OnHostActivated(); 158 OnHostActivated();
159 } 159 }
160 160
161 } // namespace aura 161 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698