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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698