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

Unified Diff: chrome/renderer/render_view.h

Issue 6246007: Generate thumbnails in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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: chrome/renderer/render_view.h
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index dfbcf7d66629811d44764bd959fd42d628b8dd5a..995b4f111e5c49249aa5dd22bdaa364aaad91542 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -82,7 +82,6 @@ class WebPluginDelegatePepper;
class WebPluginDelegateProxy;
struct ContextMenuMediaParams;
struct PP_Flash_NetAddress;
-struct ThumbnailScore;
struct ViewMsg_ClosePage_Params;
struct ViewMsg_Navigate_Params;
struct WebDropData;
@@ -750,7 +749,7 @@ class RenderView : public RenderWidget,
void OpenURL(const GURL& url, const GURL& referrer,
WebKit::WebNavigationPolicy policy);
- // Captures the thumbnail and text contents for indexing for the given load
+ // Captures the text contents for indexing for the given load
// ID. If the view's load ID is different than the parameter, this call is
// a NOP. Typically called on a timer, so the load ID may have changed in the
// meantime.
@@ -760,12 +759,6 @@ class RenderView : public RenderWidget,
// maximum amount kMaxIndexChars will be placed into the given buffer.
void CaptureText(WebKit::WebFrame* frame, string16* contents);
- // Creates a thumbnail of |frame|'s contents resized to (|w|, |h|)
- // and puts that in |thumbnail|. Thumbnail metadata goes in |score|.
- bool CaptureThumbnail(WebKit::WebView* view, int w, int h,
- SkBitmap* thumbnail,
- ThumbnailScore* score);
-
// 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);
@@ -819,7 +812,6 @@ class RenderView : public RenderWidget,
void OnCopyToFindPboard();
#endif
void OnCut();
- void OnCaptureThumbnail();
void OnCaptureSnapshot();
void OnCSSInsertRequest(const std::wstring& frame_xpath,
const std::string& css,

Powered by Google App Engine
This is Rietveld 408576698