| OLD | NEW |
| 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 #include "chrome/browser/tab_contents/infobar_delegate.h" | 5 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/tab_contents/navigation_entry.h" | 9 #include "content/browser/tab_contents/navigation_entry.h" |
| 10 #include "chrome/browser/tab_contents/navigation_controller.h" | 10 #include "content/browser/tab_contents/navigation_controller.h" |
| 11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "content/browser/tab_contents/tab_contents.h" |
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
| 14 | 14 |
| 15 // LinkInfoBarDelegate -------------------------------------------------------- | 15 // LinkInfoBarDelegate -------------------------------------------------------- |
| 16 | 16 |
| 17 bool LinkInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { | 17 bool LinkInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { |
| 18 return true; | 18 return true; |
| 19 } | 19 } |
| 20 | 20 |
| 21 LinkInfoBarDelegate::LinkInfoBarDelegate(TabContents* contents) | 21 LinkInfoBarDelegate::LinkInfoBarDelegate(TabContents* contents) |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 return icon_; | 108 return icon_; |
| 109 } | 109 } |
| 110 | 110 |
| 111 string16 SimpleAlertInfoBarDelegate::GetMessageText() const { | 111 string16 SimpleAlertInfoBarDelegate::GetMessageText() const { |
| 112 return message_; | 112 return message_; |
| 113 } | 113 } |
| 114 | 114 |
| 115 int SimpleAlertInfoBarDelegate::GetButtons() const { | 115 int SimpleAlertInfoBarDelegate::GetButtons() const { |
| 116 return BUTTON_NONE; | 116 return BUTTON_NONE; |
| 117 } | 117 } |
| OLD | NEW |