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

Side by Side Diff: chrome/browser/chromeos/status/feedback_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) 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_CHROMEOS_STATUS_FEEDBACK_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_FEEDBACK_MENU_BUTTON_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_FEEDBACK_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_FEEDBACK_MENU_BUTTON_H_
7 7
8 #include "app/menus/simple_menu_model.h" 8 #include "app/menus/simple_menu_model.h"
9 #include "chrome/browser/chromeos/status/status_area_button.h" 9 #include "chrome/browser/chromeos/status/status_area_button.h"
10 #include "views/controls/menu/menu_2.h" 10 #include "views/controls/menu/menu_2.h"
(...skipping 29 matching lines...) Expand all
40 return menus::MenuModel::TYPE_COMMAND; 40 return menus::MenuModel::TYPE_COMMAND;
41 } 41 }
42 virtual int GetCommandIdAt(int index) const { return index; } 42 virtual int GetCommandIdAt(int index) const { return index; }
43 virtual string16 GetLabelAt(int index) const { return string16(); } 43 virtual string16 GetLabelAt(int index) const { return string16(); }
44 virtual bool IsLabelDynamicAt(int index) const { return true; } 44 virtual bool IsLabelDynamicAt(int index) const { return true; }
45 virtual bool GetAcceleratorAt(int index, 45 virtual bool GetAcceleratorAt(int index,
46 menus::Accelerator* accelerator) const { return false; } 46 menus::Accelerator* accelerator) const { return false; }
47 virtual bool IsItemCheckedAt(int index) const { return false; } 47 virtual bool IsItemCheckedAt(int index) const { return false; }
48 virtual int GetGroupIdAt(int index) const { return 0; } 48 virtual int GetGroupIdAt(int index) const { return 0; }
49 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } 49 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; }
50 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const {
51 return NULL;
52 }
50 virtual bool IsEnabledAt(int index) const { return false; } 53 virtual bool IsEnabledAt(int index) const { return false; }
51 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } 54 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; }
52 virtual void HighlightChangedTo(int index) {} 55 virtual void HighlightChangedTo(int index) {}
53 virtual void ActivatedAt(int index) {} 56 virtual void ActivatedAt(int index) {}
54 virtual void MenuWillShow() {} 57 virtual void MenuWillShow() {}
55 58
56 // This method will draw the |icon| in the appropriate place on the |canvas|. 59 // This method will draw the |icon| in the appropriate place on the |canvas|.
57 void DrawFeedbackIcon(gfx::Canvas* canvas, SkBitmap icon); 60 void DrawFeedbackIcon(gfx::Canvas* canvas, SkBitmap icon);
58 61
59 StatusAreaHost* host_; 62 StatusAreaHost* host_;
60 63
61 DISALLOW_COPY_AND_ASSIGN(FeedbackMenuButton); 64 DISALLOW_COPY_AND_ASSIGN(FeedbackMenuButton);
62 }; 65 };
63 66
64 } // namespace chromeos 67 } // namespace chromeos
65 68
66 #endif // CHROME_BROWSER_CHROMEOS_STATUS_FEEDBACK_MENU_BUTTON_H_ 69 #endif // CHROME_BROWSER_CHROMEOS_STATUS_FEEDBACK_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/clock_menu_button.h ('k') | chrome/browser/chromeos/status/language_menu_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698