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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 224733018: Changes to content/ to facilitate new zoom extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 8 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: 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 18e9ceab00afb145dbe61cffbc2599caa8b42dca..2c9c9244235bcb093be14891913414bd6f1d70dd 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -266,6 +266,7 @@ class CONTENT_EXPORT WebContentsImpl
virtual void UserGestureDone() OVERRIDE;
virtual void SetClosedByUserGesture(bool value) OVERRIDE;
virtual bool GetClosedByUserGesture() const OVERRIDE;
+ virtual ZoomMode GetZoomMode() const OVERRIDE;
virtual double GetZoomLevel() const OVERRIDE;
virtual int GetZoomPercent(bool* enable_increment,
bool* enable_decrement) const OVERRIDE;
@@ -287,7 +288,11 @@ class CONTENT_EXPORT WebContentsImpl
virtual void Find(int request_id,
const base::string16& search_text,
const blink::WebFindOptions& options) OVERRIDE;
+ virtual void SetZoomMode(ZoomMode mode) OVERRIDE;
virtual void SetZoomLevel(double level) OVERRIDE;
+ virtual void SetZoomLevel(
+ double level,
+ const base::Callback<void(void)>& callback) OVERRIDE;
virtual void StopFinding(StopFindAction action) OVERRIDE;
#if defined(OS_ANDROID)
virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents()
@@ -1051,6 +1056,12 @@ class CONTENT_EXPORT WebContentsImpl
// different process from its parent page.
bool is_subframe_;
+ // Defines how zoom changes are handled.
+ ZoomMode current_zoom_mode_;
+
+ // Used to create a unique zoom ID for every call to SetZoomlevel().
+ int current_zoom_id_;
+
DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
};

Powered by Google App Engine
This is Rietveld 408576698