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

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

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 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) 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 #pragma once 7 #pragma once
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 WrenchMenuModel(ui::AcceleratorProvider* provider, Browser* browser); 81 WrenchMenuModel(ui::AcceleratorProvider* provider, Browser* browser);
82 virtual ~WrenchMenuModel(); 82 virtual ~WrenchMenuModel();
83 83
84 // Overridden for ButtonMenuItemModel::Delegate: 84 // Overridden for ButtonMenuItemModel::Delegate:
85 virtual bool DoesCommandIdDismissMenu(int command_id) const OVERRIDE; 85 virtual bool DoesCommandIdDismissMenu(int command_id) const OVERRIDE;
86 86
87 // Overridden for both ButtonMenuItemModel::Delegate and SimpleMenuModel: 87 // Overridden for both ButtonMenuItemModel::Delegate and SimpleMenuModel:
88 virtual bool IsItemForCommandIdDynamic(int command_id) const OVERRIDE; 88 virtual bool IsItemForCommandIdDynamic(int command_id) const OVERRIDE;
89 virtual string16 GetLabelForCommandId(int command_id) const OVERRIDE; 89 virtual string16 GetLabelForCommandId(int command_id) const OVERRIDE;
90 virtual bool GetIconForCommandId(int command_id, 90 virtual bool GetIconForCommandId(int command_id,
91 SkBitmap* icon) const OVERRIDE; 91 gfx::ImageSkia* icon) const OVERRIDE;
92 virtual void ExecuteCommand(int command_id) OVERRIDE; 92 virtual void ExecuteCommand(int command_id) OVERRIDE;
93 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 93 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
94 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 94 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
95 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; 95 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE;
96 virtual bool GetAcceleratorForCommandId( 96 virtual bool GetAcceleratorForCommandId(
97 int command_id, 97 int command_id,
98 ui::Accelerator* accelerator) OVERRIDE; 98 ui::Accelerator* accelerator) OVERRIDE;
99 99
100 // Overridden from TabStripModelObserver: 100 // Overridden from TabStripModelObserver:
101 virtual void ActiveTabChanged(TabContentsWrapper* old_contents, 101 virtual void ActiveTabChanged(TabContentsWrapper* old_contents,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 Browser* browser_; // weak 162 Browser* browser_; // weak
163 TabStripModel* tab_strip_model_; // weak 163 TabStripModel* tab_strip_model_; // weak
164 164
165 content::NotificationRegistrar registrar_; 165 content::NotificationRegistrar registrar_;
166 166
167 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel); 167 DISALLOW_COPY_AND_ASSIGN(WrenchMenuModel);
168 }; 168 };
169 169
170 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_ 170 #endif // CHROME_BROWSER_UI_TOOLBAR_WRENCH_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698