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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minimizes render_view_impl changes and introduces a defaultDeviceScaleFactor argument Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/backing_store_skia.h" 8 #include "content/browser/renderer_host/backing_store_skia.h"
9 #include "content/browser/renderer_host/render_widget_host.h" 9 #include "content/browser/renderer_host/render_widget_host.h"
10 #include "content/browser/renderer_host/web_input_event_aura.h" 10 #include "content/browser/renderer_host/web_input_event_aura.h"
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 1086
1087 // static 1087 // static
1088 void RenderWidgetHostView::GetDefaultScreenInfo( 1088 void RenderWidgetHostView::GetDefaultScreenInfo(
1089 WebKit::WebScreenInfo* results) { 1089 WebKit::WebScreenInfo* results) {
1090 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); 1090 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize();
1091 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); 1091 results->rect = WebKit::WebRect(0, 0, size.width(), size.height());
1092 results->availableRect = results->rect; 1092 results->availableRect = results->rect;
1093 // TODO(derat): Don't hardcode this? 1093 // TODO(derat): Don't hardcode this?
1094 results->depth = 24; 1094 results->depth = 24;
1095 results->depthPerComponent = 8; 1095 results->depthPerComponent = 8;
1096 results->verticalDPI = 96;
1097 results->horizontalDPI = 96;
1096 } 1098 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698