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

Unified Diff: chrome/browser/ui/zoom/zoom_controller.h

Issue 10979019: [gtk] fix zoom bubble showing up on wrong window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 | « no previous file | chrome/browser/ui/zoom/zoom_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/zoom/zoom_controller.h
diff --git a/chrome/browser/ui/zoom/zoom_controller.h b/chrome/browser/ui/zoom/zoom_controller.h
index 1431763b65862799749870d6d4347204013aa930..2526ccc9460b8485eb67b4f95f86cdf03f63ffec 100644
--- a/chrome/browser/ui/zoom/zoom_controller.h
+++ b/chrome/browser/ui/zoom/zoom_controller.h
@@ -52,12 +52,10 @@ class ZoomController : public content::NotificationObserver,
const content::NotificationDetails& details) OVERRIDE;
// Updates the zoom icon and zoom percentage based on current values and
- // notifies the observer if changes have occurred. |can_show_bubble| will be
- // true only if the active window changes the zoom on the current page (i.e.,
- // inactive window zoom changes, creating a new tab/window, or shifting
- // between tabs/windows, although they may involve a change in the zoom,
- // should not trigger showing a bubble).
- void UpdateState(bool can_show_bubble);
+ // notifies the observer if changes have occurred. |host| may be empty,
+ // meaning the change should apply to ~all sites. If it is not empty, the
+ // change only affects sites with the given host.
+ void UpdateState(const std::string& host);
// The current zoom percentage.
int zoom_percent_;
« no previous file with comments | « no previous file | chrome/browser/ui/zoom/zoom_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698