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

Side by Side Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 10391165: Notification for device scale factor change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo_main fix 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 | « content/browser/web_contents/web_contents_view_aura.h ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »
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/web_contents/web_contents_view_aura.h" 5 #include "content/browser/web_contents/web_contents_view_aura.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "content/browser/renderer_host/render_view_host_factory.h" 8 #include "content/browser/renderer_host/render_view_host_factory.h"
9 #include "content/browser/web_contents/interstitial_page_impl.h" 9 #include "content/browser/web_contents/interstitial_page_impl.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 bool WebContentsViewAura::CanFocus() { 552 bool WebContentsViewAura::CanFocus() {
553 return true; 553 return true;
554 } 554 }
555 555
556 void WebContentsViewAura::OnCaptureLost() { 556 void WebContentsViewAura::OnCaptureLost() {
557 } 557 }
558 558
559 void WebContentsViewAura::OnPaint(gfx::Canvas* canvas) { 559 void WebContentsViewAura::OnPaint(gfx::Canvas* canvas) {
560 } 560 }
561 561
562 void WebContentsViewAura::OnDeviceScaleFactorChanged(
563 float device_scale_factor) {
564 }
565
562 void WebContentsViewAura::OnWindowDestroying() { 566 void WebContentsViewAura::OnWindowDestroying() {
563 } 567 }
564 568
565 void WebContentsViewAura::OnWindowDestroyed() { 569 void WebContentsViewAura::OnWindowDestroyed() {
566 } 570 }
567 571
568 void WebContentsViewAura::OnWindowVisibilityChanged(bool visible) { 572 void WebContentsViewAura::OnWindowVisibilityChanged(bool visible) {
569 if (visible) 573 if (visible)
570 web_contents_->ShowContents(); 574 web_contents_->ShowContents();
571 else 575 else
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 if (current_rvh_for_drag_ != web_contents_->GetRenderViewHost()) 630 if (current_rvh_for_drag_ != web_contents_->GetRenderViewHost())
627 OnDragEntered(event); 631 OnDragEntered(event);
628 632
629 web_contents_->GetRenderViewHost()->DragTargetDrop( 633 web_contents_->GetRenderViewHost()->DragTargetDrop(
630 event.location(), 634 event.location(),
631 GetNativeView()->GetRootWindow()->last_mouse_location()); 635 GetNativeView()->GetRootWindow()->last_mouse_location());
632 if (drag_dest_delegate_) 636 if (drag_dest_delegate_)
633 drag_dest_delegate_->OnDrop(); 637 drag_dest_delegate_->OnDrop();
634 return current_drag_op_; 638 return current_drag_op_;
635 } 639 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.h ('k') | ui/aura/demo/demo_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698