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

Unified Diff: chrome/browser/ui/gtk/website_settings/permission_selector_observer.h

Issue 10827374: (GTK only) Add icons to the "Permissions" tab of the Website Settings UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add explicit PermissionSelector dtor. Created 8 years, 4 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/gtk/website_settings/permission_selector_observer.h
diff --git a/chrome/browser/ui/gtk/website_settings/permission_selector_observer.h b/chrome/browser/ui/gtk/website_settings/permission_selector_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..224aee06477af7eebb1a33bf23b137ce08791c24
--- /dev/null
+++ b/chrome/browser/ui/gtk/website_settings/permission_selector_observer.h
@@ -0,0 +1,27 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H_
+#define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H_
+
+class PermissionSelector;
+
+class PermissionSelectorObserver {
+ public:
+ // This method is called when a permission setting is changed by a
+ // |selector|.
+ virtual void OnPermissionChanged(PermissionSelector* selector) = 0;
+
+ // GtkComboBox grabs the keyboard and pointer when it displays its popup,
+ // which steals the grabs that BubbleGtk had installed. When the combobox
+ // popup is hidden, we notify BubbleGtk so it can try to reacquire the grabs
+ // (otherwise, GTK won't activate our widgets when the user clicks in them).
+ // OnComboboxShown is called when a combobox popup is closed.
+ virtual void OnComboboxShown() = 0;
+
+ protected:
+ virtual ~PermissionSelectorObserver() {}
+};
+
+#endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698