OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_ | |
6 #define CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 | |
10 class Browser; | |
11 | |
12 namespace protector { | |
13 | |
14 class SettingsChangeGlobalError; | |
15 | |
16 // Interface for notifications about settings change error bubble closing. | |
17 class SettingsChangeGlobalErrorDelegate { | |
18 public: | |
19 virtual ~SettingsChangeGlobalErrorDelegate() {} | |
20 | |
21 // Called if user clicks "Apply change" button. | |
22 virtual void OnApplyChange(SettingsChangeGlobalError* error, | |
23 Browser* browser) = 0; | |
24 | |
25 // Called if user clicks "Discard change" button. | |
26 virtual void OnDiscardChange(SettingsChangeGlobalError* error, | |
27 Browser* browser) = 0; | |
28 | |
29 // Called if user clicked outside the bubble and timeout for its reshow | |
30 // has passed. | |
31 virtual void OnDecisionTimeout(SettingsChangeGlobalError* error) = 0; | |
32 | |
33 // Called when error is removed from profile so it's safe to delete it. | |
34 virtual void OnRemovedFromProfile(SettingsChangeGlobalError* error) = 0; | |
35 }; | |
36 | |
37 } // namespace protector | |
38 | |
39 #endif // CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_ | |
OLD | NEW |