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

Side by Side Diff: chrome/browser/ui/global_error/global_error.h

Issue 1289413003: Switch global error menu icon to vectorized MD asset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kick signin error service on mac Created 5 years, 3 months 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
OLDNEW
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_GLOBAL_ERROR_GLOBAL_ERROR_H_ 5 #ifndef CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_
6 #define CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_ 6 #define CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 // the error with the highest severity will display in the menu. If not 34 // the error with the highest severity will display in the menu. If not
35 // overridden, this is based on the badge resource ID. 35 // overridden, this is based on the badge resource ID.
36 virtual Severity GetSeverity(); 36 virtual Severity GetSeverity();
37 37
38 // Returns true if a menu item should be added to the wrench menu. 38 // Returns true if a menu item should be added to the wrench menu.
39 virtual bool HasMenuItem() = 0; 39 virtual bool HasMenuItem() = 0;
40 // Returns the command ID for the menu item. 40 // Returns the command ID for the menu item.
41 virtual int MenuItemCommandID() = 0; 41 virtual int MenuItemCommandID() = 0;
42 // Returns the label for the menu item. 42 // Returns the label for the menu item.
43 virtual base::string16 MenuItemLabel() = 0; 43 virtual base::string16 MenuItemLabel() = 0;
44 // Returns the resource ID for the menu item icon. 44 // Returns the menu item icon.
45 virtual int MenuItemIconResourceID(); 45 virtual gfx::Image MenuItemIcon();
46 // Called when the user clicks on the menu item. 46 // Called when the user clicks on the menu item.
47 virtual void ExecuteMenuItem(Browser* browser) = 0; 47 virtual void ExecuteMenuItem(Browser* browser) = 0;
48 48
49 // Returns true if a bubble view should be shown. 49 // Returns true if a bubble view should be shown.
50 virtual bool HasBubbleView() = 0; 50 virtual bool HasBubbleView() = 0;
51 // Returns true if the bubble view has been shown. 51 // Returns true if the bubble view has been shown.
52 virtual bool HasShownBubbleView() = 0; 52 virtual bool HasShownBubbleView() = 0;
53 // Called to show the bubble view. 53 // Called to show the bubble view.
54 virtual void ShowBubbleView(Browser* browser) = 0; 54 virtual void ShowBubbleView(Browser* browser) = 0;
55 // Returns the bubble view. 55 // Returns the bubble view.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 GlobalErrorBubbleViewBase* GetBubbleView() override; 109 GlobalErrorBubbleViewBase* GetBubbleView() override;
110 110
111 private: 111 private:
112 bool has_shown_bubble_view_; 112 bool has_shown_bubble_view_;
113 GlobalErrorBubbleViewBase* bubble_view_; 113 GlobalErrorBubbleViewBase* bubble_view_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(GlobalErrorWithStandardBubble); 115 DISALLOW_COPY_AND_ASSIGN(GlobalErrorWithStandardBubble);
116 }; 116 };
117 117
118 #endif // CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_ 118 #endif // CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698