diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 15:58:47 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 15:58:47 +0000 |
commit | 4db6ae412dd8feb71ef652662f8e531eda77f7c6 (patch) | |
tree | 64dd59d8e53ff6fd74dfa950a7518f77ee8d1b5f /chrome/browser/host_zoom_map.cc | |
parent | bd9037bfd18ab784079c0620a95138e72740d32b (diff) | |
download | chromium_src-4db6ae412dd8feb71ef652662f8e531eda77f7c6.zip chromium_src-4db6ae412dd8feb71ef652662f8e531eda77f7c6.tar.gz chromium_src-4db6ae412dd8feb71ef652662f8e531eda77f7c6.tar.bz2 |
Adds notification of when zoom level changes. I'm going to need this
for the merged menu so that I can update the zoom level in the menu
appropriately.
BUG=45734
TEST=none
Review URL: http://codereview.chromium.org/2637006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/host_zoom_map.cc')
-rw-r--r-- | chrome/browser/host_zoom_map.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/host_zoom_map.cc b/chrome/browser/host_zoom_map.cc index 60dd91d..50e1519 100644 --- a/chrome/browser/host_zoom_map.cc +++ b/chrome/browser/host_zoom_map.cc @@ -10,6 +10,7 @@ #include "chrome/browser/profile.h" #include "chrome/browser/scoped_pref_update.h" #include "chrome/common/notification_details.h" +#include "chrome/common/notification_service.h" #include "chrome/common/notification_source.h" #include "chrome/common/notification_type.h" #include "chrome/common/pref_names.h" @@ -78,6 +79,11 @@ void HostZoomMap::SetZoomLevel(const GURL& url, int level) { host_zoom_levels_[host] = level; } + Details<std::string> details(&host); + NotificationService::current()->Notify(NotificationType::ZOOM_LEVEL_CHANGED, + Source<Profile>(profile_), + details); + // 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. if (profile_->IsOffTheRecord()) |