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

Unified Diff: trunk/src/content/browser/renderer_host/render_widget_host_impl.h

Issue 343033002: Revert 278472 "DevTools: Fix for Page.captureScreenshot" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/content/browser/renderer_host/render_widget_host_impl.h
===================================================================
--- trunk/src/content/browser/renderer_host/render_widget_host_impl.h (revision 278497)
+++ trunk/src/content/browser/renderer_host/render_widget_host_impl.h (working copy)
@@ -192,11 +192,6 @@
virtual void AccessibilityHitTest(const gfx::Point& point) OVERRIDE;
virtual void AccessibilityFatalError() OVERRIDE;
- // Forces redraw in the renderer and when the update reaches the browser
- // grabs snapshot from the compositor. Returns PNG-encoded snapshot.
- void GetSnapshotFromBrowser(
- const base::Callback<void(const unsigned char*,size_t)> callback);
-
const NativeWebKeyboardEvent* GetLastKeyboardEvent() const;
// Notification that the screen info has changed.
@@ -698,18 +693,8 @@
// which may get in recursive loops).
void DelayedAutoResized();
- void WindowOldSnapshotReachedScreen(int snapshot_id);
-
void WindowSnapshotReachedScreen(int snapshot_id);
- void OnSnapshotDataReceived(int snapshot_id,
- const unsigned char* png,
- size_t size);
-
- void OnSnapshotDataReceivedAsync(
- int snapshot_id,
- scoped_refptr<base::RefCountedBytes> png_data);
-
// Send a message to the renderer process to change the accessibility mode.
void SetAccessibilityMode(AccessibilityMode AccessibilityMode);
@@ -877,11 +862,6 @@
int64 last_input_number_;
- int next_browser_snapshot_id_;
- typedef std::map<int,
- base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap;
- PendingSnapshotMap pending_browser_snapshots_;
-
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
};

Powered by Google App Engine
This is Rietveld 408576698