| 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/ui/views/infobars/confirm_infobar.h" | 5 #include "chrome/browser/ui/views/infobars/confirm_infobar.h" |
| 6 | 6 |
| 7 #include "chrome/browser/tab_contents/infobar_delegate.h" | 7 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| 8 #include "chrome/browser/ui/views/event_utils.h" | 8 #include "chrome/browser/ui/views/event_utils.h" |
| 9 #include "views/controls/button/text_button.h" | 9 #include "views/controls/button/text_button.h" |
| 10 #include "views/controls/label.h" | 10 #include "views/controls/label.h" |
| 11 | 11 |
| 12 // ConfirmInfoBarDelegate ----------------------------------------------------- | 12 // ConfirmInfoBarDelegate ----------------------------------------------------- |
| 13 | 13 |
| 14 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { | 14 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { |
| 15 return new ConfirmInfoBar(this); | 15 return new ConfirmInfoBar(this); |
| 16 } | 16 } |
| 17 | 17 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 DCHECK(link_ != NULL); | 122 DCHECK(link_ != NULL); |
| 123 DCHECK_EQ(link_, source); | 123 DCHECK_EQ(link_, source); |
| 124 if (GetDelegate()->LinkClicked( | 124 if (GetDelegate()->LinkClicked( |
| 125 event_utils::DispositionFromEventFlags(event_flags))) | 125 event_utils::DispositionFromEventFlags(event_flags))) |
| 126 RemoveInfoBar(); | 126 RemoveInfoBar(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 ConfirmInfoBarDelegate* ConfirmInfoBar::GetDelegate() { | 129 ConfirmInfoBarDelegate* ConfirmInfoBar::GetDelegate() { |
| 130 return delegate()->AsConfirmInfoBarDelegate(); | 130 return delegate()->AsConfirmInfoBarDelegate(); |
| 131 } | 131 } |
| OLD | NEW |