| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/timer.h" | 10 #include "base/timer.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual bool HasIcons() const { return false; } | 35 virtual bool HasIcons() const { return false; } |
| 36 virtual int GetItemCount() const; | 36 virtual int GetItemCount() const; |
| 37 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; | 37 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; |
| 38 virtual int GetCommandIdAt(int index) const { return index; } | 38 virtual int GetCommandIdAt(int index) const { return index; } |
| 39 virtual string16 GetLabelAt(int index) const; | 39 virtual string16 GetLabelAt(int index) const; |
| 40 virtual bool IsItemDynamicAt(int index) const { return true; } | 40 virtual bool IsItemDynamicAt(int index) const { return true; } |
| 41 virtual bool GetAcceleratorAt(int index, | 41 virtual bool GetAcceleratorAt(int index, |
| 42 ui::Accelerator* accelerator) const { return false; } | 42 ui::Accelerator* accelerator) const { return false; } |
| 43 virtual bool IsItemCheckedAt(int index) const { return false; } | 43 virtual bool IsItemCheckedAt(int index) const { return false; } |
| 44 virtual int GetGroupIdAt(int index) const { return 0; } | 44 virtual int GetGroupIdAt(int index) const { return 0; } |
| 45 virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } | 45 virtual bool GetIconAt(int index, SkBitmap* icon) { return false; } |
| 46 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { | 46 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { |
| 47 return NULL; | 47 return NULL; |
| 48 } | 48 } |
| 49 virtual bool IsEnabledAt(int index) const; | 49 virtual bool IsEnabledAt(int index) const; |
| 50 virtual ui::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } | 50 virtual ui::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } |
| 51 virtual void HighlightChangedTo(int index) {} | 51 virtual void HighlightChangedTo(int index) {} |
| 52 virtual void ActivatedAt(int index); | 52 virtual void ActivatedAt(int index); |
| 53 virtual void MenuWillShow() {} | 53 virtual void MenuWillShow() {} |
| 54 virtual void SetMenuModelDelegate(ui::MenuModelDelegate* delegate) {} |
| 54 | 55 |
| 55 // Overridden from ResumeLibrary::Observer: | 56 // Overridden from ResumeLibrary::Observer: |
| 56 virtual void PowerChanged(PowerLibrary* obj) {} | 57 virtual void PowerChanged(PowerLibrary* obj) {} |
| 57 virtual void SystemResumed(); | 58 virtual void SystemResumed(); |
| 58 | 59 |
| 59 // Overridden from SystemLibrary::Observer: | 60 // Overridden from SystemLibrary::Observer: |
| 60 virtual void TimezoneChanged(const icu::TimeZone& timezone); | 61 virtual void TimezoneChanged(const icu::TimeZone& timezone); |
| 61 | 62 |
| 62 // Updates the time on the menu button. Can be called by host if timezone | 63 // Updates the time on the menu button. Can be called by host if timezone |
| 63 // changes. | 64 // changes. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 81 scoped_ptr<views::Menu2> clock_menu_; | 82 scoped_ptr<views::Menu2> clock_menu_; |
| 82 | 83 |
| 83 StatusAreaHost* host_; | 84 StatusAreaHost* host_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); | 86 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace chromeos | 89 } // namespace chromeos |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ | 91 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ |
| OLD | NEW |