Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 AppBannerManagerDesktop::AppBannerManagerDesktop( | |
|
benwells
2015/06/03 06:13:55
Nit: keep functions here in same order as in .h
dominickn (DO NOT USE)
2015/06/03 07:10:36
Done.
| |
| 21 content::WebContents* web_contents) | |
| 22 : AppBannerManager(web_contents, kMinimumIconSize) { | |
| 23 } | |
| 24 | |
| 25 AppBannerDataFetcher* AppBannerManagerDesktop::CreateAppBannerDataFetcher( | |
| 26 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate, | |
| 27 const int ideal_icon_size) { | |
| 28 return new AppBannerDataFetcherDesktop(web_contents(), weak_delegate, | |
| 29 ideal_icon_size); | |
| 30 } | |
| 31 | |
| 32 } // namespace banners | |
| OLD | NEW |