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

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

Issue 8821011: Switch Protector to the new icons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unmerge changes from old CL Created 9 years 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
« no previous file with comments | « no previous file | chrome/browser/protector/default_search_provider_change.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASE_SETTING_CHANGE_H_ 5 #ifndef CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_
6 #define CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ 6 #define CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 37
38 // Restores old setting if needed. 38 // Restores old setting if needed.
39 virtual void Discard(); 39 virtual void Discard();
40 40
41 // Indicates that user has ignored this change and timeout has passed. 41 // Indicates that user has ignored this change and timeout has passed.
42 virtual void Timeout(); 42 virtual void Timeout();
43 43
44 // Called before the change is removed from the protector instance. 44 // Called before the change is removed from the protector instance.
45 virtual void OnBeforeRemoved() = 0; 45 virtual void OnBeforeRemoved() = 0;
46 46
47 // Returns the resource ID of the badge icon.
48 virtual int GetBadgeIconID() const = 0;
49
50 // Returns the resource ID for the menu item icon.
51 virtual int GetMenuItemIconID() const = 0;
52
53 // Returns the resource ID for bubble view icon.
54 virtual int GetBubbleIconID() const = 0;
55
47 // Returns the wrench menu item and bubble title. 56 // Returns the wrench menu item and bubble title.
48 virtual string16 GetBubbleTitle() const = 0; 57 virtual string16 GetBubbleTitle() const = 0;
49 58
50 // Returns the bubble message text. 59 // Returns the bubble message text.
51 virtual string16 GetBubbleMessage() const = 0; 60 virtual string16 GetBubbleMessage() const = 0;
52 61
53 // Returns text for the button to apply the change with |Apply|. 62 // Returns text for the button to apply the change with |Apply|.
54 // Returns empty string if no apply button should be shown. 63 // Returns empty string if no apply button should be shown.
55 virtual string16 GetApplyButtonText() const = 0; 64 virtual string16 GetApplyButtonText() const = 0;
56 65
(...skipping 15 matching lines...) Expand all
72 // Allocates and initializes SettingChange implementation for default search 81 // Allocates and initializes SettingChange implementation for default search
73 // provider setting. Both |actual| and |backup| may be NULL if corresponding 82 // provider setting. Both |actual| and |backup| may be NULL if corresponding
74 // values are unknown or invalid. 83 // values are unknown or invalid.
75 BaseSettingChange* CreateDefaultSearchProviderChange( 84 BaseSettingChange* CreateDefaultSearchProviderChange(
76 const TemplateURL* actual, 85 const TemplateURL* actual,
77 const TemplateURL* backup); 86 const TemplateURL* backup);
78 87
79 } // namespace protector 88 } // namespace protector
80 89
81 #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_ 90 #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/protector/default_search_provider_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698