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

Side by Side Diff: chrome/browser/chromeos/status/power_menu_button.h

Issue 5697005: Change SimpleMenuModel on OSX to support dynamic icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update after merge Created 10 years 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
« no previous file with comments | « chrome/browser/chromeos/status/network_menu.h ('k') | chrome/browser/download/download_shelf.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/menus/menu_model.h" 9 #include "app/menus/menu_model.h"
10 #include "chrome/browser/chromeos/cros/power_library.h" 10 #include "chrome/browser/chromeos/cros/power_library.h"
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 PowerMenuButton(); 30 PowerMenuButton();
31 virtual ~PowerMenuButton(); 31 virtual ~PowerMenuButton();
32 32
33 // menus::MenuModel implementation. 33 // menus::MenuModel implementation.
34 virtual bool HasIcons() const { return false; } 34 virtual bool HasIcons() const { return false; }
35 virtual int GetItemCount() const; 35 virtual int GetItemCount() const;
36 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; 36 virtual menus::MenuModel::ItemType GetTypeAt(int index) const;
37 virtual int GetCommandIdAt(int index) const { return index; } 37 virtual int GetCommandIdAt(int index) const { return index; }
38 virtual string16 GetLabelAt(int index) const; 38 virtual string16 GetLabelAt(int index) const;
39 virtual bool IsLabelDynamicAt(int index) const { return true; } 39 virtual bool IsItemDynamicAt(int index) const { return true; }
40 virtual bool GetAcceleratorAt(int index, 40 virtual bool GetAcceleratorAt(int index,
41 menus::Accelerator* accelerator) const { return false; } 41 menus::Accelerator* accelerator) const { return false; }
42 virtual bool IsItemCheckedAt(int index) const { return false; } 42 virtual bool IsItemCheckedAt(int index) const { return false; }
43 virtual int GetGroupIdAt(int index) const { return 0; } 43 virtual int GetGroupIdAt(int index) const { return 0; }
44 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } 44 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; }
45 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { 45 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const {
46 return NULL; 46 return NULL;
47 } 47 }
48 virtual bool IsEnabledAt(int index) const { return false; } 48 virtual bool IsEnabledAt(int index) const { return false; }
49 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } 49 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // The power menu. This needs to be initialized last since it calls into 83 // The power menu. This needs to be initialized last since it calls into
84 // GetLabelAt() during construction. 84 // GetLabelAt() during construction.
85 views::Menu2 power_menu_; 85 views::Menu2 power_menu_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(PowerMenuButton); 87 DISALLOW_COPY_AND_ASSIGN(PowerMenuButton);
88 }; 88 };
89 89
90 } // namespace chromeos 90 } // namespace chromeos
91 91
92 #endif // CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_ 92 #endif // CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/network_menu.h ('k') | chrome/browser/download/download_shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698