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

Side by Side Diff: chrome/browser/ui/gtk/website_settings/permission_selector_observer.h

Issue 10961016: [gtk] re-acquire input grab on bubbles when another widget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H_
6 #define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H_
7 7
8 class PermissionSelector; 8 class PermissionSelector;
9 9
10 class PermissionSelectorObserver { 10 class PermissionSelectorObserver {
11 public: 11 public:
12 // This method is called when a permission setting is changed by a 12 // This method is called when a permission setting is changed by a
13 // |selector|. 13 // |selector|.
14 virtual void OnPermissionChanged(PermissionSelector* selector) = 0; 14 virtual void OnPermissionChanged(PermissionSelector* selector) = 0;
15 15
16 // GtkComboBox grabs the keyboard and pointer when it displays its popup,
17 // which steals the grabs that BubbleGtk had installed. When the combobox
18 // popup is hidden, we notify BubbleGtk so it can try to reacquire the grabs
19 // (otherwise, GTK won't activate our widgets when the user clicks in them).
20 // OnComboboxShown is called when a combobox popup is closed.
21 virtual void OnComboboxShown() = 0;
22
23 protected: 16 protected:
24 virtual ~PermissionSelectorObserver() {} 17 virtual ~PermissionSelectorObserver() {}
25 }; 18 };
26 19
27 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H _ 20 #endif // CHROME_BROWSER_UI_GTK_WEBSITE_SETTINGS_PERMISSION_SELECTOR_OBSERVER_H _
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/bubble/bubble_gtk.cc ('k') | chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698