summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_view_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/renderer_host/render_view_host.h')
-rw-r--r--chrome/browser/renderer_host/render_view_host.h45
1 files changed, 39 insertions, 6 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h
index 76f1f01..efcf56c 100644
--- a/chrome/browser/renderer_host/render_view_host.h
+++ b/chrome/browser/renderer_host/render_view_host.h
@@ -202,6 +202,9 @@ class RenderViewHost : public RenderWidgetHost {
// behalf.
bool PrintPages();
+ // Asks the renderer to render pages for print preview.
+ bool PrintPreview();
+
// Notify renderer of success/failure of print job.
void PrintingDone(int document_cookie, bool success);
@@ -216,9 +219,12 @@ class RenderViewHost : public RenderWidgetHost {
// Cancel a pending find operation.
void StopFinding(FindBarController::SelectionAction selection_action);
- // Change the zoom level of a page.
+ // Increment, decrement, or reset the zoom level of a page.
void Zoom(PageZoom::Function function);
+ // Change the zoom level of a page to a specific value.
+ void SetZoomLevel(double zoom_level);
+
// Change the encoding of the page.
void SetPageEncoding(const std::string& encoding);
@@ -490,6 +496,23 @@ class RenderViewHost : public RenderWidgetHost {
// in render_messages.h.
void EnablePreferredSizeChangedMode(int flags);
+#if defined(OS_MACOSX)
+ // Select popup menu related methods (for external popup menus).
+ void DidSelectPopupMenuItem(int selected_index);
+ void DidCancelPopupMenu();
+#endif
+
+ // SearchBox notifications.
+ void SearchBoxChange(const string16& value,
+ bool verbatim,
+ int selection_start,
+ int selection_end);
+ void SearchBoxSubmit(const string16& value,
+ bool verbatim);
+ void SearchBoxCancel();
+ void SearchBoxResize(const gfx::Rect& search_box_bounds);
+ void DetermineIfPageSupportsInstant(const string16& value);
+
#if defined(UNIT_TEST)
// These functions shouldn't be necessary outside of testing.
@@ -512,7 +535,7 @@ class RenderViewHost : public RenderWidgetHost {
virtual void OnUserGesture();
virtual void NotifyRendererUnresponsive();
virtual void NotifyRendererResponsive();
- virtual void OnMsgFocusedNodeChanged();
+ virtual void OnMsgFocusedNodeChanged(bool is_editable_node);
virtual void OnMsgFocus();
virtual void OnMsgBlur();
@@ -582,7 +605,8 @@ class RenderViewHost : public RenderWidgetHost {
void OnMsgForwardMessageToExternalHost(const std::string& message,
const std::string& origin,
const std::string& target);
- void OnMsgDocumentLoadedInFrame();
+ void OnMsgDocumentLoadedInFrame(long long frame_id);
+ void OnMsgDidFinishLoad(long long frame_id);
void OnMsgGoToEntryAtOffset(int offset);
void OnMsgSetTooltipText(const std::wstring& tooltip_text,
WebKit::WebTextDirection text_direction_hint);
@@ -631,8 +655,6 @@ class RenderViewHost : public RenderWidgetHost {
void OnRequestUndockDevToolsWindow();
void OnDevToolsRuntimePropertyChanged(const std::string& name,
const std::string& value);
-
- void OnUserMetricsRecordAction(const std::string& action);
void OnMissingPluginStatus(int status);
void OnNonSandboxedPluginBlocked(const std::string& plugin,
const string16& name);
@@ -694,12 +716,23 @@ class RenderViewHost : public RenderWidgetHost {
void OnUpdateZoomLimits(int minimum_percent,
int maximum_percent,
bool remember);
- void OnSetSuggestResult(int32 page_id, const std::string& result);
+ void OnSetSuggestions(int32 page_id,
+ const std::vector<std::string>& suggestions);
+ void OnInstantSupportDetermined(int32 page_id, bool result);
void OnDetectedPhishingSite(const GURL& phishing_url,
double phishing_score,
const SkBitmap& thumbnail);
void OnScriptEvalResponse(int id, bool result);
void OnUpdateContentRestrictions(int restrictions);
+#if defined(OS_MACOSX) || defined(OS_WIN)
+ void OnPageReadyForPreview(const ViewHostMsg_DidPrintPage_Params& params);
+#else
+ void OnPagesReadyForPreview(int fd_in_browser);
+#endif
+
+#if defined(OS_MACOSX)
+ void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params);
+#endif
private:
friend class TestRenderViewHost;