| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 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 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 |
| 11 namespace protector { |
| 12 |
| 13 // Interface for notifications about settings change error bubble closing. |
| 14 class SettingsChangeGlobalErrorDelegate { |
| 15 public: |
| 16 virtual ~SettingsChangeGlobalErrorDelegate() {} |
| 17 |
| 18 // Called if user clicks "Apply change" button. |
| 19 virtual void OnApplyChanges() = 0; |
| 20 |
| 21 // Called if user clicks "Discard change" button. |
| 22 virtual void OnDiscardChanges() = 0; |
| 23 |
| 24 // Called if user clicked outside the bubble and timeout for its reshow |
| 25 // has passed. |
| 26 virtual void OnDecisionTimeout() = 0; |
| 27 }; |
| 28 |
| 29 } // namespace protector |
| 30 |
| 31 #endif // CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_ |
| 32 |
| OLD | NEW |