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

Side by Side Diff: chrome/browser/ui/toolbar/wrench_menu_model.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_TOOLBAR_WRENCH_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual void ActiveTabChanged(content::WebContents* old_contents, 106 virtual void ActiveTabChanged(content::WebContents* old_contents,
107 content::WebContents* new_contents, 107 content::WebContents* new_contents,
108 int index, 108 int index,
109 bool user_gesture) OVERRIDE; 109 bool user_gesture) OVERRIDE;
110 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 110 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
111 content::WebContents* old_contents, 111 content::WebContents* old_contents,
112 content::WebContents* new_contents, 112 content::WebContents* new_contents,
113 int index) OVERRIDE; 113 int index) OVERRIDE;
114 virtual void TabStripModelDeleted() OVERRIDE; 114 virtual void TabStripModelDeleted() OVERRIDE;
115 115
116 void OnZoomLevelChanged(const std::string& host);
117
116 // Overridden from content::NotificationObserver: 118 // Overridden from content::NotificationObserver:
117 virtual void Observe(int type, 119 virtual void Observe(int type,
118 const content::NotificationSource& source, 120 const content::NotificationSource& source,
119 const content::NotificationDetails& details) OVERRIDE; 121 const content::NotificationDetails& details) OVERRIDE;
120 122
121 // Getters. 123 // Getters.
122 Browser* browser() const { return browser_; } 124 Browser* browser() const { return browser_; }
123 125
124 BookmarkSubMenuModel* bookmark_sub_menu_model() const { 126 BookmarkSubMenuModel* bookmark_sub_menu_model() const {
125 return bookmark_sub_menu_model_.get(); 127 return bookmark_sub_menu_model_.get();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 176
175 Browser* browser_; // weak 177 Browser* browser_; // weak
176 TabStripModel* tab_strip_model_; // weak 178 TabStripModel* tab_strip_model_; // weak
177 179
178 content::NotificationRegistrar registrar_; 180 content::NotificationRegistrar registrar_;
179 181
180 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); 182 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel);
181 }; 183 };
182 184
183 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ 185 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698