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

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

Issue 7043020: Multi-tab selection: Renaming TabStripModelObserver::TabSelectedAt to ActiveTabChanged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating TODO comments Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/tabs/tab_strip_model_observer.h" 10 #include "chrome/browser/tabs/tab_strip_model_observer.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 SkBitmap* icon) const OVERRIDE; 101 SkBitmap* icon) const OVERRIDE;
102 virtual void ExecuteCommand(int command_id) OVERRIDE; 102 virtual void ExecuteCommand(int command_id) OVERRIDE;
103 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 103 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
104 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 104 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
105 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; 105 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE;
106 virtual bool GetAcceleratorForCommandId( 106 virtual bool GetAcceleratorForCommandId(
107 int command_id, 107 int command_id,
108 ui::Accelerator* accelerator) OVERRIDE; 108 ui::Accelerator* accelerator) OVERRIDE;
109 109
110 // Overridden from TabStripModelObserver: 110 // Overridden from TabStripModelObserver:
111 virtual void TabSelectedAt(TabContentsWrapper* old_contents, 111 virtual void ActiveTabChanged(TabContentsWrapper* old_contents,
112 TabContentsWrapper* new_contents, 112 TabContentsWrapper* new_contents,
113 int index, 113 int index,
114 bool user_gesture) OVERRIDE; 114 bool user_gesture) OVERRIDE;
115 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 115 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
116 TabContentsWrapper* old_contents, 116 TabContentsWrapper* old_contents,
117 TabContentsWrapper* new_contents, 117 TabContentsWrapper* new_contents,
118 int index) OVERRIDE; 118 int index) OVERRIDE;
119 virtual void TabStripModelDeleted() OVERRIDE; 119 virtual void TabStripModelDeleted() OVERRIDE;
120 120
121 // Overridden from NotificationObserver: 121 // Overridden from NotificationObserver:
122 virtual void Observe(NotificationType type, 122 virtual void Observe(NotificationType type,
123 const NotificationSource& source, 123 const NotificationSource& source,
124 const NotificationDetails& details) OVERRIDE; 124 const NotificationDetails& details) OVERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 Browser* browser_; // weak 161 Browser* browser_; // weak
162 TabStripModel* tabstrip_model_; // weak 162 TabStripModel* tabstrip_model_; // weak
163 163
164 NotificationRegistrar registrar_; 164 NotificationRegistrar registrar_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); 166 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel);
167 }; 167 };
168 168
169 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ 169 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_strip_gtk.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