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

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

Issue 1161233005: Implement app banner info bars on desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stop-icon-overgeneration
Patch Set: Moving feature enabling to existing #ifs Created 5 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_DATA_FETCHER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "chrome/browser/banners/app_banner_data_fetcher.h" 9 #include "chrome/browser/banners/app_banner_data_fetcher.h"
10 10
(...skipping 13 matching lines...) Expand all
24 bool ContinueFetching(const base::string16& app_title, 24 bool ContinueFetching(const base::string16& app_title,
25 const std::string& app_package, 25 const std::string& app_package,
26 base::android::ScopedJavaLocalRef<jobject> app_data, 26 base::android::ScopedJavaLocalRef<jobject> app_data,
27 const GURL& image_url); 27 const GURL& image_url);
28 28
29 protected: 29 protected:
30 ~AppBannerDataFetcherAndroid() override; 30 ~AppBannerDataFetcherAndroid() override;
31 31
32 std::string GetBannerType() override; 32 std::string GetBannerType() override;
33 std::string GetAppIdentifier() override; 33 std::string GetAppIdentifier() override;
34 infobars::InfoBar* CreateBanner(const SkBitmap* icon, 34 void ShowBanner(const SkBitmap* icon,
35 const base::string16& title) override; 35 const base::string16& title) override;
36 36
37 private: 37 private:
38 base::android::ScopedJavaGlobalRef<jobject> native_app_data_; 38 base::android::ScopedJavaGlobalRef<jobject> native_app_data_;
39 std::string native_app_package_; 39 std::string native_app_package_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(AppBannerDataFetcherAndroid); 41 DISALLOW_COPY_AND_ASSIGN(AppBannerDataFetcherAndroid);
42 }; 42 };
43 43
44 } // namespace banners 44 } // namespace banners
45 45
46 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_ 46 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_DATA_FETCHER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/android/banners/app_banner_data_fetcher_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698