Index: chrome/browser/renderer_host/render_view_host.h |
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h |
index 5278eff06799502e4d201ccd232a80f5253bb980..4755dd1a0b1ee593ea7542745989078d74b1e53b 100644 |
--- a/chrome/browser/renderer_host/render_view_host.h |
+++ b/chrome/browser/renderer_host/render_view_host.h |
@@ -38,7 +38,6 @@ class ViewMsg_Navigate; |
struct ContentSettings; |
struct ContextMenuParams; |
struct MediaPlayerAction; |
-struct ThumbnailScore; |
struct ViewHostMsg_AccessibilityNotification_Params; |
struct ViewHostMsg_DidPreviewDocument_Params; |
struct ViewHostMsg_DidPrintPage_Params; |
@@ -306,9 +305,6 @@ class RenderViewHost : public RenderWidgetHost { |
// the data is available. |
void GetApplicationInfo(int32 page_id); |
- // Captures a thumbnail representation of the page. |
- void CaptureThumbnail(); |
- |
// Captures a snapshot of the page. |
void CaptureSnapshot(); |
@@ -542,6 +538,8 @@ class RenderViewHost : public RenderWidgetHost { |
int renderer_id, |
GURL* url); |
+ const gfx::Size& last_scroll_offset() const { return last_scroll_offset_; } |
+ |
protected: |
// RenderWidgetHost protected overrides. |
virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
@@ -570,9 +568,6 @@ class RenderViewHost : public RenderWidgetHost { |
void OnMsgUpdateTitle(int32 page_id, const std::wstring& title); |
void OnMsgUpdateEncoding(const std::string& encoding); |
void OnMsgUpdateTargetURL(int32 page_id, const GURL& url); |
- void OnMsgThumbnail(const GURL& url, |
- const ThumbnailScore& score, |
- const SkBitmap& bitmap); |
void OnMsgScreenshot(const SkBitmap& bitmap); |
void OnMsgClose(); |
void OnMsgRequestMove(const gfx::Rect& pos); |
@@ -703,6 +698,7 @@ class RenderViewHost : public RenderWidgetHost { |
void OnUpdateContentRestrictions(int restrictions); |
void OnPagesReadyForPreview( |
const ViewHostMsg_DidPreviewDocument_Params& params); |
+ void OnUpdateScrollOffset(const gfx::Size& size); |
#if defined(OS_MACOSX) |
void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
@@ -791,6 +787,9 @@ class RenderViewHost : public RenderWidgetHost { |
// The termination status of the last render view that terminated. |
base::TerminationStatus render_view_termination_status_; |
+ // ... |
+ gfx::Size last_scroll_offset_; |
+ |
DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
}; |