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/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/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 bool RenderWidgetHostViewAura::CanFocus() { | 1764 bool RenderWidgetHostViewAura::CanFocus() { |
1765 return popup_type_ == blink::WebPopupTypeNone; | 1765 return popup_type_ == blink::WebPopupTypeNone; |
1766 } | 1766 } |
1767 | 1767 |
1768 void RenderWidgetHostViewAura::OnCaptureLost() { | 1768 void RenderWidgetHostViewAura::OnCaptureLost() { |
1769 host_->LostCapture(); | 1769 host_->LostCapture(); |
1770 if (touch_editing_client_) | 1770 if (touch_editing_client_) |
1771 touch_editing_client_->EndTouchEditing(false); | 1771 touch_editing_client_->EndTouchEditing(false); |
1772 } | 1772 } |
1773 | 1773 |
1774 void RenderWidgetHostViewAura::OnPaint(gfx::Canvas* canvas) { | 1774 void RenderWidgetHostViewAura::OnPaint(const ui::PaintContext& context) { |
1775 NOTREACHED(); | 1775 NOTREACHED(); |
1776 } | 1776 } |
1777 | 1777 |
1778 void RenderWidgetHostViewAura::OnDeviceScaleFactorChanged( | 1778 void RenderWidgetHostViewAura::OnDeviceScaleFactorChanged( |
1779 float device_scale_factor) { | 1779 float device_scale_factor) { |
1780 if (!host_ || !window_->GetRootWindow()) | 1780 if (!host_ || !window_->GetRootWindow()) |
1781 return; | 1781 return; |
1782 | 1782 |
1783 UpdateScreenInfo(window_); | 1783 UpdateScreenInfo(window_); |
1784 | 1784 |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 | 2693 |
2694 //////////////////////////////////////////////////////////////////////////////// | 2694 //////////////////////////////////////////////////////////////////////////////// |
2695 // RenderWidgetHostViewBase, public: | 2695 // RenderWidgetHostViewBase, public: |
2696 | 2696 |
2697 // static | 2697 // static |
2698 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2698 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
2699 GetScreenInfoForWindow(results, NULL); | 2699 GetScreenInfoForWindow(results, NULL); |
2700 } | 2700 } |
2701 | 2701 |
2702 } // namespace content | 2702 } // namespace content |
OLD | NEW |