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

Side by Side Diff: chrome/browser/android/webapps/add_to_homescreen_manager.h

Issue 2670963002: Android: Fire the appinstalled event on WebAPK installation. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h" 11 #include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h"
12 12
13 namespace banners {
14 class AppBannerManagerAndroid;
15 }
16
13 namespace content { 17 namespace content {
14 class WebContents; 18 class WebContents;
15 } 19 }
16 20
17 class GURL; 21 class GURL;
18 class SkBitmap; 22 class SkBitmap;
19 struct ShortcutInfo; 23 struct ShortcutInfo;
20 24
21 // AddToHomescreenManager is the C++ counterpart of 25 // AddToHomescreenManager is the C++ counterpart of
22 // org.chromium.chrome.browser's AddToHomescreenManager in Java. The object 26 // org.chromium.chrome.browser's AddToHomescreenManager in Java. The object
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Points to the Java object. 75 // Points to the Java object.
72 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 76 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
73 77
74 // Whether the user has requested that a shortcut be added while a fetch was 78 // Whether the user has requested that a shortcut be added while a fetch was
75 // in progress. 79 // in progress.
76 bool add_shortcut_pending_; 80 bool add_shortcut_pending_;
77 81
78 // Whether the site is WebAPK-compatible. 82 // Whether the site is WebAPK-compatible.
79 bool is_webapk_compatible_; 83 bool is_webapk_compatible_;
80 84
85 banners::AppBannerManagerAndroid* app_banner_manager_;
dominickn 2017/04/24 00:56:30 Nit: Add a comment: // Dispatches the oninstall e
Matt Giuca 2017/04/24 01:42:14 Gone.
86
81 // Fetches data required to add a shortcut. 87 // Fetches data required to add a shortcut.
82 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_; 88 scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_;
83 89
84 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenManager); 90 DISALLOW_COPY_AND_ASSIGN(AddToHomescreenManager);
85 }; 91 };
86 92
87 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_ 93 #endif // CHROME_BROWSER_ANDROID_WEBAPPS_ADD_TO_HOMESCREEN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698