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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc

Issue 1920263003: Rename gfx::Display/Screen to display::Display/Screen in chrome (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
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 "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 namespace { 118 namespace {
119 119
120 // This will be used as placeholder in the list of the pinned applciatons. 120 // This will be used as placeholder in the list of the pinned applciatons.
121 // Note that this is NOT a valid extension identifier so that pre M31 versions 121 // Note that this is NOT a valid extension identifier so that pre M31 versions
122 // will ignore it. 122 // will ignore it.
123 const char kAppShelfIdPlaceholder[] = "AppShelfIDPlaceholder--------"; 123 const char kAppShelfIdPlaceholder[] = "AppShelfIDPlaceholder--------";
124 124
125 int64_t GetDisplayIDForShelf(ash::Shelf* shelf) { 125 int64_t GetDisplayIDForShelf(ash::Shelf* shelf) {
126 aura::Window* root_window = 126 aura::Window* root_window =
127 shelf->shelf_widget()->GetNativeWindow()->GetRootWindow(); 127 shelf->shelf_widget()->GetNativeWindow()->GetRootWindow();
128 gfx::Display display = 128 display::Display display =
129 gfx::Screen::GetScreen()->GetDisplayNearestWindow(root_window); 129 display::Screen::GetScreen()->GetDisplayNearestWindow(root_window);
130 DCHECK(display.is_valid()); 130 DCHECK(display.is_valid());
131 return display.id(); 131 return display.id();
132 } 132 }
133 133
134 // If prefs have synced and no user-set value exists at |local_path|, the value 134 // If prefs have synced and no user-set value exists at |local_path|, the value
135 // from |synced_path| is copied to |local_path|. 135 // from |synced_path| is copied to |local_path|.
136 void MaybePropagatePrefToLocal( 136 void MaybePropagatePrefToLocal(
137 syncable_prefs::PrefServiceSyncable* pref_service, 137 syncable_prefs::PrefServiceSyncable* pref_service,
138 const char* local_path, 138 const char* local_path,
139 const char* synced_path) { 139 const char* synced_path) {
(...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 2078
2079 AppIconLoader* ChromeLauncherController::GetAppIconLoaderForApp( 2079 AppIconLoader* ChromeLauncherController::GetAppIconLoaderForApp(
2080 const std::string& app_id) { 2080 const std::string& app_id) {
2081 for (const auto& app_icon_loader : app_icon_loaders_) { 2081 for (const auto& app_icon_loader : app_icon_loaders_) {
2082 if (app_icon_loader->CanLoadImageForApp(app_id)) 2082 if (app_icon_loader->CanLoadImageForApp(app_id))
2083 return app_icon_loader.get(); 2083 return app_icon_loader.get();
2084 } 2084 }
2085 2085
2086 return nullptr; 2086 return nullptr;
2087 } 2087 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698