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

Unified Diff: chrome/browser/banners/app_banner_manager_emulation.h

Issue 1950133009: DevTools: account for the display scale factor while validating manifest under emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment addressed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_manager_emulation.cc » ('j') | chrome/browser/ui/browser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/banners/app_banner_manager_emulation.h
diff --git a/chrome/browser/banners/app_banner_manager_emulation.h b/chrome/browser/banners/app_banner_manager_emulation.h
new file mode 100644
index 0000000000000000000000000000000000000000..da272f02abc8edd270110cfef1680b8aecd34e71
--- /dev/null
+++ b/chrome/browser/banners/app_banner_manager_emulation.h
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_EMULATION_H_
+#define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_EMULATION_H_
+
+#include "chrome/browser/banners/app_banner_manager.h"
+
+#include "base/macros.h"
+#include "content/public/browser/web_contents_user_data.h"
+
+namespace banners {
+
+class AppBannerManagerEmulation
+ : public AppBannerManager,
+ public content::WebContentsUserData<AppBannerManagerEmulation> {
+
+ protected:
+ AppBannerDataFetcher* CreateAppBannerDataFetcher(
+ base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate,
+ bool is_debug_mode) override;
+
+ private:
+ explicit AppBannerManagerEmulation(content::WebContents* web_contents);
+ friend class content::WebContentsUserData<AppBannerManagerEmulation>;
+
+ DISALLOW_COPY_AND_ASSIGN(AppBannerManagerEmulation);
+};
+
+} // namespace banners
+
+#endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_EMULATION_H_
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_manager_emulation.cc » ('j') | chrome/browser/ui/browser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698