| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |