| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_CONTENT_SETTINGS_CONTENT_SETTING_CHANGED_INFOBAR_DELEG
ATE_H_ | 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_CHANGED_INFOBAR_DELEG
ATE_H_ |
| 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_CHANGED_INFOBAR_DELEG
ATE_H_ | 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_CHANGED_INFOBAR_DELEG
ATE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 8 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
| 9 | 9 |
| 10 class InfoBarService; | 10 class InfoBarService; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 message_text)); | 34 message_text)); |
| 35 } | 35 } |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 ContentSettingChangedInfoBarDelegate(InfoBarService* infobar_service, | 39 ContentSettingChangedInfoBarDelegate(InfoBarService* infobar_service, |
| 40 int icon, | 40 int icon, |
| 41 int message_text); | 41 int message_text); |
| 42 | 42 |
| 43 // ConfirmInfoBarDelegate overrides. | 43 // ConfirmInfoBarDelegate overrides. |
| 44 virtual gfx::Image* GetIcon() const OVERRIDE; | 44 virtual int GetIconID() const OVERRIDE; |
| 45 virtual Type GetInfoBarType() const OVERRIDE; | 45 virtual Type GetInfoBarType() const OVERRIDE; |
| 46 virtual string16 GetMessageText() const OVERRIDE; | 46 virtual string16 GetMessageText() const OVERRIDE; |
| 47 virtual int GetButtons() const OVERRIDE; | 47 virtual int GetButtons() const OVERRIDE; |
| 48 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; | 48 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
| 49 virtual bool Accept() OVERRIDE; | 49 virtual bool Accept() OVERRIDE; |
| 50 | 50 |
| 51 int icon_; | 51 int icon_; |
| 52 int message_text_; | 52 int message_text_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(ContentSettingChangedInfoBarDelegate); | 54 DISALLOW_COPY_AND_ASSIGN(ContentSettingChangedInfoBarDelegate); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_CHANGED_INFOBAR_DE
LEGATE_H_ | 57 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_CHANGED_INFOBAR_DE
LEGATE_H_ |
| OLD | NEW |