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

Side by Side Diff: chrome/browser/protector/settings_change_global_error_delegate.h

Issue 8558020: Protector strings and bubble/SettingsChange code refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: This time it really should compile. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 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 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_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_
6 #define CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_ 6 #define CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 namespace protector { 11 namespace protector {
12 12
13 // Interface for notifications about settings change error bubble closing. 13 // Interface for notifications about settings change error bubble closing.
14 class SettingsChangeGlobalErrorDelegate { 14 class SettingsChangeGlobalErrorDelegate {
15 public: 15 public:
16 virtual ~SettingsChangeGlobalErrorDelegate() {} 16 virtual ~SettingsChangeGlobalErrorDelegate() {}
17 17
18 // Called if user clicks "Apply change" button. 18 // Called if user clicks "Apply change" button.
19 virtual void OnApplyChanges() = 0; 19 virtual void OnApplyChange() = 0;
20 20
21 // Called if user clicks "Discard change" button. 21 // Called if user clicks "Discard change" button.
22 virtual void OnDiscardChanges() = 0; 22 virtual void OnDiscardChange() = 0;
23 23
24 // Called if user clicked outside the bubble and timeout for its reshow 24 // Called if user clicked outside the bubble and timeout for its reshow
25 // has passed. 25 // has passed.
26 virtual void OnDecisionTimeout() = 0; 26 virtual void OnDecisionTimeout() = 0;
27 27
28 // Called when error is removed from profile so it's safe to delete it. 28 // Called when error is removed from profile so it's safe to delete it.
29 virtual void OnRemovedFromProfile() = 0; 29 virtual void OnRemovedFromProfile() = 0;
30 }; 30 };
31 31
32 } // namespace protector 32 } // namespace protector
33 33
34 #endif // CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_ 34 #endif // CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_
35
OLDNEW
« no previous file with comments | « chrome/browser/protector/settings_change_global_error.cc ('k') | chrome/browser/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698