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

Unified Diff: chrome/renderer/chrome_render_view_observer.h

Issue 12770014: Restore SnapshotTabHelper temporarily (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_view_observer.h
diff --git a/chrome/renderer/chrome_render_view_observer.h b/chrome/renderer/chrome_render_view_observer.h
index d5297c8ffaadf6a00ec47d52acac769cd7345a08..80247ff53f51bf8afbd4e3daec5cf0f44d136b7f 100644
--- a/chrome/renderer/chrome_render_view_observer.h
+++ b/chrome/renderer/chrome_render_view_observer.h
@@ -126,6 +126,7 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
const string16& jscript,
int id,
bool notify_result);
+ void OnCaptureSnapshot();
void OnHandleMessageFromExternalHost(const std::string& message,
const std::string& origin,
const std::string& target);
@@ -149,6 +150,10 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
// maximum amount kMaxIndexChars will be placed into the given buffer.
void CaptureText(WebKit::WebFrame* frame, string16* contents);
+ // Capture a snapshot of a view. This is used to allow an extension
+ // to get a snapshot of a tab using chrome.tabs.captureVisibleTab().
+ bool CaptureSnapshot(WebKit::WebView* view, SkBitmap* snapshot);
+
ExternalHostBindings* GetExternalHostBindings();
// Determines if a host is in the strict security host set.
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698