Lines Matching refs:model

38   ui::SimpleMenuModel* model = new ui::SimpleMenuModel(&menu_delegate_);
39 menu_model_.reset(model);
40 BuildMenu(model);
46 model->AddSeparator(ui::NORMAL_SEPARATOR);
50 void SystemMenuModelBuilder::BuildMenu(ui::SimpleMenuModel* model) {
54 BuildSystemMenuForBrowserWindow(model);
56 BuildSystemMenuForAppOrPopupWindow(model);
57 AddFrameToggleItems(model);
61 ui::SimpleMenuModel* model) {
62 model->AddItemWithStringId(IDC_NEW_TAB, IDS_NEW_TAB);
63 model->AddItemWithStringId(IDC_RESTORE_TAB, IDS_RESTORE_TAB);
65 model->AddSeparator(ui::NORMAL_SEPARATOR);
66 model->AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER);
69 model->AddSeparator(ui::NORMAL_SEPARATOR);
70 model->AddCheckItemWithStringId(IDC_USE_SYSTEM_TITLE_BAR,
73 AppendTeleportMenu(model);
79 ui::SimpleMenuModel* model) {
80 model->AddItemWithStringId(IDC_BACK, IDS_CONTENT_CONTEXT_BACK);
81 model->AddItemWithStringId(IDC_FORWARD, IDS_CONTENT_CONTEXT_FORWARD);
82 model->AddItemWithStringId(IDC_RELOAD, IDS_APP_MENU_RELOAD);
83 model->AddSeparator(ui::NORMAL_SEPARATOR);
85 model->AddItemWithStringId(IDC_NEW_TAB, IDS_APP_MENU_NEW_WEB_PAGE);
87 model->AddItemWithStringId(IDC_SHOW_AS_TAB, IDS_SHOW_AS_TAB);
88 model->AddSeparator(ui::NORMAL_SEPARATOR);
89 model->AddItemWithStringId(IDC_CUT, IDS_CUT);
90 model->AddItemWithStringId(IDC_COPY, IDS_COPY);
91 model->AddItemWithStringId(IDC_PASTE, IDS_PASTE);
92 model->AddSeparator(ui::NORMAL_SEPARATOR);
93 model->AddItemWithStringId(IDC_FIND, IDS_FIND);
94 model->AddItemWithStringId(IDC_PRINT, IDS_PRINT);
96 model->AddSubMenuWithStringId(IDC_ZOOM_MENU, IDS_ZOOM_MENU,
99 model->AddSubMenuWithStringId(IDC_ENCODING_MENU,
103 model->AddSeparator(ui::NORMAL_SEPARATOR);
104 model->AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER);
107 model->AddSeparator(ui::NORMAL_SEPARATOR);
108 model->AddItemWithStringId(IDC_CLOSE_WINDOW, IDS_CLOSE);
111 AppendTeleportMenu(model);
114 void SystemMenuModelBuilder::AddFrameToggleItems(ui::SimpleMenuModel* model) {
117 model->AddSeparator(ui::NORMAL_SEPARATOR);
118 model->AddItem(IDC_DEBUG_FRAME_TOGGLE,
123 void SystemMenuModelBuilder::AppendTeleportMenu(ui::SimpleMenuModel* model) {
152 model->AddSeparator(ui::NORMAL_SEPARATOR);
156 model->AddItem(