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

Unified Diff: sky/engine/public/web/WebDeviceEmulationParams.h

Issue 693603005: Remove lots of dead web/ classes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/public/web/WebDatabase.h ('k') | sky/engine/public/web/WebDocument.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/web/WebDeviceEmulationParams.h
diff --git a/sky/engine/public/web/WebDeviceEmulationParams.h b/sky/engine/public/web/WebDeviceEmulationParams.h
deleted file mode 100644
index 606515f89c8e68574c607a697bb748dca2900e46..0000000000000000000000000000000000000000
--- a/sky/engine/public/web/WebDeviceEmulationParams.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 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 WebDeviceEmulationParams_h
-#define WebDeviceEmulationParams_h
-
-#include "public/platform/WebFloatPoint.h"
-#include "public/platform/WebRect.h"
-#include "public/platform/WebSize.h"
-
-namespace blink {
-
-// All sizes are measured in device independent pixels.
-struct WebDeviceEmulationParams {
- // For mobile, screen has the same size as view, which is positioned at (0;0).
- // For desktop, screen size and view position are preserved.
- enum ScreenPosition {
- Desktop,
- Mobile
- };
-
- ScreenPosition screenPosition;
-
- // If zero, the original device scale factor is preserved.
- float deviceScaleFactor;
-
- // Emulated view size. Empty size means no override.
- WebSize viewSize;
-
- // Whether emulated view should be scaled down if necessary to fit into available space.
- bool fitToView;
-
- // Offset of emulated view inside available space, not in fit to view mode.
- WebFloatPoint offset;
-
- // Scale of emulated view inside available space, not in fit to view mode.
- float scale;
-
- WebDeviceEmulationParams()
- : screenPosition(Desktop)
- , deviceScaleFactor(0)
- , fitToView(false)
- , scale(1) { }
-};
-
-} // namespace blink
-
-#endif
« no previous file with comments | « sky/engine/public/web/WebDatabase.h ('k') | sky/engine/public/web/WebDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698