| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "chrome/browser/tab_contents/navigation_controller.h" | 11 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 12 #include "skia/include/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 #include "webkit/glue/window_open_disposition.h" | 13 #include "webkit/glue/window_open_disposition.h" |
| 14 | 14 |
| 15 class AlertInfoBarDelegate; | 15 class AlertInfoBarDelegate; |
| 16 class ConfirmInfoBarDelegate; | 16 class ConfirmInfoBarDelegate; |
| 17 class InfoBar; | 17 class InfoBar; |
| 18 class LinkInfoBarDelegate; | 18 class LinkInfoBarDelegate; |
| 19 | 19 |
| 20 // An interface implemented by objects wishing to control an InfoBar. | 20 // An interface implemented by objects wishing to control an InfoBar. |
| 21 // Implementing this interface is not sufficient to use an InfoBar, since it | 21 // Implementing this interface is not sufficient to use an InfoBar, since it |
| 22 // does not map to a specific InfoBar type. Instead, you must implement either | 22 // does not map to a specific InfoBar type. Instead, you must implement either |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 virtual void InfoBarClosed(); | 221 virtual void InfoBarClosed(); |
| 222 | 222 |
| 223 private: | 223 private: |
| 224 std::wstring message_; | 224 std::wstring message_; |
| 225 SkBitmap* icon_; | 225 SkBitmap* icon_; |
| 226 | 226 |
| 227 DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate); | 227 DISALLOW_COPY_AND_ASSIGN(SimpleAlertInfoBarDelegate); |
| 228 }; | 228 }; |
| 229 | 229 |
| 230 #endif // #ifndef CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_ | 230 #endif // #ifndef CHROME_BROWSER_TAB_CONTENTS_INFOBAR_DELEGATE_H_ |
| OLD | NEW |