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

Side by Side Diff: chrome/browser/ui/toolbar/wrench_menu_model.h

Issue 11364196: Remove TabContents from TabStripModelObserver::ActiveTabChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 gfx::Image* icon) const OVERRIDE; 94 gfx::Image* icon) const OVERRIDE;
95 virtual void ExecuteCommand(int command_id) OVERRIDE; 95 virtual void ExecuteCommand(int command_id) OVERRIDE;
96 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 96 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
97 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 97 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
98 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; 98 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE;
99 virtual bool GetAcceleratorForCommandId( 99 virtual bool GetAcceleratorForCommandId(
100 int command_id, 100 int command_id,
101 ui::Accelerator* accelerator) OVERRIDE; 101 ui::Accelerator* accelerator) OVERRIDE;
102 102
103 // Overridden from TabStripModelObserver: 103 // Overridden from TabStripModelObserver:
104 virtual void ActiveTabChanged(TabContents* old_contents, 104 virtual void ActiveTabChanged(content::WebContents* old_contents,
105 TabContents* new_contents, 105 content::WebContents* new_contents,
106 int index, 106 int index,
107 bool user_gesture) OVERRIDE; 107 bool user_gesture) OVERRIDE;
108 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 108 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
109 TabContents* old_contents, 109 TabContents* old_contents,
110 TabContents* new_contents, 110 TabContents* new_contents,
111 int index) OVERRIDE; 111 int index) OVERRIDE;
112 virtual void TabStripModelDeleted() OVERRIDE; 112 virtual void TabStripModelDeleted() OVERRIDE;
113 113
114 // Overridden from content::NotificationObserver: 114 // Overridden from content::NotificationObserver:
115 virtual void Observe(int type, 115 virtual void Observe(int type,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 Browser* browser_; // weak 166 Browser* browser_; // weak
167 TabStripModel* tab_strip_model_; // weak 167 TabStripModel* tab_strip_model_; // weak
168 168
169 content::NotificationRegistrar registrar_; 169 content::NotificationRegistrar registrar_;
170 170
171 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); 171 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel);
172 }; 172 };
173 173
174 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ 174 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698