| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 if (has_capture_) { | 142 if (has_capture_) { |
| 143 has_capture_ = false; | 143 has_capture_ = false; |
| 144 OnHostLostWindowCapture(); | 144 OnHostLostWindowCapture(); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 void WindowTreeHostWin::OnAcceleratedWidgetAvailable( | 148 void WindowTreeHostWin::OnAcceleratedWidgetAvailable( |
| 149 gfx::AcceleratedWidget widget, | 149 gfx::AcceleratedWidget widget, |
| 150 float device_pixel_ratio) { | 150 float device_pixel_ratio) { |
| 151 widget_ = widget; | 151 widget_ = widget; |
| 152 CreateCompositor(widget); | 152 CreateCompositor(); |
| 153 WindowTreeHost::OnAcceleratedWidgetAvailable(); |
| 153 } | 154 } |
| 154 | 155 |
| 155 void WindowTreeHostWin::OnActivationChanged(bool active) { | 156 void WindowTreeHostWin::OnActivationChanged(bool active) { |
| 156 if (active) | 157 if (active) |
| 157 OnHostActivated(); | 158 OnHostActivated(); |
| 158 } | 159 } |
| 159 | 160 |
| 160 } // namespace aura | 161 } // namespace aura |
| OLD | NEW |