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

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

Issue 2879002: Reapply r50859 with chromeos fixes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: add explicit menus:: to chromeos Created 10 years, 6 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
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 7
8 #include "app/menus/menu_model.h" 8 #include "app/menus/menu_model.h"
9 #include "chrome/browser/chromeos/cros/power_library.h" 9 #include "chrome/browser/chromeos/cros/power_library.h"
10 #include "chrome/browser/chromeos/status/status_area_button.h" 10 #include "chrome/browser/chromeos/status/status_area_button.h"
(...skipping 19 matching lines...) Expand all
30 virtual int GetItemCount() const; 30 virtual int GetItemCount() const;
31 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; 31 virtual menus::MenuModel::ItemType GetTypeAt(int index) const;
32 virtual int GetCommandIdAt(int index) const { return index; } 32 virtual int GetCommandIdAt(int index) const { return index; }
33 virtual string16 GetLabelAt(int index) const; 33 virtual string16 GetLabelAt(int index) const;
34 virtual bool IsLabelDynamicAt(int index) const { return true; } 34 virtual bool IsLabelDynamicAt(int index) const { return true; }
35 virtual bool GetAcceleratorAt(int index, 35 virtual bool GetAcceleratorAt(int index,
36 menus::Accelerator* accelerator) const { return false; } 36 menus::Accelerator* accelerator) const { return false; }
37 virtual bool IsItemCheckedAt(int index) const { return false; } 37 virtual bool IsItemCheckedAt(int index) const { return false; }
38 virtual int GetGroupIdAt(int index) const { return 0; } 38 virtual int GetGroupIdAt(int index) const { return 0; }
39 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } 39 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; }
40 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const {
41 return NULL;
42 }
40 virtual bool IsEnabledAt(int index) const { return false; } 43 virtual bool IsEnabledAt(int index) const { return false; }
41 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } 44 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; }
42 virtual void HighlightChangedTo(int index) {} 45 virtual void HighlightChangedTo(int index) {}
43 virtual void ActivatedAt(int index) {} 46 virtual void ActivatedAt(int index) {}
44 virtual void MenuWillShow() {} 47 virtual void MenuWillShow() {}
45 48
46 // PowerLibrary::Observer implementation. 49 // PowerLibrary::Observer implementation.
47 virtual void PowerChanged(PowerLibrary* obj); 50 virtual void PowerChanged(PowerLibrary* obj);
48 51
49 int icon_id() const { return icon_id_; } 52 int icon_id() const { return icon_id_; }
(...skipping 21 matching lines...) Expand all
71 74
72 // The currently showing icon bitmap id. 75 // The currently showing icon bitmap id.
73 int icon_id_; 76 int icon_id_;
74 77
75 DISALLOW_COPY_AND_ASSIGN(PowerMenuButton); 78 DISALLOW_COPY_AND_ASSIGN(PowerMenuButton);
76 }; 79 };
77 80
78 } // namespace chromeos 81 } // namespace chromeos
79 82
80 #endif // CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_ 83 #endif // CHROME_BROWSER_CHROMEOS_STATUS_POWER_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/network_menu_button.h ('k') | chrome/browser/gtk/gtk_custom_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698