Chromium Code Reviews

Side by Side Diff: ui/aura/window_tree_host_ozone.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.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ozone.h" 5 #include "ui/aura/window_tree_host_ozone.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "ui/aura/window_event_dispatcher.h" 8 #include "ui/aura/window_event_dispatcher.h"
9 #include "ui/ozone/public/ozone_platform.h" 9 #include "ui/ozone/public/ozone_platform.h"
10 #include "ui/platform_window/platform_window.h" 10 #include "ui/platform_window/platform_window.h"
(...skipping 86 matching lines...)
97 ui::PlatformWindowState new_state) { 97 ui::PlatformWindowState new_state) {
98 } 98 }
99 99
100 void WindowTreeHostOzone::OnLostCapture() { 100 void WindowTreeHostOzone::OnLostCapture() {
101 } 101 }
102 102
103 void WindowTreeHostOzone::OnAcceleratedWidgetAvailable( 103 void WindowTreeHostOzone::OnAcceleratedWidgetAvailable(
104 gfx::AcceleratedWidget widget, 104 gfx::AcceleratedWidget widget,
105 float device_pixel_ratio) { 105 float device_pixel_ratio) {
106 widget_ = widget; 106 widget_ = widget;
107 CreateCompositor(widget_); 107 CreateCompositor();
108 WindowTreeHost::OnAcceleratedWidgetAvailable();
108 } 109 }
109 110
110 void WindowTreeHostOzone::OnActivationChanged(bool active) { 111 void WindowTreeHostOzone::OnActivationChanged(bool active) {
111 } 112 }
112 113
113 // static 114 // static
114 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) { 115 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) {
115 return new WindowTreeHostOzone(bounds); 116 return new WindowTreeHostOzone(bounds);
116 } 117 }
117 118
118 // static 119 // static
119 gfx::Size WindowTreeHost::GetNativeScreenSize() { 120 gfx::Size WindowTreeHost::GetNativeScreenSize() {
120 NOTIMPLEMENTED(); 121 NOTIMPLEMENTED();
121 return gfx::Size(); 122 return gfx::Size();
122 } 123 }
123 124
124 } // namespace aura 125 } // namespace aura
OLDNEW

Powered by Google App Engine