| OLD | NEW |
| 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
_ |
| OLD | NEW |