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

Unified Diff: chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc

Issue 10545037: Aura/GTK integration: Create a small stub library that can talk to GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky nits Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
diff --git a/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc b/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
index c7004cdefb53b5c01dc23d834db9839af4068d71..748132b525e02d3dd7df87c718245c8fcbc399f4 100644
--- a/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
+++ b/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
@@ -15,6 +15,10 @@
#include "ui/aura/single_monitor_manager.h"
#include "ui/gfx/screen.h"
#include "ui/views/widget/native_widget_aura.h"
+#if defined(OS_LINUX)
+#include "ui/base/linux_ui.h"
+#include "chrome/browser/ui/libgtk2ui/gtk2_ui.h"
+#endif
#endif // !USE_ASH
ChromeBrowserMainExtraPartsAura::ChromeBrowserMainExtraPartsAura() {
@@ -26,6 +30,11 @@ void ChromeBrowserMainExtraPartsAura::PreProfileInit() {
aura::Env::GetInstance()->SetMonitorManager(new aura::SingleMonitorManager);
stacking_client_.reset(new aura::DesktopStackingClient);
#endif // !USE_ASH
+
+#if !defined(USE_ASH) && defined(OS_LINUX)
+ // TODO(erg): Refactor this into a dlopen call when we add a GTK3 port.
+ ui::LinuxUI::SetInstance(BuildGtk2UI());
+#endif
}
void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() {

Powered by Google App Engine
This is Rietveld 408576698