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

Side by Side Diff: blimp/engine/session/blimp_engine_session.cc

Issue 1928143002: Rename gfx::Display/Screen to display::Display/Screen in chromecast/blimp/media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update blimp's gn for recent gn change 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 | « blimp/engine/app/ui/blimp_screen_unittest.cc ('k') | chromecast/browser/BUILD.gn » ('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/session/blimp_engine_session.h" 5 #include "blimp/engine/session/blimp_engine_session.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Ensure that all WebContents are torn down first, since teardown will 227 // Ensure that all WebContents are torn down first, since teardown will
228 // trigger RenderViewDeleted callbacks to their observers. 228 // trigger RenderViewDeleted callbacks to their observers.
229 web_contents_.reset(); 229 web_contents_.reset();
230 230
231 // Safely delete network components on the IO thread. 231 // Safely delete network components on the IO thread.
232 content::BrowserThread::DeleteSoon(content::BrowserThread::IO, FROM_HERE, 232 content::BrowserThread::DeleteSoon(content::BrowserThread::IO, FROM_HERE,
233 net_components_.release()); 233 net_components_.release());
234 } 234 }
235 235
236 void BlimpEngineSession::Initialize() { 236 void BlimpEngineSession::Initialize() {
237 DCHECK(!gfx::Screen::GetScreen()); 237 DCHECK(!display::Screen::GetScreen());
238 gfx::Screen::SetScreenInstance(screen_.get()); 238 display::Screen::SetScreenInstance(screen_.get());
239 239
240 window_tree_host_.reset(new BlimpWindowTreeHost()); 240 window_tree_host_.reset(new BlimpWindowTreeHost());
241 241
242 screen_->set_window_tree_host(window_tree_host_.get()); 242 screen_->set_window_tree_host(window_tree_host_.get());
243 window_tree_host_->InitHost(); 243 window_tree_host_->InitHost();
244 window_tree_host_->window()->SetLayoutManager( 244 window_tree_host_->window()->SetLayoutManager(
245 new BlimpLayoutManager(window_tree_host_->window())); 245 new BlimpLayoutManager(window_tree_host_->window()));
246 focus_client_.reset(new wm::FocusController(new FocusRulesImpl)); 246 focus_client_.reset(new wm::FocusController(new FocusRulesImpl));
247 aura::client::SetFocusClient(window_tree_host_->window(), 247 aura::client::SetFocusClient(window_tree_host_->window(),
248 focus_client_.get()); 248 focus_client_.get());
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 634
635 aura::Window* parent = window_tree_host_->window(); 635 aura::Window* parent = window_tree_host_->window();
636 aura::Window* content = web_contents_->GetNativeView(); 636 aura::Window* content = web_contents_->GetNativeView();
637 if (!parent->Contains(content)) 637 if (!parent->Contains(content))
638 parent->AddChild(content); 638 parent->AddChild(content);
639 content->Show(); 639 content->Show();
640 } 640 }
641 641
642 } // namespace engine 642 } // namespace engine
643 } // namespace blimp 643 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/ui/blimp_screen_unittest.cc ('k') | chromecast/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698