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

Unified Diff: content/public/browser/render_widget_host_view.h

Issue 261383002: Remove content/port directory and move the 3 remaining interfaces to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/render_widget_host_view.h
===================================================================
--- content/public/browser/render_widget_host_view.h (revision 268318)
+++ content/public/browser/render_widget_host_view.h (working copy)
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "content/common/content_export.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -23,6 +24,7 @@
namespace content {
class RenderWidgetHost;
+class RenderWidgetHostViewFrameSubscriber;
// RenderWidgetHostView is an interface implemented by an object that acts as
// the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its
@@ -108,6 +110,16 @@
// visible viewport.
virtual void SetInsets(const gfx::Insets& insets) = 0;
+ // Begin subscribing for presentation events and captured frames.
+ // |subscriber| is now owned by this object, it will be called only on the
+ // UI thread.
+ virtual void BeginFrameSubscription(
+ scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0;
+
+ // End subscribing for frame presentation events. FrameSubscriber will be
+ // deleted after this call.
+ virtual void EndFrameSubscription() = 0;
+
#if defined(OS_MACOSX)
// Set the view's active state (i.e., tint state of controls).
virtual void SetActive(bool active) = 0;
« no previous file with comments | « content/public/browser/location_provider.h ('k') | content/public/browser/render_widget_host_view_frame_subscriber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698