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

Side by Side Diff: components/infobars/core/infobar_delegate.h

Issue 1364913005: Update some more infobars to use vector icons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac Created 5 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/base/window_open_disposition.h" 10 #include "ui/base/window_open_disposition.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // as background color) of the infobar. 79 // as background color) of the infobar.
80 virtual Type GetInfoBarType() const; 80 virtual Type GetInfoBarType() const;
81 81
82 virtual InfoBarAutomationType GetInfoBarAutomationType() const; 82 virtual InfoBarAutomationType GetInfoBarAutomationType() const;
83 83
84 // Returns the resource ID of the icon to be shown for this InfoBar. If the 84 // Returns the resource ID of the icon to be shown for this InfoBar. If the
85 // value is equal to |kNoIconID|, GetIcon() will not show an icon by default. 85 // value is equal to |kNoIconID|, GetIcon() will not show an icon by default.
86 virtual int GetIconId() const; 86 virtual int GetIconId() const;
87 87
88 // Returns the vector icon identifier to be shown for this InfoBar. This will 88 // Returns the vector icon identifier to be shown for this InfoBar. This will
89 // take precedent over GetIconId() (although typically only one of the two 89 // take precedence over GetIconId() (although typically only one of the two
90 // should be defined for any given infobar). 90 // should be defined for any given infobar).
91 virtual gfx::VectorIconId GetVectorIconId() const; 91 virtual gfx::VectorIconId GetVectorIconId() const;
92 92
93 // Returns the icon to be shown for this InfoBar. If the returned Image is 93 // Returns the icon to be shown for this InfoBar. If the returned Image is
94 // empty, no icon is shown. 94 // empty, no icon is shown.
95 // 95 //
96 // Most subclasses should not override this; override GetIconId() instead 96 // Most subclasses should not override this; override GetIconId() instead
97 // unless the infobar needs to show an image from somewhere other than the 97 // unless the infobar needs to show an image from somewhere other than the
98 // resource bundle as its icon. 98 // resource bundle as its icon.
99 virtual gfx::Image GetIcon() const; 99 virtual gfx::Image GetIcon() const;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 // The ID of the active navigation entry at the time we became owned. 146 // The ID of the active navigation entry at the time we became owned.
147 int nav_entry_id_; 147 int nav_entry_id_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 149 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
150 }; 150 };
151 151
152 } // namespace infobars 152 } // namespace infobars
153 153
154 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 154 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/bad_flags_prompt.cc ('k') | components/infobars/core/simple_alert_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698