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

Unified Diff: chrome/browser/tab_contents/tab_contents.h

Issue 6413014: Original patch from issue 570048 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a few fixes Created 9 years, 10 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: chrome/browser/tab_contents/tab_contents.h
diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h
index 918b063269c1cfe84a3adf14a5bda06b2bbfcb6a..256b40d14a59f13599cfc223276d9ab02a8d3260 100644
--- a/chrome/browser/tab_contents/tab_contents.h
+++ b/chrome/browser/tab_contents/tab_contents.h
@@ -681,11 +681,19 @@ class TabContents : public PageNavigator,
// the page title and we know we want to update history.
void UpdateHistoryPageTitle(const NavigationEntry& entry);
+ // Sets the zoom level for this tab. Returns a request id that can
+ // be used to observe the corresponding ZOOM_LEVEL_CHANGED notification.
+ int SetZoomLevel(double zoom_level);
+
// Gets the zoom level for this tab.
double GetZoomLevel() const;
+ // Sets the zoom percent for this tab. Returns a request id that can
+ // be used to observe the corresponding ZOOM_LEVEL_CHANGED notification.
+ int SetZoomPercent(double zoom_percent);
+
// Gets the zoom percent for this tab.
- int GetZoomPercent(bool* enable_increment, bool* enable_decrement);
+ double GetZoomPercent(bool* enable_increment, bool* enable_decrement);
// Shows a fade effect over this tab contents. Repeated calls will be ignored
// until the fade is canceled. If |animate| is true the fade should animate.

Powered by Google App Engine
This is Rietveld 408576698