| 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 "chrome/browser/tab_contents/navigation_entry.h" |
| 10 #include "chrome/browser/tab_contents/navigation_controller.h" | 10 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/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 string16 LinkInfoBarDelegate::GetMessageTextWithOffset( | |
| 18 size_t* link_offset) const { | |
| 19 *link_offset = string16::npos; | |
| 20 return string16(); | |
| 21 } | |
| 22 | |
| 23 bool LinkInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { | 17 bool LinkInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { |
| 24 return true; | 18 return true; |
| 25 } | 19 } |
| 26 | 20 |
| 27 LinkInfoBarDelegate::LinkInfoBarDelegate(TabContents* contents) | 21 LinkInfoBarDelegate::LinkInfoBarDelegate(TabContents* contents) |
| 28 : InfoBarDelegate(contents) { | 22 : InfoBarDelegate(contents) { |
| 29 } | 23 } |
| 30 | 24 |
| 31 LinkInfoBarDelegate::~LinkInfoBarDelegate() { | 25 LinkInfoBarDelegate::~LinkInfoBarDelegate() { |
| 32 } | 26 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 return icon_; | 108 return icon_; |
| 115 } | 109 } |
| 116 | 110 |
| 117 string16 SimpleAlertInfoBarDelegate::GetMessageText() const { | 111 string16 SimpleAlertInfoBarDelegate::GetMessageText() const { |
| 118 return message_; | 112 return message_; |
| 119 } | 113 } |
| 120 | 114 |
| 121 int SimpleAlertInfoBarDelegate::GetButtons() const { | 115 int SimpleAlertInfoBarDelegate::GetButtons() const { |
| 122 return BUTTON_NONE; | 116 return BUTTON_NONE; |
| 123 } | 117 } |
| OLD | NEW |