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

Side by Side Diff: chrome/browser/pepper_broker_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) 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_PEPPER_BROKER_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 10 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
(...skipping 26 matching lines...) Expand all
37 InfoBarService* infobar_service, 37 InfoBarService* infobar_service,
38 const GURL& url, 38 const GURL& url,
39 const base::FilePath& plugin_path, 39 const base::FilePath& plugin_path,
40 const std::string& languages, 40 const std::string& languages,
41 HostContentSettingsMap* content_settings, 41 HostContentSettingsMap* content_settings,
42 TabSpecificContentSettings* tab_content_settings, 42 TabSpecificContentSettings* tab_content_settings,
43 const base::Callback<void(bool)>& callback); 43 const base::Callback<void(bool)>& callback);
44 virtual ~PepperBrokerInfoBarDelegate(); 44 virtual ~PepperBrokerInfoBarDelegate();
45 45
46 // ConfirmInfoBarDelegate: 46 // ConfirmInfoBarDelegate:
47 virtual gfx::Image* GetIcon() const OVERRIDE; 47 virtual int GetIconID() const OVERRIDE;
48 virtual string16 GetMessageText() const OVERRIDE; 48 virtual string16 GetMessageText() const OVERRIDE;
49 virtual int GetButtons() const OVERRIDE; 49 virtual int GetButtons() const OVERRIDE;
50 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 50 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
51 virtual bool Accept() OVERRIDE; 51 virtual bool Accept() OVERRIDE;
52 virtual bool Cancel() OVERRIDE; 52 virtual bool Cancel() OVERRIDE;
53 virtual string16 GetLinkText() const OVERRIDE; 53 virtual string16 GetLinkText() const OVERRIDE;
54 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 54 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
55 55
56 void DispatchCallback(bool result); 56 void DispatchCallback(bool result);
57 57
58 const GURL url_; 58 const GURL url_;
59 const base::FilePath plugin_path_; 59 const base::FilePath plugin_path_;
60 const std::string languages_; 60 const std::string languages_;
61 HostContentSettingsMap* content_settings_; 61 HostContentSettingsMap* content_settings_;
62 TabSpecificContentSettings* tab_content_settings_; 62 TabSpecificContentSettings* tab_content_settings_;
63 base::Callback<void(bool)> callback_; 63 base::Callback<void(bool)> callback_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(PepperBrokerInfoBarDelegate); 65 DISALLOW_COPY_AND_ASSIGN(PepperBrokerInfoBarDelegate);
66 }; 66 };
67 67
68 #endif // CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_ 68 #endif // CHROME_BROWSER_PEPPER_BROKER_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager_delegate_impl.cc ('k') | chrome/browser/pepper_broker_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698