Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(926)

Side by Side Diff: chrome/browser/android/banners/app_banner_infobar_delegate.cc

Issue 871103004: Allow installing apps via the AppBannerInfoBar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pointers
Patch Set: Fix compile Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/android/banners/app_banner_infobar_delegate.h ('k') | chrome/browser/android/banners/app_banner_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698