Index: content/browser/web_contents/web_contents_impl.h |
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h |
index 75eb253259897225c60c7184b24abd0e17336b15..30da716411f03352c7626ca6e874755cc109d6d8 100644 |
--- a/content/browser/web_contents/web_contents_impl.h |
+++ b/content/browser/web_contents/web_contents_impl.h |
@@ -224,6 +224,21 @@ class CONTENT_EXPORT WebContentsImpl |
const ui::AXTreeUpdate&)>; |
void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); |
+ // Set a temporary zoom level for the frames associated with this WebContents. |
+ // If |is_temporary| is true, we are setting a new temporary zoom level, |
+ // otherwise we are clearing a previously set temporary zoom level. |
+ void SetTemporaryZoomLevel(double level, bool is_temporary); |
+ |
+ // Sets the zoom level for frames associated with this WebContents. |
+ void UpdateZoom(double level); |
+ |
+ // Sets the zoom level for frames associated with this WebContents if it |
+ // matches |host| and (if non-empty) |scheme|. Matching is done on the |
+ // last committed entry. |
+ void UpdateZoomIfNecessary(const std::string& scheme, |
+ const std::string& host, |
+ double level); |
+ |
// WebContents ------------------------------------------------------ |
WebContentsDelegate* GetDelegate() override; |
void SetDelegate(WebContentsDelegate* delegate) override; |
@@ -427,6 +442,7 @@ class CONTENT_EXPORT WebContentsImpl |
void UpdateEncoding(RenderFrameHost* render_frame_host, |
const std::string& encoding) override; |
WebContents* GetAsWebContents() override; |
+ double PageZoomLevel() override; |
bool IsNeverVisible() override; |
AccessibilityMode GetAccessibilityMode() const override; |
void AccessibilityEventReceived( |