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

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

Issue 23922007: Merge the LinuxUI interface from its own .so into libviews.so. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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/ui/aura/active_desktop_monitor.h" 8 #include "chrome/browser/ui/aura/active_desktop_monitor.h"
9 #include "chrome/browser/ui/host_desktop.h" 9 #include "chrome/browser/ui/host_desktop.h"
10 #include "ui/aura/env.h" 10 #include "ui/aura/env.h"
11 #include "ui/gfx/screen.h" 11 #include "ui/gfx/screen.h"
12 #include "ui/views/widget/desktop_aura/desktop_screen.h" 12 #include "ui/views/widget/desktop_aura/desktop_screen.h"
13 #include "ui/views/widget/native_widget_aura.h" 13 #include "ui/views/widget/native_widget_aura.h"
14 14
15 #if defined(OS_LINUX) 15 #if defined(OS_LINUX)
16 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h" 16 #include "chrome/browser/ui/libgtk2ui/gtk2_ui.h"
17 #include "ui/linux_ui/linux_ui.h" 17 #include "ui/views/linux_ui/linux_ui.h"
18 #else 18 #else
19 #endif 19 #endif
20 20
21 #if defined(USE_ASH) 21 #if defined(USE_ASH)
22 #include "chrome/browser/ui/ash/ash_init.h" 22 #include "chrome/browser/ui/ash/ash_init.h"
23 #if defined(OS_WIN) 23 #if defined(OS_WIN)
24 #include "base/command_line.h" 24 #include "base/command_line.h"
25 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
26 #endif // defined(OS_WIN) 26 #endif // defined(OS_WIN)
27 #endif // defined(USE_ASH) 27 #endif // defined(USE_ASH)
(...skipping 27 matching lines...) Expand all
55 if (!chrome::ShouldOpenAshOnStartup()) 55 if (!chrome::ShouldOpenAshOnStartup())
56 #endif 56 #endif
57 { 57 {
58 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, 58 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE,
59 views::CreateDesktopScreen()); 59 views::CreateDesktopScreen());
60 } 60 }
61 #endif 61 #endif
62 62
63 #if !defined(USE_ASH) && defined(OS_LINUX) && defined(USE_X11) 63 #if !defined(USE_ASH) && defined(OS_LINUX) && defined(USE_X11)
64 // TODO(erg): Refactor this into a dlopen call when we add a GTK3 port. 64 // TODO(erg): Refactor this into a dlopen call when we add a GTK3 port.
65 ui::LinuxUI::SetInstance(BuildGtk2UI()); 65 views::LinuxUI::SetInstance(BuildGtk2UI());
66 #endif 66 #endif
67 } 67 }
68 68
69 void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() { 69 void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() {
70 active_desktop_monitor_.reset(); 70 active_desktop_monitor_.reset();
71 71
72 // aura::Env instance is deleted in BrowserProcessImpl::StartTearDown 72 // aura::Env instance is deleted in BrowserProcessImpl::StartTearDown
73 // after the metrics service is deleted. 73 // after the metrics service is deleted.
74 } 74 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_service_factory.cc ('k') | chrome/browser/ui/libgtk2ui/app_indicator_icon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698