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

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

Issue 1057873004: Pass a ui::PaintContext from ui::Layer to layer delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer-paintcontext: mac Created 5 years, 8 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
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/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
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | content/browser/web_contents/aura/gesture_nav_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698