| 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_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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 virtual bool HasIcons() const; | 41 virtual bool HasIcons() const; |
| 42 virtual int GetItemCount() const; | 42 virtual int GetItemCount() const; |
| 43 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; | 43 virtual ui::MenuModel::ItemType GetTypeAt(int index) const; |
| 44 virtual int GetCommandIdAt(int index) const; | 44 virtual int GetCommandIdAt(int index) const; |
| 45 virtual string16 GetLabelAt(int index) const; | 45 virtual string16 GetLabelAt(int index) const; |
| 46 virtual bool IsItemDynamicAt(int index) const; | 46 virtual bool IsItemDynamicAt(int index) const; |
| 47 virtual bool GetAcceleratorAt(int index, | 47 virtual bool GetAcceleratorAt(int index, |
| 48 ui::Accelerator* accelerator) const; | 48 ui::Accelerator* accelerator) const; |
| 49 virtual bool IsItemCheckedAt(int index) const; | 49 virtual bool IsItemCheckedAt(int index) const; |
| 50 virtual int GetGroupIdAt(int index) const; | 50 virtual int GetGroupIdAt(int index) const; |
| 51 virtual bool GetIconAt(int index, SkBitmap* icon) const; | 51 virtual bool GetIconAt(int index, SkBitmap* icon); |
| 52 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const; | 52 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const; |
| 53 virtual bool IsEnabledAt(int index) const; | 53 virtual bool IsEnabledAt(int index) const; |
| 54 virtual ui::MenuModel* GetSubmenuModelAt(int index) const; | 54 virtual ui::MenuModel* GetSubmenuModelAt(int index) const; |
| 55 virtual void HighlightChangedTo(int index); | 55 virtual void HighlightChangedTo(int index); |
| 56 virtual void ActivatedAt(int index); | 56 virtual void ActivatedAt(int index); |
| 57 virtual void MenuWillShow(); | 57 virtual void MenuWillShow(); |
| 58 virtual void SetMenuModelDelegate(ui::MenuModelDelegate* delegate); |
| 58 | 59 |
| 59 // views::ViewMenuDelegate implementation. Sub classes can override the method | 60 // views::ViewMenuDelegate implementation. Sub classes can override the method |
| 60 // to adjust the position of the menu. | 61 // to adjust the position of the menu. |
| 61 virtual void RunMenu(views::View* unused_source, | 62 virtual void RunMenu(views::View* unused_source, |
| 62 const gfx::Point& pt); | 63 const gfx::Point& pt); |
| 63 | 64 |
| 64 // InputMethodLibrary::Observer implementation. | 65 // InputMethodLibrary::Observer implementation. |
| 65 virtual void InputMethodChanged( | 66 virtual void InputMethodChanged( |
| 66 InputMethodLibrary* obj, | 67 InputMethodLibrary* obj, |
| 67 const InputMethodDescriptor& current_input_method, | 68 const InputMethodDescriptor& current_input_method, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // true if the menu is for a dialog in OOBE screen. In the dialog, we don't | 171 // true if the menu is for a dialog in OOBE screen. In the dialog, we don't |
| 171 // use radio buttons. | 172 // use radio buttons. |
| 172 const bool for_out_of_box_experience_dialog_; | 173 const bool for_out_of_box_experience_dialog_; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(InputMethodMenu); | 175 DISALLOW_COPY_AND_ASSIGN(InputMethodMenu); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 } // namespace chromeos | 178 } // namespace chromeos |
| 178 | 179 |
| 179 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_ | 180 #endif // CHROME_BROWSER_CHROMEOS_STATUS_INPUT_METHOD_MENU_H_ |
| OLD | NEW |