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

Side by Side Diff: chromecast/browser/cast_browser_main_parts.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 | « chromecast/browser/BUILD.gn ('k') | chromecast/browser/cast_content_window.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromecast/browser/cast_browser_main_parts.h" 5 #include "chromecast/browser/cast_browser_main_parts.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "net/android/network_change_notifier_factory_android.h" 72 #include "net/android/network_change_notifier_factory_android.h"
73 #else 73 #else
74 #include "chromecast/net/network_change_notifier_factory_cast.h" 74 #include "chromecast/net/network_change_notifier_factory_cast.h"
75 #endif 75 #endif
76 76
77 #if defined(USE_AURA) 77 #if defined(USE_AURA)
78 // gn check ignored on OverlayManagerCast as it's not a public ozone 78 // gn check ignored on OverlayManagerCast as it's not a public ozone
79 // header, but is exported to allow injecting the overlay-composited 79 // header, but is exported to allow injecting the overlay-composited
80 // callback. 80 // callback.
81 #include "chromecast/graphics/cast_screen.h" 81 #include "chromecast/graphics/cast_screen.h"
82 #include "ui/gfx/screen.h" 82 #include "ui/display/screen.h"
83 #include "ui/ozone/platform/cast/overlay_manager_cast.h" // nogncheck 83 #include "ui/ozone/platform/cast/overlay_manager_cast.h" // nogncheck
84 #endif 84 #endif
85 85
86 namespace { 86 namespace {
87 87
88 #if !defined(OS_ANDROID) 88 #if !defined(OS_ANDROID)
89 int kSignalsToRunClosure[] = { SIGTERM, SIGINT, }; 89 int kSignalsToRunClosure[] = { SIGTERM, SIGINT, };
90 // Closure to run on SIGTERM and SIGINT. 90 // Closure to run on SIGTERM and SIGINT.
91 base::Closure* g_signal_closure = nullptr; 91 base::Closure* g_signal_closure = nullptr;
92 base::PlatformThreadId g_main_thread_id; 92 base::PlatformThreadId g_main_thread_id;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 sys_info->GetGlVendor(), sys_info->GetGlRenderer(), 361 sys_info->GetGlVendor(), sys_info->GetGlRenderer(),
362 sys_info->GetGlVersion()); 362 sys_info->GetGlVersion());
363 #endif 363 #endif
364 364
365 #if defined(USE_AURA) 365 #if defined(USE_AURA)
366 // Screen can (and should) exist even with no displays connected. Its presence 366 // Screen can (and should) exist even with no displays connected. Its presence
367 // is assumed as an interface to access display information, e.g. from metrics 367 // is assumed as an interface to access display information, e.g. from metrics
368 // code. See CastContentWindow::CreateWindowTree for update when resolution 368 // code. See CastContentWindow::CreateWindowTree for update when resolution
369 // is available. 369 // is available.
370 cast_browser_process_->SetCastScreen(base::WrapUnique(new CastScreen)); 370 cast_browser_process_->SetCastScreen(base::WrapUnique(new CastScreen));
371 DCHECK(!gfx::Screen::GetScreen()); 371 DCHECK(!display::Screen::GetScreen());
372 gfx::Screen::SetScreenInstance(cast_browser_process_->cast_screen()); 372 display::Screen::SetScreenInstance(cast_browser_process_->cast_screen());
373 #endif 373 #endif
374 374
375 content::ChildProcessSecurityPolicy::GetInstance()->RegisterWebSafeScheme( 375 content::ChildProcessSecurityPolicy::GetInstance()->RegisterWebSafeScheme(
376 kChromeResourceScheme); 376 kChromeResourceScheme);
377 return 0; 377 return 0;
378 } 378 }
379 379
380 void CastBrowserMainParts::PreMainMessageLoopRun() { 380 void CastBrowserMainParts::PreMainMessageLoopRun() {
381 scoped_refptr<PrefRegistrySimple> pref_registry(new PrefRegistrySimple()); 381 scoped_refptr<PrefRegistrySimple> pref_registry(new PrefRegistrySimple());
382 metrics::RegisterPrefs(pref_registry.get()); 382 metrics::RegisterPrefs(pref_registry.get());
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 void CastBrowserMainParts::PostDestroyThreads() { 498 void CastBrowserMainParts::PostDestroyThreads() {
499 #if !defined(OS_ANDROID) 499 #if !defined(OS_ANDROID)
500 media_resource_tracker_->FinalizeAndDestroy(); 500 media_resource_tracker_->FinalizeAndDestroy();
501 media_resource_tracker_ = nullptr; 501 media_resource_tracker_ = nullptr;
502 media_pipeline_backend_manager_.reset(); 502 media_pipeline_backend_manager_.reset();
503 #endif 503 #endif
504 } 504 }
505 505
506 } // namespace shell 506 } // namespace shell
507 } // namespace chromecast 507 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/BUILD.gn ('k') | chromecast/browser/cast_content_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698