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

Side by Side Diff: chrome/browser/translate/translate_infobar_delegate.h

Issue 15067008: [InfoBar] Add InfoBarDelegate::GetIconID() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit fixes redux Created 7 years, 7 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) 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_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 const std::string& original_language, 185 const std::string& original_language,
186 const std::string& target_language); 186 const std::string& target_language);
187 Type infobar_type_; 187 Type infobar_type_;
188 188
189 private: 189 private:
190 typedef std::pair<std::string, string16> LanguageNamePair; 190 typedef std::pair<std::string, string16> LanguageNamePair;
191 191
192 // InfoBarDelegate: 192 // InfoBarDelegate:
193 virtual InfoBar* CreateInfoBar(InfoBarService* infobar_service) OVERRIDE; 193 virtual InfoBar* CreateInfoBar(InfoBarService* infobar_service) OVERRIDE;
194 virtual void InfoBarDismissed() OVERRIDE; 194 virtual void InfoBarDismissed() OVERRIDE;
195 virtual gfx::Image* GetIcon() const OVERRIDE; 195 virtual int GetIconID() const OVERRIDE;
196 virtual InfoBarDelegate::Type GetInfoBarType() const OVERRIDE; 196 virtual InfoBarDelegate::Type GetInfoBarType() const OVERRIDE;
197 virtual bool ShouldExpire( 197 virtual bool ShouldExpire(
198 const content::LoadCommittedDetails& details) const OVERRIDE; 198 const content::LoadCommittedDetails& details) const OVERRIDE;
199 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE; 199 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE;
200 200
201 // Gets the host of the page being translated, or an empty string if no URL is 201 // Gets the host of the page being translated, or an empty string if no URL is
202 // associated with the current page. 202 // associated with the current page.
203 std::string GetPageHost(); 203 std::string GetPageHost();
204 204
205 // The type of fading animation if any that should be used when showing this 205 // The type of fading animation if any that should be used when showing this
(...skipping 24 matching lines...) Expand all
230 230
231 // The translation related preferences. 231 // The translation related preferences.
232 TranslatePrefs prefs_; 232 TranslatePrefs prefs_;
233 233
234 // Translation shortcut configuration 234 // Translation shortcut configuration
235 ShortcutConfiguration shortcut_config_; 235 ShortcutConfiguration shortcut_config_;
236 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); 236 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate);
237 }; 237 };
238 238
239 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 239 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_tab_helper.cc ('k') | chrome/browser/translate/translate_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698