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

Unified Diff: ui/base/linux_ui.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
« ui/base/linux_ui.h ('K') | « ui/base/linux_ui.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/linux_ui.cc
diff --git a/ui/base/linux_ui.cc b/ui/base/linux_ui.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0f9ed4cf5ccc0e10aaf756f1e0e83df28e67a368
--- /dev/null
+++ b/ui/base/linux_ui.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/linux_ui.h"
+
+namespace {
+
+ui::LinuxUI* g_linux_ui = NULL;
+
+} // namespace
+
+namespace ui {
+
+void LinuxUI::SetInstance(LinuxUI* instance) {
+ delete g_linux_ui;
+ g_linux_ui = instance;
+}
+
+const LinuxUI* LinuxUI::instance() {
+ return g_linux_ui;
+}
+
+} // namespace ui
« ui/base/linux_ui.h ('K') | « ui/base/linux_ui.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698