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

Side by Side Diff: blimp/engine/app/ui/blimp_window_tree_host.cc

Issue 2013713002: Revert of Finish eliminating PlatformWindowMus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « ash/mus/sysui_application.cc ('k') | ui/platform_window/stub/stub_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "blimp/engine/app/ui/blimp_window_tree_host.h" 5 #include "blimp/engine/app/ui/blimp_window_tree_host.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/platform_window/stub/stub_window.h" 8 #include "ui/platform_window/stub/stub_window.h"
10 9
11 namespace blimp { 10 namespace blimp {
12 namespace engine { 11 namespace engine {
13 12
14 BlimpWindowTreeHost::BlimpWindowTreeHost() : aura::WindowTreeHostPlatform() { 13 BlimpWindowTreeHost::BlimpWindowTreeHost() : aura::WindowTreeHostPlatform() {
15 SetPlatformWindow(base::WrapUnique( 14 SetPlatformWindow(base::WrapUnique(new ui::StubWindow(this)));
16 new ui::StubWindow(this, gfx::kNullAcceleratedWidget)));
17 } 15 }
18 16
19 BlimpWindowTreeHost::~BlimpWindowTreeHost() {} 17 BlimpWindowTreeHost::~BlimpWindowTreeHost() {}
20 18
21 void BlimpWindowTreeHost::OnAcceleratedWidgetAvailable( 19 void BlimpWindowTreeHost::OnAcceleratedWidgetAvailable(
22 gfx::AcceleratedWidget widget, 20 gfx::AcceleratedWidget widget,
23 float device_pixel_ratio) { 21 float device_pixel_ratio) {
24 // Do nothing to avoid creating an output surface and gpu process. 22 // Do nothing to avoid creating an output surface and gpu process.
25 } 23 }
26 24
27 } // namespace engine 25 } // namespace engine
28 } // namespace blimp 26 } // namespace blimp
OLDNEW
« no previous file with comments | « ash/mus/sysui_application.cc ('k') | ui/platform_window/stub/stub_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698