Index: content/public/browser/web_contents.h |
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
index d84774fdcc36387d2c332fd439e548dec969559f..5a5e863dc094d3ee2b43d6addd14d6e0c3f12e23 100644 |
--- a/content/public/browser/web_contents.h |
+++ b/content/public/browser/web_contents.h |
@@ -18,6 +18,7 @@ |
#include "content/public/browser/page_navigator.h" |
#include "content/public/browser/save_page_type.h" |
#include "content/public/browser/web_ui.h" |
+#include "content/public/common/page_zoom.h" |
#include "content/public/common/stop_find_action.h" |
#include "ipc/ipc_sender.h" |
#include "third_party/skia/include/core/SkColor.h" |
@@ -424,6 +425,9 @@ class WebContents : public PageNavigator, |
virtual void SetClosedByUserGesture(bool value) = 0; |
virtual bool GetClosedByUserGesture() const = 0; |
+ // Gets the flag indicating whether zooming will have default behavior. |
+ virtual ZoomMode GetZoomMode() const = 0; |
+ |
// Gets the zoom level for this tab. |
virtual double GetZoomLevel() const = 0; |
@@ -494,9 +498,12 @@ class WebContents : public PageNavigator, |
// removed since we can then embed iframes in different processes. |
virtual bool IsSubframe() const = 0; |
+ // Sets the flag indicating whether zooming will have default behavior. |
+ virtual void SetZoomMode(ZoomMode mode) = 0; |
+ |
// Sets the zoom level for the current page and all BrowserPluginGuests |
- // within the page. |
- virtual void SetZoomLevel(double level) = 0; |
+ // within the page. Returns the zoom_id of the zoom change. |
+ virtual int SetZoomLevel(double level) = 0; |
// Finds text on a page. |
virtual void Find(int request_id, |