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

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

Issue 10332077: Zoom the web contents 2x such that they are blurry in High DPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer patch Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/compositor/layer.cc » ('j') | ui/compositor/layer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 251 }
252 252
253 void RenderWidgetHostViewAura::InitAsFullscreen( 253 void RenderWidgetHostViewAura::InitAsFullscreen(
254 RenderWidgetHostView* reference_host_view) { 254 RenderWidgetHostView* reference_host_view) {
255 is_fullscreen_ = true; 255 is_fullscreen_ = true;
256 window_->SetType(aura::client::WINDOW_TYPE_NORMAL); 256 window_->SetType(aura::client::WINDOW_TYPE_NORMAL);
257 window_->Init(ui::LAYER_TEXTURED); 257 window_->Init(ui::LAYER_TEXTURED);
258 window_->SetName("RenderWidgetHostViewAura"); 258 window_->SetName("RenderWidgetHostViewAura");
259 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN); 259 window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN);
260 window_->SetParent(NULL); 260 window_->SetParent(NULL);
261 // Don't scale the canvas on high density screen because
262 // the renderer takes care of it.
263 window_->layer()->set_scale_canvas(false);
oshima 2012/05/09 19:57:21 this is necessary
264 Show(); 261 Show();
265 Focus(); 262 Focus();
266 } 263 }
267 264
268 RenderWidgetHost* RenderWidgetHostViewAura::GetRenderWidgetHost() const { 265 RenderWidgetHost* RenderWidgetHostViewAura::GetRenderWidgetHost() const {
269 return host_; 266 return host_;
270 } 267 }
271 268
272 void RenderWidgetHostViewAura::DidBecomeSelected() { 269 void RenderWidgetHostViewAura::DidBecomeSelected() {
273 host_->WasRestored(); 270 host_->WasRestored();
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget( 1274 RenderWidgetHostView* RenderWidgetHostView::CreateViewForWidget(
1278 RenderWidgetHost* widget) { 1275 RenderWidgetHost* widget) {
1279 return new RenderWidgetHostViewAura(widget); 1276 return new RenderWidgetHostViewAura(widget);
1280 } 1277 }
1281 1278
1282 // static 1279 // static
1283 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo( 1280 void content::RenderWidgetHostViewPort::GetDefaultScreenInfo(
1284 WebKit::WebScreenInfo* results) { 1281 WebKit::WebScreenInfo* results) {
1285 GetScreenInfoForWindow(results, NULL); 1282 GetScreenInfoForWindow(results, NULL);
1286 } 1283 }
OLDNEW
« no previous file with comments | « no previous file | ui/compositor/layer.cc » ('j') | ui/compositor/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698