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

Side by Side Diff: chrome/browser/chromeos/status/network_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, 5 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_NETWORK_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; 64 virtual menus::MenuModel::ItemType GetTypeAt(int index) const;
65 virtual int GetCommandIdAt(int index) const { return index; } 65 virtual int GetCommandIdAt(int index) const { return index; }
66 virtual string16 GetLabelAt(int index) const; 66 virtual string16 GetLabelAt(int index) const;
67 virtual bool IsLabelDynamicAt(int index) const { return true; } 67 virtual bool IsLabelDynamicAt(int index) const { return true; }
68 virtual const gfx::Font* GetLabelFontAt(int index) const; 68 virtual const gfx::Font* GetLabelFontAt(int index) const;
69 virtual bool GetAcceleratorAt(int index, 69 virtual bool GetAcceleratorAt(int index,
70 menus::Accelerator* accelerator) const { return false; } 70 menus::Accelerator* accelerator) const { return false; }
71 virtual bool IsItemCheckedAt(int index) const; 71 virtual bool IsItemCheckedAt(int index) const;
72 virtual int GetGroupIdAt(int index) const { return 0; } 72 virtual int GetGroupIdAt(int index) const { return 0; }
73 virtual bool GetIconAt(int index, SkBitmap* icon) const; 73 virtual bool GetIconAt(int index, SkBitmap* icon) const;
74 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const {
75 return NULL;
76 }
74 virtual bool IsEnabledAt(int index) const; 77 virtual bool IsEnabledAt(int index) const;
75 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } 78 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; }
76 virtual void HighlightChangedTo(int index) {} 79 virtual void HighlightChangedTo(int index) {}
77 virtual void ActivatedAt(int index); 80 virtual void ActivatedAt(int index);
78 virtual void MenuWillShow() {} 81 virtual void MenuWillShow() {}
79 82
80 // AnimationDelegate implementation. 83 // AnimationDelegate implementation.
81 virtual void AnimationProgressed(const Animation* animation); 84 virtual void AnimationProgressed(const Animation* animation);
82 85
83 // NetworkLibrary::Observer implementation. 86 // NetworkLibrary::Observer implementation.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 172
170 // The duration of the icon throbbing in milliseconds. 173 // The duration of the icon throbbing in milliseconds.
171 static const int kThrobDuration; 174 static const int kThrobDuration;
172 175
173 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton); 176 DISALLOW_COPY_AND_ASSIGN(NetworkMenuButton);
174 }; 177 };
175 178
176 } // namespace chromeos 179 } // namespace chromeos
177 180
178 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_ 181 #endif // CHROME_BROWSER_CHROMEOS_STATUS_NETWORK_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/language_menu_button.cc ('k') | chrome/browser/chromeos/status/power_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698