| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |