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

Unified Diff: chrome/browser/host_zoom_map.cc

Issue 570048: Add zoom extension API (Closed)
Patch Set: Zoom extension API with docs and examples 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
« no previous file with comments | « chrome/browser/host_zoom_map.h ('k') | chrome/browser/host_zoom_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/host_zoom_map.cc
diff --git a/chrome/browser/host_zoom_map.cc b/chrome/browser/host_zoom_map.cc
index 3dc257b677530b112700293ccdc0a60c1e68c1bc..0aefe2b28a5e4c5b701c9e754eecf861958e1c39 100644
--- a/chrome/browser/host_zoom_map.cc
+++ b/chrome/browser/host_zoom_map.cc
@@ -100,7 +100,7 @@ double HostZoomMap::GetZoomLevel(const GURL& url) const {
return (i == host_zoom_levels_.end()) ? default_zoom_level_ : i->second;
}
-void HostZoomMap::SetZoomLevel(const GURL& url, double level) {
+void HostZoomMap::SetZoomLevel(const GURL& url, int request_id, double level) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (!profile_)
return;
@@ -117,7 +117,7 @@ void HostZoomMap::SetZoomLevel(const GURL& url, double level) {
NotificationService::current()->Notify(NotificationType::ZOOM_LEVEL_CHANGED,
Source<Profile>(profile_),
- NotificationService::NoDetails());
+ Details<int>(&request_id));
// If we're in incognito mode, don't persist changes to the prefs. We'll keep
// them in memory only so they will be forgotten on exiting incognito.
@@ -153,6 +153,7 @@ double HostZoomMap::GetTemporaryZoomLevel(int render_process_id,
void HostZoomMap::SetTemporaryZoomLevel(int render_process_id,
int render_view_id,
+ int request_id,
double level) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (!profile_)
@@ -184,7 +185,7 @@ void HostZoomMap::SetTemporaryZoomLevel(int render_process_id,
NotificationService::current()->Notify(NotificationType::ZOOM_LEVEL_CHANGED,
Source<Profile>(profile_),
- NotificationService::NoDetails());
+ Details<int>(&request_id));
}
void HostZoomMap::ResetToDefaults() {
« no previous file with comments | « chrome/browser/host_zoom_map.h ('k') | chrome/browser/host_zoom_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698