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

Side by Side Diff: content/port/browser/render_widget_host_view_port.h

Issue 15682010: Support plumbing LatencyInfo through the old software path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
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 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // drag-resizing can starve painting; this function thus provides the view its 124 // drag-resizing can starve painting; this function thus provides the view its
125 // main chance to ensure it stays painted and not just invalidated. On the 125 // main chance to ensure it stays painted and not just invalidated. On the
126 // other hand, if this always blindly paints, then if we're already in the 126 // other hand, if this always blindly paints, then if we're already in the
127 // midst of a paint on the callstack, we can double-paint unnecessarily. 127 // midst of a paint on the callstack, we can double-paint unnecessarily.
128 // (Worse, we might recursively call RenderWidgetHost::GetBackingStore().) 128 // (Worse, we might recursively call RenderWidgetHost::GetBackingStore().)
129 // Thus implementers should generally paint as much of |rect| as possible 129 // Thus implementers should generally paint as much of |rect| as possible
130 // synchronously with as little overpainting as possible. 130 // synchronously with as little overpainting as possible.
131 virtual void DidUpdateBackingStore( 131 virtual void DidUpdateBackingStore(
132 const gfx::Rect& scroll_rect, 132 const gfx::Rect& scroll_rect,
133 const gfx::Vector2d& scroll_delta, 133 const gfx::Vector2d& scroll_delta,
134 const std::vector<gfx::Rect>& copy_rects) = 0; 134 const std::vector<gfx::Rect>& copy_rects,
135 const ui::LatencyInfo& latency_info) = 0;
135 136
136 // Notifies the View that the renderer has ceased to exist. 137 // Notifies the View that the renderer has ceased to exist.
137 virtual void RenderViewGone(base::TerminationStatus status, 138 virtual void RenderViewGone(base::TerminationStatus status,
138 int error_code) = 0; 139 int error_code) = 0;
139 140
140 // Tells the View to destroy itself. 141 // Tells the View to destroy itself.
141 virtual void Destroy() = 0; 142 virtual void Destroy() = 0;
142 143
143 // Tells the View that the tooltip text for the current mouse position over 144 // Tells the View that the tooltip text for the current mouse position over
144 // the page has changed. 145 // the page has changed.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 318
318 #if defined(OS_WIN) && defined(USE_AURA) 319 #if defined(OS_WIN) && defined(USE_AURA)
319 virtual void SetParentNativeViewAccessible( 320 virtual void SetParentNativeViewAccessible(
320 gfx::NativeViewAccessible accessible_parent) = 0; 321 gfx::NativeViewAccessible accessible_parent) = 0;
321 #endif 322 #endif
322 }; 323 };
323 324
324 } // namespace content 325 } // namespace content
325 326
326 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 327 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698