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

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

Issue 4694008: Make pink's TabContentsWrapper change compile on Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_WRENCH_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_WRENCH_MENU_MODEL_H_
6 #define CHROME_BROWSER_WRENCH_MENU_MODEL_H_ 6 #define CHROME_BROWSER_WRENCH_MENU_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/menus/accelerator.h" 9 #include "app/menus/accelerator.h"
10 #include "app/menus/button_menu_item_model.h" 10 #include "app/menus/button_menu_item_model.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual string16 GetLabelForCommandId(int command_id) const; 86 virtual string16 GetLabelForCommandId(int command_id) const;
87 virtual void ExecuteCommand(int command_id); 87 virtual void ExecuteCommand(int command_id);
88 virtual bool IsCommandIdChecked(int command_id) const; 88 virtual bool IsCommandIdChecked(int command_id) const;
89 virtual bool IsCommandIdEnabled(int command_id) const; 89 virtual bool IsCommandIdEnabled(int command_id) const;
90 virtual bool IsCommandIdVisible(int command_id) const; 90 virtual bool IsCommandIdVisible(int command_id) const;
91 virtual bool GetAcceleratorForCommandId( 91 virtual bool GetAcceleratorForCommandId(
92 int command_id, 92 int command_id,
93 menus::Accelerator* accelerator); 93 menus::Accelerator* accelerator);
94 94
95 // Overridden from TabStripModelObserver: 95 // Overridden from TabStripModelObserver:
96 virtual void TabSelectedAt(TabContents* old_contents, 96 virtual void TabSelectedAt(TabContentsWrapper* old_contents,
97 TabContents* new_contents, 97 TabContentsWrapper* new_contents,
98 int index, 98 int index,
99 bool user_gesture); 99 bool user_gesture);
100 virtual void TabReplacedAt(TabContents* old_contents, 100 virtual void TabReplacedAt(TabContentsWrapper* old_contents,
101 TabContents* new_contents, int index); 101 TabContentsWrapper* new_contents, int index);
102 virtual void TabStripModelDeleted(); 102 virtual void TabStripModelDeleted();
103 103
104 // Overridden from NotificationObserver: 104 // Overridden from NotificationObserver:
105 virtual void Observe(NotificationType type, 105 virtual void Observe(NotificationType type,
106 const NotificationSource& source, 106 const NotificationSource& source,
107 const NotificationDetails& details); 107 const NotificationDetails& details);
108 108
109 // Getters. 109 // Getters.
110 Browser* browser() const { return browser_; } 110 Browser* browser() const { return browser_; }
111 111
(...skipping 28 matching lines...) Expand all
140 140
141 Browser* browser_; // weak 141 Browser* browser_; // weak
142 TabStripModel* tabstrip_model_; // weak 142 TabStripModel* tabstrip_model_; // weak
143 143
144 NotificationRegistrar registrar_; 144 NotificationRegistrar registrar_;
145 145
146 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); 146 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel);
147 }; 147 };
148 148
149 #endif // CHROME_BROWSER_WRENCH_MENU_MODEL_H_ 149 #endif // CHROME_BROWSER_WRENCH_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698