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

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

Issue 1920263003: Rename gfx::Display/Screen to display::Display/Screen in chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/android/compositor/tab_content_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_data_fetcher_android.h" 5 #include "chrome/browser/android/banners/app_banner_data_fetcher_android.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "chrome/browser/android/banners/app_banner_infobar_delegate_android.h" 12 #include "chrome/browser/android/banners/app_banner_infobar_delegate_android.h"
13 #include "chrome/browser/android/shortcut_helper.h" 13 #include "chrome/browser/android/shortcut_helper.h"
14 #include "chrome/browser/banners/app_banner_metrics.h" 14 #include "chrome/browser/banners/app_banner_metrics.h"
15 #include "chrome/browser/infobars/infobar_service.h" 15 #include "chrome/browser/infobars/infobar_service.h"
16 #include "chrome/browser/manifest/manifest_icon_selector.h" 16 #include "chrome/browser/manifest/manifest_icon_selector.h"
17 #include "chrome/browser/ui/android/infobars/app_banner_infobar_android.h" 17 #include "chrome/browser/ui/android/infobars/app_banner_infobar_android.h"
18 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
19 #include "ui/gfx/screen.h"
20 19
21 namespace banners { 20 namespace banners {
22 21
23 AppBannerDataFetcherAndroid::AppBannerDataFetcherAndroid( 22 AppBannerDataFetcherAndroid::AppBannerDataFetcherAndroid(
24 content::WebContents* web_contents, 23 content::WebContents* web_contents,
25 base::WeakPtr<Delegate> weak_delegate, 24 base::WeakPtr<Delegate> weak_delegate,
26 int ideal_icon_size_in_dp, 25 int ideal_icon_size_in_dp,
27 int minimum_icon_size_in_dp, 26 int minimum_icon_size_in_dp,
28 int ideal_splash_image_size_in_dp, 27 int ideal_splash_image_size_in_dp,
29 int minimum_splash_image_size_in_dp, 28 int minimum_splash_image_size_in_dp,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 if (infobar) { 102 if (infobar) {
104 RecordDidShowBanner("AppBanner.NativeApp.Shown"); 103 RecordDidShowBanner("AppBanner.NativeApp.Shown");
105 TrackDisplayEvent(DISPLAY_EVENT_NATIVE_APP_BANNER_CREATED); 104 TrackDisplayEvent(DISPLAY_EVENT_NATIVE_APP_BANNER_CREATED);
106 } 105 }
107 } 106 }
108 InfoBarService::FromWebContents(web_contents) 107 InfoBarService::FromWebContents(web_contents)
109 ->AddInfoBar(base::WrapUnique(infobar)); 108 ->AddInfoBar(base::WrapUnique(infobar));
110 } 109 }
111 110
112 } // namespace banners 111 } // namespace banners
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/compositor/tab_content_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698