Home
last modified time | relevance | path

Searched refs:menu_ (Results 1 – 25 of 49) sorted by relevance

12

/external/chromium/chrome/browser/resources/
Dwrench_menu.js26 this.menu_.selectedItem = this;
36 sendActivate(this.menu_.getMenuItemIndexOf(this),
54 this.menu_ = menu;
103 sendActivate(this.menu_.getMenuItemIndexOf(this),
113 this.menu_.selectedItem = this;
125 this.menu_.config_.IDS_EDIT2;
130 this.menu_.addLabelTo(
131 this, this.menu_.config_.IDS_CUT, this.cut_,
133 this.menu_.addHandlers(this, this.cut_);
150 this.menu_ = menu;
[all …]
Dmenu.js57 this.menu_ = menu;
88 this.menu_.selectedItem = this;
99 this.menu_.openSubmenu(this);
102 sendActivate(this.menu_.getMenuItemIndexOf(this),
112 [String(this.menu_.getMenuItemIndexOf(this)),
123 this.menu_.addHandlers(this, this);
127 this.menu_.addLabelTo(this, attrs.label, label,
148 this.style.backgroundImage = 'url(' + this.menu_.config_.arrowUrl + ')';
163 this.menu_.config_.radioOnUrl :
164 this.menu_.config_.radioOffUrl;
[all …]
/external/chromium/chrome/browser/ui/views/infobars/
Dextension_infobar.cc40 menu_(NULL), in ExtensionInfoBar()
62 gfx::Size menu_size = menu_->GetPreferredSize(); in Layout()
63 menu_->SetBounds(StartX(), OffsetY(menu_size), menu_size.width(), in Layout()
67 menu_->bounds().right() + kMenuHorizontalMargin, 0, in Layout()
74 if (!is_add || (child != this) || (menu_ != NULL)) { in ViewHierarchyChanged()
79 menu_ = new views::MenuButton(NULL, std::wstring(), this, false); in ViewHierarchyChanged()
80 menu_->SetVisible(false); in ViewHierarchyChanged()
81 AddChildView(menu_); in ViewHierarchyChanged()
106 return menu_->GetPreferredSize().width() + kMenuHorizontalMargin; in ContentMinimumWidth()
162 menu_->SetIcon(canvas->ExtractBitmap()); in OnImageLoaded()
[all …]
/external/chromium/chrome/browser/ui/views/bookmarks/
Dbookmark_context_menu.cc30 ALLOW_THIS_IN_INITIALIZER_LIST(menu_(new views::MenuItemView(this))), in BookmarkContextMenu()
47 menu_->RunMenuAt(parent_window_, NULL, gfx::Rect(point.x(), point.y(), 0, 0), in RunMenuAt()
78 menu_->Cancel(); in CloseMenu()
82 menu_->AppendMenuItemWithLabel( in AddItemWithStringId()
87 menu_->AppendSeparator(); in AddSeparator()
91 menu_->AppendMenuItem(command_id, in AddCheckboxItem()
Dbookmark_menu_controller_views.cc45 menu_(NULL), in BookmarkMenuController()
50 menu_ = CreateMenu(node, start_child_index); in BookmarkMenuController()
80 menu_->RunMenuForDropAt(parent_, bounds, position); in RunMenuAt()
82 menu_->RunMenuAt(parent_, button, bounds, position, false); in RunMenuAt()
88 menu_->Cancel(); in Cancel()
271 menu_ = alt_menu; in GetSiblingMenu()
285 menu_->Cancel(); in BookmarkModelChanged()
Dbookmark_context_menu.h40 views::MenuItemView* menu() const { return menu_.get(); } in menu()
68 scoped_ptr<views::MenuItemView> menu_; variable
/external/chromium/chrome/browser/ui/gtk/bookmarks/
Dbookmark_menu_controller_gtk.cc82 menu_ = gtk_menu_new(); in BookmarkMenuController()
83 g_object_ref_sink(menu_); in BookmarkMenuController()
84 BuildMenu(node, start_child_index, menu_); in BookmarkMenuController()
85 signals_.Connect(menu_, "hide", in BookmarkMenuController()
87 gtk_widget_show_all(menu_); in BookmarkMenuController()
93 gtk_widget_hide(menu_); in ~BookmarkMenuController()
94 gtk_widget_destroy(menu_); in ~BookmarkMenuController()
95 g_object_unref(menu_); in ~BookmarkMenuController()
107 gtk_menu_popup(GTK_MENU(menu_), NULL, NULL, in Popup()
113 gtk_menu_popdown(GTK_MENU(menu_)); in BookmarkModelChanged()
[all …]
Dbookmark_editor_gtk.cc60 menu_.reset(new views::Menu2(menu_model_.get())); in ContextMenuController()
62 menu_.reset(new MenuGtk(NULL, menu_model_.get())); in ContextMenuController()
72 menu_->RunContextMenuAt(point); in RunMenu()
74 menu_->PopupAsContext(point, event_time); in RunMenu()
81 menu_->CancelMenu(); in Cancel()
83 menu_->Cancel(); in Cancel()
170 scoped_ptr<views::Menu2> menu_; member in BookmarkEditorGtk::ContextMenuController
172 scoped_ptr<MenuGtk> menu_; member in BookmarkEditorGtk::ContextMenuController
Dbookmark_menu_controller_gtk.h46 GtkWidget* widget() { return menu_; } in widget()
120 GtkWidget* menu_; variable
/external/chromium/chrome/browser/ui/views/extensions/
Dbrowser_action_overflow_menu_controller.cc30 menu_.reset(new views::MenuItemView(this)); in BrowserActionOverflowMenuController()
31 menu_->set_has_icons(true); in BrowserActionOverflowMenuController()
37 menu_->AppendMenuItemWithIcon( in BrowserActionOverflowMenuController()
46 menu_->SetTooltip(tooltip, command_id); in BrowserActionOverflowMenuController()
70 menu_->RunMenuForDropAt(window, bounds, anchor); in RunMenu()
72 menu_->RunMenuAt(window, menu_button_, bounds, anchor, false); in RunMenu()
81 menu_->Cancel(); in CancelMenu()
110 menu_->Cancel(); in ShowContextMenu()
/external/chromium/chrome/browser/ui/gtk/status_icons/
Dstatus_icon_gtk.cc58 menu_.reset(); in UpdatePlatformContextMenu()
60 menu_.reset(new MenuGtk(NULL, model)); in UpdatePlatformContextMenu()
65 if (menu_.get()) in OnPopupMenu()
66 menu_->PopupAsContextForStatusIcon(time, button, icon_); in OnPopupMenu()
/external/chromium/chrome/browser/ui/views/tab_contents/
Drender_view_context_menu_views.h24 return (menu_.get() ? menu_->GetNativeMenu() : NULL); in GetMenuHandle()
42 scoped_ptr<views::Menu2> menu_;
Drender_view_context_menu_views.cc29 menu_->RunContextMenuAt(gfx::Point(x, y)); in RunMenuAt()
39 menu_->UpdateStates(); in UpdateMenuItemStates()
46 menu_.reset(new views::Menu2(&menu_model_)); in PlatformInit()
/external/chromium/chrome/browser/chromeos/login/
Dlanguage_switch_menu.cc67 menu_.reset(new views::Menu2(&menu_model_)); in InitLanguageMenu()
79 DCHECK(menu_ != NULL); in SetFirstLevelMenuWidth()
80 menu_->SetMinimumWidth(width); in SetFirstLevelMenuWidth()
150 DCHECK(menu_ != NULL); in RunMenu()
162 menu_->RunMenuAt(new_pt, menu_alignment_); in RunMenu()
/external/chromium/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_menu_bridge_unittest.mm25 menu_([[NSMenu alloc] initWithTitle:@"test"]) {
29 scoped_nsobject<NSMenu> menu_;
34 return menu_;
93 NSMenu* menu = bridge_->menu_.get();
115 NSMenu* menu = bridge_->menu_.get();
141 bridge_->UpdateMenu(bridge_->menu_);
148 bridge_->UpdateMenu(bridge_->menu_);
150 bridge_->UpdateMenu(bridge_->menu_);
158 bridge_->UpdateMenu(bridge_->menu_);
166 NSMenu* menu = bridge_->menu_.get();
[all …]
/external/chromium/chrome/browser/ui/gtk/
Dmenu_gtk.cc282 menu_(gtk_custom_menu_new()), in MenuGtk()
285 g_object_ref_sink(menu_); in MenuGtk()
293 gtk_widget_destroy(menu_); in ~MenuGtk()
294 g_object_unref(menu_); in ~MenuGtk()
303 g_signal_connect(menu_, "show", G_CALLBACK(OnMenuShowThunk), this); in ConnectSignalHandlers()
304 g_signal_connect(menu_, "hide", G_CALLBACK(OnMenuHiddenThunk), this); in ConnectSignalHandlers()
333 gtk_menu_shell_append(GTK_MENU_SHELL(menu_), menu_item); in AppendSeparator()
342 return AppendMenuItemToMenu(command_id, NULL, menu_item, menu_, true); in AppendMenuItem()
374 gtk_menu_popup(GTK_MENU(menu_), NULL, NULL, in PopupForWidget()
383 gtk_menu_popup(GTK_MENU(menu_), NULL, NULL, in PopupAsContext()
[all …]
Dback_forward_button_gtk.cc82 menu_.reset(new MenuGtk(this, menu_model_.get())); in ShowBackForwardMenu()
84 menu_->PopupForWidget(widget(), button, event_time); in ShowBackForwardMenu()
/external/chromium/chrome/browser/resources/shared/js/cr/ui/
Dcontext_menu_handler.js22 menu_: null, property in ContextMenuHandler
24 return this.menu_;
34 this.menu_ = menu;
65 this.menu_ = null;
Dmenu_button.js41 return this.menu_;
49 this.menu_ = menu;
/external/chromium/chrome/browser/ui/cocoa/
Dmenu_button_unittest.mm13 scoped_nsobject<NSMenu> menu_; field
24 menu_.reset([menu retain]);
38 EXPECT_EQ(menu_.get(), menu);
52 EXPECT_EQ(menu_.get(), menu);
Dmenu_controller.mm176 if (!menu_ && model_) {
177 menu_.reset([[self menuFromModel:model_] retain]);
178 [menu_ setDelegate:self];
186 [menu_ insertItem:blankItem atIndex:0];
189 return menu_.get();
/external/chromium/chrome/browser/ui/views/
Dprofile_menu_model.cc19 menu_.reset(new views::Menu2(this)); in ProfileMenuModel()
26 menu_->RunMenuAt(point, views::Menu2::ALIGN_TOPRIGHT); in RunMenuAt()
/external/chromium/chrome/browser/chromeos/status/
Dinput_method_menu_button.cc69 menu_(new MenuImpl(this, GetPrefService(host), host->GetScreenMode())) { in InputMethodMenuButton()
96 menu_->RunMenu(unused_source, pt); in RunMenu()
140 menu_->PrepareMenu(); in UpdateUI()
/external/chromium/webkit/glue/
Dwebmenurunner_mac.mm48 menu_.reset([[NSMenu alloc] initWithTitle:@""]);
49 [menu_ setAutoenablesItems:NO];
61 [menu_ addItem:[NSMenuItem separatorItem]];
66 NSMenuItem* menuItem = [menu_ addItemWithTitle:title
103 [menuItem setTag:[menu_ numberOfItems] - 1];
127 [button setMenu:menu_];
/external/chromium/chrome/browser/ui/gtk/tabs/
Dtab_gtk.cc40 menu_.reset(new MenuGtk(this, &model_)); in ContextMenuController()
46 menu_->PopupAsContext(point, event_time); in RunMenu()
51 menu_->Cancel(); in Cancel()
95 scoped_ptr<MenuGtk> menu_; member in TabGtk::ContextMenuController

12