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

Side by Side Diff: chrome/browser/banners/app_banner_manager_desktop.cc

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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/banners/app_banner_manager_desktop.h"
6
7 #include "chrome/browser/banners/app_banner_data_fetcher_desktop.h"
8 #include "extensions/common/constants.h"
9
10 namespace {
11 // TODO(dominickn) Enforce the set of icons which will guarantee the best
12 // user experience.
13 int kMinimumIconSize = extension_misc::EXTENSION_ICON_LARGE;
14 } // anonymous namespace
15
16 DEFINE_WEB_CONTENTS_USER_DATA_KEY(banners::AppBannerManagerDesktop);
17
18 namespace banners {
19
20 AppBannerDataFetcher* AppBannerManagerDesktop::CreateAppBannerDataFetcher(
21 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate,
22 const int ideal_icon_size) {
23 return new AppBannerDataFetcherDesktop(web_contents(), weak_delegate,
24 ideal_icon_size);
25 }
26
27 AppBannerManagerDesktop::AppBannerManagerDesktop(
28 content::WebContents* web_contents)
29 : AppBannerManager(web_contents, kMinimumIconSize) {
30 }
31
32 } // namespace banners
OLDNEW
« no previous file with comments | « chrome/browser/banners/app_banner_manager_desktop.h ('k') | chrome/browser/banners/app_banner_settings_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698