Chromium Code Reviews

Side by Side Diff: chrome/browser/chromeos/status/input_method_menu.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) 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_INPUT_METHOD_MENU_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/menus/simple_menu_model.h" 9 #include "app/menus/simple_menu_model.h"
10 #include "chrome/browser/chromeos/cros/input_method_library.h" 10 #include "chrome/browser/chromeos/cros/input_method_library.h"
(...skipping 26 matching lines...)
37 bool is_screen_locker, 37 bool is_screen_locker,
38 bool is_out_of_box_experience_mode); 38 bool is_out_of_box_experience_mode);
39 virtual ~InputMethodMenu(); 39 virtual ~InputMethodMenu();
40 40
41 // menus::MenuModel implementation. 41 // menus::MenuModel implementation.
42 virtual bool HasIcons() const; 42 virtual bool HasIcons() const;
43 virtual int GetItemCount() const; 43 virtual int GetItemCount() const;
44 virtual menus::MenuModel::ItemType GetTypeAt(int index) const; 44 virtual menus::MenuModel::ItemType GetTypeAt(int index) const;
45 virtual int GetCommandIdAt(int index) const; 45 virtual int GetCommandIdAt(int index) const;
46 virtual string16 GetLabelAt(int index) const; 46 virtual string16 GetLabelAt(int index) const;
47 virtual bool IsLabelDynamicAt(int index) const; 47 virtual bool IsItemDynamicAt(int index) const;
48 virtual bool GetAcceleratorAt(int index, 48 virtual bool GetAcceleratorAt(int index,
49 menus::Accelerator* accelerator) const; 49 menus::Accelerator* accelerator) const;
50 virtual bool IsItemCheckedAt(int index) const; 50 virtual bool IsItemCheckedAt(int index) const;
51 virtual int GetGroupIdAt(int index) const; 51 virtual int GetGroupIdAt(int index) const;
52 virtual bool GetIconAt(int index, SkBitmap* icon) const; 52 virtual bool GetIconAt(int index, SkBitmap* icon) const;
53 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const; 53 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const;
54 virtual bool IsEnabledAt(int index) const; 54 virtual bool IsEnabledAt(int index) const;
55 virtual menus::MenuModel* GetSubmenuModelAt(int index) const; 55 virtual menus::MenuModel* GetSubmenuModelAt(int index) const;
56 virtual void HighlightChangedTo(int index); 56 virtual void HighlightChangedTo(int index);
57 virtual void ActivatedAt(int index); 57 virtual void ActivatedAt(int index);
(...skipping 108 matching lines...)
166 const bool is_browser_mode_; 166 const bool is_browser_mode_;
167 const bool is_screen_locker_mode_; 167 const bool is_screen_locker_mode_;
168 const bool is_out_of_box_experience_mode_; 168 const bool is_out_of_box_experience_mode_;
169 169
170 DISALLOW_COPY_AND_ASSIGN(InputMethodMenu); 170 DISALLOW_COPY_AND_ASSIGN(InputMethodMenu);
171 }; 171 };
172 172
173 } // namespace chromeos 173 } // namespace chromeos
174 174
175 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_ 175 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/clock_menu_button.h ('k') | chrome/browser/chromeos/status/input_method_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine