| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/android/banners/app_banner_infobar_delegate.h" | 5 #include "chrome/browser/android/banners/app_banner_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/ui/android/infobars/app_banner_infobar.h" | 10 #include "chrome/browser/ui/android/infobars/app_banner_infobar.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void AppBannerInfoBarDelegate::InfoBarDismissed() { | 64 void AppBannerInfoBarDelegate::InfoBarDismissed() { |
| 65 DCHECK(delegate_); | 65 DCHECK(delegate_); |
| 66 delegate_->Block(); | 66 delegate_->Block(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool AppBannerInfoBarDelegate::Accept() { | 69 bool AppBannerInfoBarDelegate::Accept() { |
| 70 DCHECK(delegate_); | 70 DCHECK(delegate_); |
| 71 return delegate_->OnButtonClicked(); | 71 return delegate_->OnButtonClicked(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 bool AppBannerInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { |
| 75 DCHECK(delegate_); |
| 76 return delegate_->OnLinkClicked(); |
| 77 } |
| 78 |
| 74 } // namespace banners | 79 } // namespace banners |
| OLD | NEW |