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

Side by Side Diff: chrome/browser/ui/extensions/app_metro_infobar_delegate_win.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 9 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
10 #include "chrome/browser/infobars/infobar_service.h" 10 #include "chrome/browser/infobars/infobar_service.h"
(...skipping 23 matching lines...) Expand all
34 Mode mode, 34 Mode mode,
35 const std::string& extension_id); 35 const std::string& extension_id);
36 36
37 private: 37 private:
38 explicit AppMetroInfoBarDelegateWin(InfoBarService* infobar_service, 38 explicit AppMetroInfoBarDelegateWin(InfoBarService* infobar_service,
39 Mode mode, 39 Mode mode,
40 const std::string& extension_id); 40 const std::string& extension_id);
41 virtual ~AppMetroInfoBarDelegateWin(); 41 virtual ~AppMetroInfoBarDelegateWin();
42 42
43 // ConfirmInfoBarDelegate overrides: 43 // ConfirmInfoBarDelegate overrides:
44 virtual gfx::Image* GetIcon() const OVERRIDE; 44 virtual int GetIconID() const OVERRIDE;
45 virtual string16 GetMessageText() const OVERRIDE; 45 virtual string16 GetMessageText() const OVERRIDE;
46 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 46 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
47 virtual bool Accept() OVERRIDE; 47 virtual bool Accept() OVERRIDE;
48 virtual bool Cancel() OVERRIDE; 48 virtual bool Cancel() OVERRIDE;
49 virtual string16 GetLinkText() const OVERRIDE; 49 virtual string16 GetLinkText() const OVERRIDE;
50 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 50 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
51 51
52 Mode mode_; 52 Mode mode_;
53 std::string extension_id_; 53 std::string extension_id_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(AppMetroInfoBarDelegateWin); 55 DISALLOW_COPY_AND_ASSIGN(AppMetroInfoBarDelegateWin);
56 }; 56 };
57 57
58 } // namespace chrome 58 } // namespace chrome
59 59
60 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_ 60 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_METRO_INFOBAR_DELEGATE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698