Home | History | Annotate | Download | only in models

Lines Matching defs:SimpleMenuModel

16 struct SimpleMenuModel::Item {
29 // SimpleMenuModel::Delegate, public:
31 bool SimpleMenuModel::Delegate::IsCommandIdVisible(int command_id) const {
35 bool SimpleMenuModel::Delegate::IsItemForCommandIdDynamic(
40 base::string16 SimpleMenuModel::Delegate::GetLabelForCommandId(
45 base::string16 SimpleMenuModel::Delegate::GetSublabelForCommandId(
50 bool SimpleMenuModel::Delegate::GetIconForCommandId(
55 void SimpleMenuModel::Delegate::CommandIdHighlighted(int command_id) {
58 void SimpleMenuModel::Delegate::ExecuteCommand(
63 void SimpleMenuModel::Delegate::MenuWillShow(SimpleMenuModel* /*source*/) {
66 void SimpleMenuModel::Delegate::MenuClosed(SimpleMenuModel* /*source*/) {
70 // SimpleMenuModel, public:
72 SimpleMenuModel::SimpleMenuModel(Delegate* delegate)
78 SimpleMenuModel::~SimpleMenuModel() {
81 void SimpleMenuModel::AddItem(int command_id, const base::string16& label) {
87 void SimpleMenuModel::AddItemWithStringId(int command_id, int string_id) {
91 void SimpleMenuModel::AddCheckItem(int command_id,
98 void SimpleMenuModel::AddCheckItemWithStringId(int command_id, int string_id) {
102 void SimpleMenuModel::AddRadioItem(int command_id,
110 void SimpleMenuModel::AddRadioItemWithStringId(int command_id, int string_id,
115 void SimpleMenuModel::AddSeparator(MenuSeparatorType separator_type) {
135 void SimpleMenuModel::RemoveTrailingSeparators() {
140 void SimpleMenuModel::AddButtonItem(int command_id,
147 void SimpleMenuModel::AddSubMenu(int command_id,
155 void SimpleMenuModel::AddSubMenuWithStringId(int command_id,
160 void SimpleMenuModel::InsertItemAt(int index,
168 void SimpleMenuModel::InsertItemWithStringIdAt(
173 void SimpleMenuModel::InsertSeparatorAt(int index,
185 void SimpleMenuModel::InsertCheckItemAt(int index,
193 void SimpleMenuModel::InsertCheckItemWithStringIdAt(
198 void SimpleMenuModel::InsertRadioItemAt(int index,
207 void SimpleMenuModel::InsertRadioItemWithStringIdAt(
213 void SimpleMenuModel::InsertSubMenuAt(int index,
222 void SimpleMenuModel::InsertSubMenuWithStringIdAt(
228 void SimpleMenuModel::SetIcon(int index, const gfx::Image& icon) {
232 void SimpleMenuModel::SetSublabel(int index, const base::string16& sublabel) {
236 void SimpleMenuModel::Clear() {
240 int SimpleMenuModel::GetIndexOfCommandId(int command_id) {
249 // SimpleMenuModel, MenuModel implementation:
251 bool SimpleMenuModel::HasIcons() const {
260 int SimpleMenuModel::GetItemCount() const {
264 MenuModel::ItemType SimpleMenuModel::GetTypeAt(int index) const {
268 ui::MenuSeparatorType SimpleMenuModel::GetSeparatorTypeAt(int index) const {
272 int SimpleMenuModel::GetCommandIdAt(int index) const {
276 base::string16 SimpleMenuModel::GetLabelAt(int index) const {
282 base::string16 SimpleMenuModel::GetSublabelAt(int index) const {
288 bool SimpleMenuModel::IsItemDynamicAt(int index) const {
294 bool SimpleMenuModel::GetAcceleratorAt(int index,
303 bool SimpleMenuModel::IsItemCheckedAt(int index) const {
311 int SimpleMenuModel::GetGroupIdAt(int index) const {
315 bool SimpleMenuModel::GetIconAt(int index, gfx::Image* icon) {
327 ButtonMenuItemModel* SimpleMenuModel::GetButtonMenuItemAt(int index) const {
331 bool SimpleMenuModel::IsEnabledAt(int index) const {
338 bool SimpleMenuModel::IsVisibleAt(int index) const {
345 void SimpleMenuModel::HighlightChangedTo(int index) {
350 void SimpleMenuModel::ActivatedAt(int index) {
355 void SimpleMenuModel::ActivatedAt(int index, int event_flags) {
360 MenuModel* SimpleMenuModel::GetSubmenuModelAt(int index) const {
364 void SimpleMenuModel::MenuWillShow() {
369 void SimpleMenuModel::MenuClosed() {
375 base::Bind(&SimpleMenuModel::OnMenuClosed, method_factory_.GetWeakPtr()));
378 void SimpleMenuModel::SetMenuModelDelegate(
383 MenuModelDelegate* SimpleMenuModel::GetMenuModelDelegate() const {
387 void SimpleMenuModel::OnMenuClosed() {
393 // SimpleMenuModel, Private:
395 int SimpleMenuModel::ValidateItemIndex(int index) const {
401 void SimpleMenuModel::AppendItem(const Item& item) {
406 void SimpleMenuModel::InsertItemAtIndex(const Item& item, int index) {
411 void SimpleMenuModel::ValidateItem(const Item& item) {