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

Unified Diff: chrome/renderer/render_view.h

Issue 437077: Remember zoom on a per-host basis.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
===================================================================
--- chrome/renderer/render_view.h (revision 33695)
+++ chrome/renderer/render_view.h (working copy)
@@ -24,6 +24,7 @@
#include "chrome/common/edit_command.h"
#include "chrome/common/navigation_gesture.h"
#include "chrome/common/notification_type.h"
+#include "chrome/common/page_zoom.h"
#include "chrome/common/renderer_preferences.h"
#include "chrome/common/view_types.h"
#include "chrome/renderer/automation/dom_automation_controller.h"
@@ -451,6 +452,8 @@
FRIEND_TEST(RenderViewTest, MacTestCmdUp);
#endif
+ typedef std::map<std::string, int> HostZoomLevels;
+
explicit RenderView(RenderThreadBase* render_thread,
const WebPreferences& webkit_preferences);
@@ -552,7 +555,8 @@
void OnCancelDownload(int32 download_id);
void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&);
void OnDeterminePageText();
- void OnZoom(int function);
+ void OnZoom(PageZoom::Function function);
+ void OnSetZoomLevelForLoadingHost(std::string host, int zoom_level);
void OnSetPageEncoding(const std::string& encoding_name);
void OnResetPageEncodingToDefault();
void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url);
@@ -1007,6 +1011,8 @@
typedef std::map<WebKit::WebView*, RenderView*> ViewMap;
+ HostZoomLevels host_zoom_levels_;
+
DISALLOW_COPY_AND_ASSIGN(RenderView);
};
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698