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

Side by Side Diff: chrome/browser/ui/android/infobars/app_banner_infobar.h

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 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_APP_BANNER_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_APP_BANNER_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_APP_BANNER_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_APP_BANNER_INFOBAR_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" 10 #include "chrome/browser/ui/android/infobars/confirm_infobar.h"
(...skipping 11 matching lines...) Expand all
22 scoped_ptr<banners::AppBannerInfoBarDelegate> delegate, 22 scoped_ptr<banners::AppBannerInfoBarDelegate> delegate,
23 const base::android::ScopedJavaGlobalRef<jobject>& japp_data); 23 const base::android::ScopedJavaGlobalRef<jobject>& japp_data);
24 24
25 // Constructs an AppBannerInfoBar promoting a web app. 25 // Constructs an AppBannerInfoBar promoting a web app.
26 AppBannerInfoBar( 26 AppBannerInfoBar(
27 scoped_ptr<banners::AppBannerInfoBarDelegate> delegate, 27 scoped_ptr<banners::AppBannerInfoBarDelegate> delegate,
28 const GURL& app_url); 28 const GURL& app_url);
29 29
30 ~AppBannerInfoBar() override; 30 ~AppBannerInfoBar() override;
31 31
32 // Called when the installation state of the app may have changed.
33 // Updates the InfoBar visuals to match the new state and re-enables controls
34 // that may have been disabled.
35 void OnInstallStateChanged(int new_state);
36
32 private: 37 private:
33 // InfoBarAndroid overrides. 38 // InfoBarAndroid overrides.
34 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( 39 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
35 JNIEnv* env) override; 40 JNIEnv* env) override;
36 41
37 // Native app: Details about the app. 42 // Native app: Details about the app.
38 base::android::ScopedJavaGlobalRef<jobject> japp_data_; 43 base::android::ScopedJavaGlobalRef<jobject> japp_data_;
39 44
40 // Web app: URL for the app. 45 // Web app: URL for the app.
41 GURL app_url_; 46 GURL app_url_;
42 47
43 base::android::ScopedJavaGlobalRef<jobject> java_infobar_; 48 base::android::ScopedJavaGlobalRef<jobject> java_infobar_;
44 49
45 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBar); 50 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBar);
46 }; 51 };
47 52
48 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_APP_BANNER_INFOBAR_H_ 53 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_APP_BANNER_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/banners/app_banner_manager.cc ('k') | chrome/browser/ui/android/infobars/app_banner_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698