| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_CLOCK_MENU_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
| 7 | 7 |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/timer.h" | 9 #include "base/timer.h" |
| 10 #include "chrome/browser/pref_member.h" | 10 #include "chrome/browser/pref_member.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual int GetItemCount() const; | 34 virtual int GetItemCount() const; |
| 35 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; | 35 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; |
| 36 virtual int GetCommandIdAt(int index) const { return index; } | 36 virtual int GetCommandIdAt(int index) const { return index; } |
| 37 virtual string16 GetLabelAt(int index) const; | 37 virtual string16 GetLabelAt(int index) const; |
| 38 virtual bool IsLabelDynamicAt(int index) const { return true; } | 38 virtual bool IsLabelDynamicAt(int index) const { return true; } |
| 39 virtual bool GetAcceleratorAt(int index, | 39 virtual bool GetAcceleratorAt(int index, |
| 40 menus::Accelerator* accelerator) const { return false; } | 40 menus::Accelerator* accelerator) const { return false; } |
| 41 virtual bool IsItemCheckedAt(int index) const { return false; } | 41 virtual bool IsItemCheckedAt(int index) const { return false; } |
| 42 virtual int GetGroupIdAt(int index) const { return 0; } | 42 virtual int GetGroupIdAt(int index) const { return 0; } |
| 43 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } | 43 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } |
| 44 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { |
| 45 return NULL; |
| 46 } |
| 44 virtual bool IsEnabledAt(int index) const; | 47 virtual bool IsEnabledAt(int index) const; |
| 45 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } | 48 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } |
| 46 virtual void HighlightChangedTo(int index) {} | 49 virtual void HighlightChangedTo(int index) {} |
| 47 virtual void ActivatedAt(int index); | 50 virtual void ActivatedAt(int index); |
| 48 virtual void MenuWillShow() {} | 51 virtual void MenuWillShow() {} |
| 49 | 52 |
| 50 // Overridden from NotificationObserver: | 53 // Overridden from NotificationObserver: |
| 51 virtual void Observe(NotificationType type, | 54 virtual void Observe(NotificationType type, |
| 52 const NotificationSource& source, | 55 const NotificationSource& source, |
| 53 const NotificationDetails& details); | 56 const NotificationDetails& details); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 74 | 77 |
| 75 // Preferences for this section: | 78 // Preferences for this section: |
| 76 StringPrefMember timezone_; | 79 StringPrefMember timezone_; |
| 77 | 80 |
| 78 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); | 81 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); |
| 79 }; | 82 }; |
| 80 | 83 |
| 81 } // namespace chromeos | 84 } // namespace chromeos |
| 82 | 85 |
| 83 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ | 86 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
| OLD | NEW |