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

Side by Side Diff: chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc

Issue 11368010: Move aura shared and desktop classes to the views target. Note that the files don't actually move, … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/content_shell.gypi » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/aura/chrome_browser_main_extra_parts_aura.h" 5 #include "chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h"
6 6
7 #include "chrome/browser/chrome_browser_main.h" 7 #include "chrome/browser/chrome_browser_main.h"
8 #include "chrome/browser/toolkit_extra_parts.h" 8 #include "chrome/browser/toolkit_extra_parts.h"
9 #include "ui/aura/desktop/desktop_screen.h" 9 #include "ui/aura/desktop/desktop_screen.h"
10 #include "ui/aura/desktop/desktop_stacking_client.h" 10 #include "ui/aura/desktop/desktop_stacking_client.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/ui/ash/ash_init.h" 22 #include "chrome/browser/ui/ash/ash_init.h"
23 #endif 23 #endif
24 24
25 ChromeBrowserMainExtraPartsAura::ChromeBrowserMainExtraPartsAura() { 25 ChromeBrowserMainExtraPartsAura::ChromeBrowserMainExtraPartsAura() {
26 } 26 }
27 27
28 ChromeBrowserMainExtraPartsAura::~ChromeBrowserMainExtraPartsAura() { 28 ChromeBrowserMainExtraPartsAura::~ChromeBrowserMainExtraPartsAura() {
29 } 29 }
30 30
31 void ChromeBrowserMainExtraPartsAura::PreProfileInit() { 31 void ChromeBrowserMainExtraPartsAura::PreProfileInit() {
32 #if !defined(OS_CHROMEOS)
32 #if defined(USE_ASH) 33 #if defined(USE_ASH)
33 if (!chrome::ShouldOpenAshOnStartup()) 34 if (!chrome::ShouldOpenAshOnStartup())
34 #endif 35 #endif
35 { 36 {
36 gfx::Screen::SetScreenInstance( 37 gfx::Screen::SetScreenInstance(
37 gfx::SCREEN_TYPE_NATIVE, aura::CreateDesktopScreen()); 38 gfx::SCREEN_TYPE_NATIVE, aura::CreateDesktopScreen());
38 aura::Env::GetInstance()->SetDisplayManager(new aura::SingleDisplayManager); 39 aura::Env::GetInstance()->SetDisplayManager(new aura::SingleDisplayManager);
39 stacking_client_.reset(new aura::DesktopStackingClient); 40 stacking_client_.reset(new aura::DesktopStackingClient);
40 } 41 }
42 #endif
41 43
42 #if !defined(USE_ASH) && defined(OS_LINUX) 44 #if !defined(USE_ASH) && defined(OS_LINUX)
43 // TODO(erg): Refactor this into a dlopen call when we add a GTK3 port. 45 // TODO(erg): Refactor this into a dlopen call when we add a GTK3 port.
44 ui::LinuxUI::SetInstance(BuildGtk2UI()); 46 ui::LinuxUI::SetInstance(BuildGtk2UI());
45 #endif 47 #endif
46 } 48 }
47 49
48 void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() { 50 void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() {
49 stacking_client_.reset(); 51 stacking_client_.reset();
50 52
51 // aura::Env instance is deleted in BrowserProcessImpl::StartTearDown 53 // aura::Env instance is deleted in BrowserProcessImpl::StartTearDown
52 // after the metrics service is deleted. 54 // after the metrics service is deleted.
53 } 55 }
54 56
55 namespace chrome { 57 namespace chrome {
56 58
57 void AddAuraToolkitExtraParts(ChromeBrowserMainParts* main_parts) { 59 void AddAuraToolkitExtraParts(ChromeBrowserMainParts* main_parts) {
58 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura()); 60 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura());
59 } 61 }
60 62
61 } // namespace chrome 63 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | content/content_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698