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

Side by Side Diff: chrome/browser/ui/gtk/browser_toolbar_gtk.h

Issue 12039058: content: convert zoom notifications to observer usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: callbacks Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Overridden from MenuGtk::Delegate: 92 // Overridden from MenuGtk::Delegate:
93 virtual void StoppedShowing() OVERRIDE; 93 virtual void StoppedShowing() OVERRIDE;
94 virtual GtkIconSet* GetIconSetForId(int idr) OVERRIDE; 94 virtual GtkIconSet* GetIconSetForId(int idr) OVERRIDE;
95 virtual bool AlwaysShowIconForCmd(int command_id) const OVERRIDE; 95 virtual bool AlwaysShowIconForCmd(int command_id) const OVERRIDE;
96 96
97 // Overridden from ui::AcceleratorProvider: 97 // Overridden from ui::AcceleratorProvider:
98 virtual bool GetAcceleratorForCommandId( 98 virtual bool GetAcceleratorForCommandId(
99 int id, 99 int id,
100 ui::Accelerator* accelerator) OVERRIDE; 100 ui::Accelerator* accelerator) OVERRIDE;
101 101
102 void OnZoomLevelChanged(const std::string& host);
103
102 // content::NotificationObserver implementation. 104 // content::NotificationObserver implementation.
103 virtual void Observe(int type, 105 virtual void Observe(int type,
104 const content::NotificationSource& source, 106 const content::NotificationSource& source,
105 const content::NotificationDetails& details) OVERRIDE; 107 const content::NotificationDetails& details) OVERRIDE;
106 108
107 // Whether the wrench/hotdogs menu is currently visible to the user. 109 // Whether the wrench/hotdogs menu is currently visible to the user.
108 bool IsWrenchMenuShowing() const; 110 bool IsWrenchMenuShowing() const;
109 111
110 // Message that we should react to a state change. 112 // Message that we should react to a state change.
111 void UpdateWebContents(content::WebContents* contents, 113 void UpdateWebContents(content::WebContents* contents,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // rendering. 219 // rendering.
218 ui::OwnedWidgetGtk offscreen_entry_; 220 ui::OwnedWidgetGtk offscreen_entry_;
219 221
220 // Manages the home button drop signal handler. 222 // Manages the home button drop signal handler.
221 scoped_ptr<ui::GtkSignalRegistrar> drop_handler_; 223 scoped_ptr<ui::GtkSignalRegistrar> drop_handler_;
222 224
223 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); 225 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk);
224 }; 226 };
225 227
226 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ 228 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698