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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorOverlayPage.html

Issue 1450133003: [DevTools] Promote Device Mode v2 to default experiments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 5 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 | « no previous file | third_party/WebKit/Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorOverlayPage.html
diff --git a/third_party/WebKit/Source/core/inspector/InspectorOverlayPage.html b/third_party/WebKit/Source/core/inspector/InspectorOverlayPage.html
index 6349c8cc3a9d99db201bf725a609f3a8c06b8445..da7b8d84159fdefe7e727a93d7e838faf3cc5a03 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorOverlayPage.html
+++ b/third_party/WebKit/Source/core/inspector/InspectorOverlayPage.html
@@ -598,29 +598,6 @@ function _drawGrid(context, rulerAtRight, rulerAtBottom)
context.restore();
}
-function drawViewSize(drawViewSizeWithGrid)
-{
- var drawGridBoolean = drawViewSizeWithGrid === "true";
- var text = viewportSize.width + "px \u00D7 " + viewportSize.height + "px";
- context.save();
- context.font = "20px ";
- switch (platform) {
- case "windows": context.font = "14px Consolas"; break;
- case "mac": context.font = "14px Menlo"; break;
- case "linux": context.font = "14px dejavu sans mono"; break;
- }
-
- var frameWidth = canvasWidth;
- var textWidth = context.measureText(text).width;
- context.fillStyle = gridBackgroundColor;
- context.fillRect(frameWidth - textWidth - 12, drawGridBoolean ? 15 : 0, frameWidth, 25);
- context.fillStyle = darkGridColor;
- context.fillText(text, frameWidth - textWidth - 6, drawGridBoolean ? 33 : 18);
- context.restore();
- if (drawGridBoolean)
- _drawGrid(context);
-}
-
function resetCanvas(canvasElement)
{
canvasElement.width = deviceScaleFactor * viewportSize.width;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InspectorPageAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698