Chromium Code Reviews

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

Issue 5697005: Change SimpleMenuModel on OSX to support dynamic icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update after merge Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
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 #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 19 matching lines...)
30 public: 30 public:
31 explicit ClockMenuButton(StatusAreaHost* host); 31 explicit ClockMenuButton(StatusAreaHost* host);
32 virtual ~ClockMenuButton(); 32 virtual ~ClockMenuButton();
33 33
34 // menus::MenuModel implementation. 34 // menus::MenuModel implementation.
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 menus::MenuModel::ItemType GetTypeAt(int index) const; 37 virtual menus::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 IsLabelDynamicAt(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 menus::Accelerator* accelerator) const { return false; } 42 menus::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) const { return false; }
46 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { 46 virtual menus::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 menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; } 50 virtual menus::MenuModel* GetSubmenuModelAt(int index) const { return NULL; }
(...skipping 26 matching lines...)
77 scoped_ptr<views::Menu2> clock_menu_; 77 scoped_ptr<views::Menu2> clock_menu_;
78 78
79 StatusAreaHost* host_; 79 StatusAreaHost* host_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton); 81 DISALLOW_COPY_AND_ASSIGN(ClockMenuButton);
82 }; 82 };
83 83
84 } // namespace chromeos 84 } // namespace chromeos
85 85
86 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_ 86 #endif // CHROME_BROWSER_CHROMEOS_STATUS_CLOCK_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_win.cc ('k') | chrome/browser/chromeos/status/input_method_menu.h » ('j') | no next file with comments »

Powered by Google App Engine