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

Unified Diff: chrome/browser/ui/libgtk2ui/gconf_listener.h

Issue 2449243002: Gtk3 ui: Add libgtk3ui as a separate build component (Closed)
Patch Set: Add theme_properties dep to //chrome/browser/ui Created 4 years, 2 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/libgtk2ui/gconf_listener.h
diff --git a/chrome/browser/ui/libgtk2ui/gconf_listener.h b/chrome/browser/ui/libgtk2ui/gconf_listener.h
deleted file mode 100644
index 98bd694a987034867367278b2dd95691fa33f21e..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/libgtk2ui/gconf_listener.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef CHROME_BROWSER_UI_LIBGTK2UI_GCONF_LISTENER_H_
-#define CHROME_BROWSER_UI_LIBGTK2UI_GCONF_LISTENER_H_
-
-#include <gconf/gconf-client.h>
-#include <gtk/gtk.h>
-
-#include <set>
-#include <string>
-
-#include "base/callback_forward.h"
-#include "base/macros.h"
-#include "chrome/browser/ui/libgtk2ui/gtk2_signal.h"
-
-namespace libgtk2ui {
-class Gtk2UI;
-
-// On GNOME desktops, subscribes to the gconf key which controlls button order.
-// Everywhere else, SetTiltebarButtons() just calls back into BrowserTitlebar
-// with the default ordering.
-class GConfListener {
- public:
- // Sends data to the Gtk2UI when available.
- explicit GConfListener(Gtk2UI* delegate);
- ~GConfListener();
-
- private:
- // Called whenever the metacity key changes.
- CHROMEG_CALLBACK_2(GConfListener, void, OnChangeNotification,
- GConfClient*, guint, GConfEntry*);
-
- void GetAndRegister(const char* key_to_subscribe,
- const base::Callback<void(GConfValue*)>& initial_setter);
-
- // 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 ParseAndStoreButtonValue(GConfValue* gconf_value);
- void ParseAndStoreMiddleClickValue(GConfValue* gconf_value);
-
- Gtk2UI* delegate_;
-
- // Pointer to our gconf context. NULL if we aren't on a desktop that uses
- // gconf.
- GConfClient* client_;
-
- DISALLOW_COPY_AND_ASSIGN(GConfListener);
-};
-
-} // namespace libgtk2ui
-
-#endif // CHROME_BROWSER_UI_LIBGTK2UI_GCONF_LISTENER_H_
« no previous file with comments | « chrome/browser/ui/libgtk2ui/chrome_gtk_menu_subclasses.cc ('k') | chrome/browser/ui/libgtk2ui/gconf_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698