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

Side by Side Diff: chrome/browser/android/banners/app_banner_manager_android.h

Issue 2915913002: [WebAPKs] Display same text for menu & engagement banner (Closed)
Patch Set: Merge branch 'master' into same_infobar_title Created 3 years, 6 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 #ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/strings/string16.h"
13 #include "chrome/browser/banners/app_banner_manager.h" 14 #include "chrome/browser/banners/app_banner_manager.h"
14 #include "content/public/browser/web_contents_user_data.h" 15 #include "content/public/browser/web_contents_user_data.h"
15 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
16 17
17 namespace banners { 18 namespace banners {
18 19
19 // Extends the AppBannerManager to support native Android apps. This class owns 20 // Extends the AppBannerManager to support native Android apps. This class owns
20 // a Java-side AppBannerManager which interfaces with the Java runtime to fetch 21 // a Java-side AppBannerManager which interfaces with the Java runtime to fetch
21 // native app data and install them when requested. 22 // native app data and install them when requested.
22 // 23 //
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 // The Java-side AppBannerManager. 123 // The Java-side AppBannerManager.
123 base::android::ScopedJavaGlobalRef<jobject> java_banner_manager_; 124 base::android::ScopedJavaGlobalRef<jobject> java_banner_manager_;
124 125
125 // Java-side object containing data about a native app. 126 // Java-side object containing data about a native app.
126 base::android::ScopedJavaGlobalRef<jobject> native_app_data_; 127 base::android::ScopedJavaGlobalRef<jobject> native_app_data_;
127 128
128 // App package name for a native app banner. 129 // App package name for a native app banner.
129 std::string native_app_package_; 130 std::string native_app_package_;
130 131
132 // Title to display in the banner for native app.
133 base::string16 native_app_title_;
134
131 // Whether WebAPKs can be installed. 135 // Whether WebAPKs can be installed.
132 bool can_install_webapk_; 136 bool can_install_webapk_;
133 137
134 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); 138 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid);
135 }; 139 };
136 140
137 } // namespace banners 141 } // namespace banners
138 142
139 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ 143 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698