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

Side by Side Diff: ui/views_content_client/views_content_client_main_parts_desktop_aura.cc

Issue 1948273004: Rename gfx::Screen/DIsplay to display::Screen/Display in ui/views_content_client (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 | « ui/views_content_client/views_content_client_main_parts_chromeos.cc ('k') | no next file » | 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "content/shell/browser/shell_browser_context.h" 6 #include "content/shell/browser/shell_browser_context.h"
7 #include "ui/gfx/screen.h" 7 #include "ui/display/screen.h"
8 #include "ui/views/widget/desktop_aura/desktop_screen.h" 8 #include "ui/views/widget/desktop_aura/desktop_screen.h"
9 #include "ui/views_content_client/views_content_client.h" 9 #include "ui/views_content_client/views_content_client.h"
10 #include "ui/views_content_client/views_content_client_main_parts_aura.h" 10 #include "ui/views_content_client/views_content_client_main_parts_aura.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 namespace { 14 namespace {
15 15
16 class ViewsContentClientMainPartsDesktopAura 16 class ViewsContentClientMainPartsDesktopAura
17 : public ViewsContentClientMainPartsAura { 17 : public ViewsContentClientMainPartsAura {
(...skipping 12 matching lines...) Expand all
30 30
31 ViewsContentClientMainPartsDesktopAura::ViewsContentClientMainPartsDesktopAura( 31 ViewsContentClientMainPartsDesktopAura::ViewsContentClientMainPartsDesktopAura(
32 const content::MainFunctionParams& content_params, 32 const content::MainFunctionParams& content_params,
33 ViewsContentClient* views_content_client) 33 ViewsContentClient* views_content_client)
34 : ViewsContentClientMainPartsAura(content_params, views_content_client) { 34 : ViewsContentClientMainPartsAura(content_params, views_content_client) {
35 } 35 }
36 36
37 void ViewsContentClientMainPartsDesktopAura::PreMainMessageLoopRun() { 37 void ViewsContentClientMainPartsDesktopAura::PreMainMessageLoopRun() {
38 ViewsContentClientMainPartsAura::PreMainMessageLoopRun(); 38 ViewsContentClientMainPartsAura::PreMainMessageLoopRun();
39 39
40 gfx::Screen::SetScreenInstance(views::CreateDesktopScreen()); 40 display::Screen::SetScreenInstance(views::CreateDesktopScreen());
41 41
42 views_content_client()->task().Run(browser_context(), NULL); 42 views_content_client()->task().Run(browser_context(), NULL);
43 } 43 }
44 44
45 } // namespace 45 } // namespace
46 46
47 // static 47 // static
48 ViewsContentClientMainParts* ViewsContentClientMainParts::Create( 48 ViewsContentClientMainParts* ViewsContentClientMainParts::Create(
49 const content::MainFunctionParams& content_params, 49 const content::MainFunctionParams& content_params,
50 ViewsContentClient* views_content_client) { 50 ViewsContentClient* views_content_client) {
51 return new ViewsContentClientMainPartsDesktopAura( 51 return new ViewsContentClientMainPartsDesktopAura(
52 content_params, views_content_client); 52 content_params, views_content_client);
53 } 53 }
54 54
55 } // namespace ui 55 } // namespace ui
OLDNEW
« no previous file with comments | « ui/views_content_client/views_content_client_main_parts_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698