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

Unified Diff: chrome/browser/gtk/gconf_titlebar_listener.h

Issue 6099014: Move chrome/browser/gtk to chrome/browser/ui/gtk (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Move browser/gtk/ to browser/ui/gtk/, leave header stubs, update new header guards Created 9 years, 11 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
« no previous file with comments | « chrome/browser/gtk/fullscreen_exit_bubble_gtk.h ('k') | chrome/browser/gtk/gtk_chrome_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/gconf_titlebar_listener.h
diff --git a/chrome/browser/gtk/gconf_titlebar_listener.h b/chrome/browser/gtk/gconf_titlebar_listener.h
index b96b7593c034f70386576c416c28236364a355a4..87a2e3f734f3b713c6f39f712b1951def1d2e53b 100644
--- a/chrome/browser/gtk/gconf_titlebar_listener.h
+++ b/chrome/browser/gtk/gconf_titlebar_listener.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -6,67 +6,7 @@
#define CHROME_BROWSER_GTK_GCONF_TITLEBAR_LISTENER_H_
#pragma once
-#include <gconf/gconf-client.h>
-#include <gtk/gtk.h>
-
-#include <set>
-#include <string>
-
-#include "app/gtk_signal.h"
-#include "base/basictypes.h"
-
-class BrowserTitlebar;
-template <typename T> struct DefaultSingletonTraits;
-
-// On GNOME desktops, subscribes to the gconf key which controlls button order.
-// Everywhere else, SetTiltebarButtons() just calls back into BrowserTitlebar
-// with the default ordering.
-//
-// Meant to be used as a Singleton through base/singleton.h's interface.
-class GConfTitlebarListener {
- public:
- // Returns the singleton instance.
- static GConfTitlebarListener* GetInstance();
-
- // Sets the current titlebar button order. On GNOME desktops, also subscribes
- // to further notifications when this changes.
- void SetTitlebarButtons(BrowserTitlebar* titlebar);
-
- // Removes |titlebar| from the list of objects observing button order change
- // notifications.
- void RemoveObserver(BrowserTitlebar* titlebar);
-
- protected:
- virtual ~GConfTitlebarListener();
-
- private:
- // Private constructor to enforce singleton access.
- GConfTitlebarListener();
-
- // Called whenever the metacity key changes.
- CHROMEG_CALLBACK_2(GConfTitlebarListener, void, OnChangeNotification,
- GConfClient*, guint, GConfEntry*);
-
- // Checks |error|. On error, prints out a message and closes the connection
- // to GConf and reverts to default mode.
- bool HandleGError(GError* error, const char* key);
-
- // Parses the return data structure from GConf, falling back to the default
- // value on any error.
- void ParseAndStoreValue(GConfValue* gconf_value);
-
- // Pointer to our gconf context. NULL if we aren't on a desktop that uses
- // gconf.
- GConfClient* client_;
-
- // The current button ordering as heard from gconf.
- std::string current_value_;
-
- // BrowserTitlebar objects which have subscribed to updates.
- std::set<BrowserTitlebar*> titlebars_;
-
- friend struct DefaultSingletonTraits<GConfTitlebarListener>;
- DISALLOW_COPY_AND_ASSIGN(GConfTitlebarListener);
-};
+#include "chrome/browser/ui/gtk/gconf_titlebar_listener.h"
+// TODO(msw): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_GTK_GCONF_TITLEBAR_LISTENER_H_
« no previous file with comments | « chrome/browser/gtk/fullscreen_exit_bubble_gtk.h ('k') | chrome/browser/gtk/gtk_chrome_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698