Home
last modified time | relevance | path

Searched refs:button_ (Results 1 – 24 of 24) sorted by relevance

/external/chromium/chrome/browser/ui/cocoa/toolbar/
Dtoolbar_button_unittest.mm59 button_ = button.get();
61 [button_ setTag:IDC_HOME];
62 [button_ setTarget:button_];
63 [button_ setAction:@selector(doAction:)];
64 [[test_window() contentView] addSubview:button_];
66 NSRect bounds = [button_ bounds];
92 TestableToolbarButton* button_;
105 TEST_VIEW(ToolbarButtonTest, button_)
110 [button_ otherMouseDown:other_down_in_view];
111 EXPECT_EQ(NSOffState, [button_ state]);
[all …]
Dreload_button_unittest.mm29 button_ = button.get();
32 [button_ setTag:IDC_RELOAD];
33 [button_ awakeFromNib];
35 [[test_window() contentView] addSubview:button_];
38 ReloadButton* button_;
41 TEST_VIEW(ReloadButtonTest, button_)
45 EXPECT_TRUE([[button_ trackingAreas] containsObject:[button_ trackingArea]]);
47 EXPECT_FALSE([button_ isMouseInside]);
48 [button_ mouseEntered:nil];
49 EXPECT_TRUE([button_ isMouseInside]);
[all …]
Dback_forward_menu_controller.mm32 button_ = button;
39 [button_ setAttachedMenu:backForwardMenu_];
40 [button_ setOpenMenuOnClick:NO];
Dback_forward_menu_controller.h29 MenuButton* button_; // Weak; comes from nib. variable
/external/chromium/chrome/browser/ui/cocoa/
Dhover_image_button_unittest.mm24 button_ = button.get();
25 [[test_window() contentView] addSubview:button_];
32 HoverImageButton* button_;
40 [button_ setDefaultImage:image];
41 [button_ setHoverImage:hover];
43 [button_ mouseEntered:nil];
44 [button_ drawRect:[button_ frame]];
45 EXPECT_EQ([button_ image], hover);
46 [button_ mouseExited:nil];
47 [button_ drawRect:[button_ frame]];
[all …]
Dprofile_menu_button_unittest.mm18 button_ = button.get();
19 [[test_window() contentView] addSubview:button_];
22 ProfileMenuButton* button_;
74 TEST_VIEW(ProfileMenuButtonTest, button_);
77 NSRect mouseRect = NSInsetRect([button_ frame], 1, 1);
83 EXPECT_NSEQ([button_ hitTest:topRight], button_);
84 EXPECT_NSEQ([button_ hitTest:bottomRight], NULL);
85 EXPECT_NSEQ([button_ hitTest:outsidePoint], NULL);
88 [button_ setProfileDisplayName:@"Test"];
89 [button_ setShouldShowProfileDisplayName:YES];
[all …]
Dmenu_button_unittest.mm66 button_ = button.get();
69 [button_ setCell:cell.get()];
70 [[test_window() contentView] addSubview:button_];
82 MenuButton* button_;
85 TEST_VIEW(MenuButtonTest, button_);
92 [button_ setAttachedMenu:menu];
93 EXPECT_TRUE([button_ attachedMenu]);
105 [button_ setAttachedMenu:menu];
106 [button_ setOpenMenuOnClick:YES];
112 [button_ performClick:nil];
/external/chromium/chrome/browser/ui/gtk/
Dhover_controller_gtk.cc15 button_(button) { in HoverControllerGtk()
16 g_object_ref(button_); in HoverControllerGtk()
17 gtk_chrome_button_set_hover_state(GTK_CHROME_BUTTON(button_), 0); in HoverControllerGtk()
19 signals_.Connect(button_, "enter-notify-event", in HoverControllerGtk()
21 signals_.Connect(button_, "leave-notify-event", in HoverControllerGtk()
23 signals_.Connect(button_, "destroy", in HoverControllerGtk()
25 signals_.Connect(button_, "hierarchy-changed", in HoverControllerGtk()
29 if (g_object_get_data(G_OBJECT(button_), kHoverControllerGtkKey)) in HoverControllerGtk()
58 gtk_chrome_button_set_hover_state(GTK_CHROME_BUTTON(button_), -1.0); in Destroy()
60 g_object_set_data(G_OBJECT(button_), kHoverControllerGtkKey, NULL); in Destroy()
[all …]
Dback_forward_button_gtk.cc45 button_.reset(new CustomDrawButton( in BackForwardButtonGtk()
74 button_->UnsetPaintOverride(); in StoppedShowing()
83 button_->SetPaintOverride(GTK_STATE_ACTIVE); in ShowBackForwardMenu()
Dback_forward_button_gtk.h31 GtkWidget* widget() { return button_->widget(); } in widget()
53 scoped_ptr<CustomDrawButton> button_; variable
Dhover_controller_gtk.h25 GtkWidget* button() { return button_; } in button()
60 GtkWidget* button_; variable
Dbrowser_actions_toolbar_gtk.cc95 button_.reset(new CustomDrawButton( in BrowserActionButton()
143 GtkWidget* button() { return button_->widget(); } in button()
219 button_->UnsetPaintOverride(); in StoppedShowing()
279 action->button_->SetPaintOverride(GTK_STATE_ACTIVE); in OnButtonPress()
329 scoped_ptr<CustomDrawButton> button_; member in BrowserActionButton
/external/chromium/chrome/browser/ui/cocoa/wrench_menu/
Dwrench_menu_button_cell_unittest.mm28 button_.reset([[TestWrenchMenuButton alloc] initWithFrame:frame]);
29 [button_ setBezelStyle:NSSmallSquareBezelStyle];
30 [[button_ cell] setControlSize:NSSmallControlSize];
31 [button_ setTitle:@"Allays"];
32 [button_ setButtonType:NSMomentaryPushInButton];
35 scoped_nsobject<NSButton> button_;
39 ASSERT_TRUE(button_.get());
40 [[test_window() contentView] addSubview:button_.get()];
41 [button_ setNeedsDisplay:YES];
45 ASSERT_TRUE(button_.get());
[all …]
Dmenu_tracked_button_unittest.mm37 button_.reset(
40 [button_ setTarget:listener()];
41 [button_ setAction:@selector(doThat:)];
72 NSButton* button() { return button_.get(); }
75 scoped_nsobject<MenuTrackedButton> button_;
/external/chromium/chrome/browser/ui/views/infobars/
Dtranslate_message_infobar.cc15 button_(NULL) { in TranslateMessageInfoBar()
30 if (button_) { in Layout()
31 gfx::Size button_size = button_->GetPreferredSize(); in Layout()
32 button_->SetBounds(label_->bounds().right() + kButtonInLabelSpacing, in Layout()
47 button_ = CreateTextButton(this, button_text, false); in ViewHierarchyChanged()
48 AddChildView(button_); in ViewHierarchyChanged()
59 if (sender == button_) in ButtonPressed()
66 return (button_ != NULL) ? in ContentMinimumWidth()
67 (button_->GetPreferredSize().width() + kButtonInLabelSpacing) : 0; in ContentMinimumWidth()
Dtranslate_message_infobar.h25 views::TextButton* button_; variable
/external/chromium/chrome/browser/ui/cocoa/extensions/
Dchevron_menu_button_unittest.mm19 button_ = button.get();
20 [[test_window() contentView] addSubview:button_];
23 ChevronMenuButton* button_;
27 TEST_VIEW(ChevronMenuButtonTest, button_);
31 EXPECT_TRUE([[button_ cell] isKindOfClass:[ChevronMenuButtonCell class]]);
36 ChevronMenuButtonCell* cell = [button_ cell];
43 [button_ display];
47 [button_ display];
Dextension_install_dialog_controller.h39 scoped_nsobject<NSString> button_; variable
Dextension_install_dialog_controller.mm93 button_.reset([l10n_util::GetNSString(ExtensionInstallUI::kButtonIds[type])
134 [okButton_ setTitle:button_.get()];
/external/chromium/chrome/browser/chromeos/status/
Dinput_method_menu_button.cc38 : InputMethodMenu(pref_service, screen_mode, false), button_(button) {} in MenuImpl()
46 button_->UpdateUI(input_method_id, name, tooltip, num_active_input_methods); in UpdateUI()
49 return button_->ShouldSupportConfigUI(); in ShouldSupportConfigUI()
52 button_->OpenConfigUI(); in OpenConfigUI()
55 chromeos::InputMethodMenuButton* button_; member in __anon09d1297d0111::MenuImpl
/external/chromium/chrome/browser/automation/
Dui_controls_internal.cc10 : button_(button), state_(state), followup_(followup) { in ClickTask()
17 SendMouseEventsNotifyWhenDone(button_, state_, followup_); in Run()
19 SendMouseEvents(button_, state_); in Run()
Dui_controls_internal.h24 MouseButton button_;
/external/chromium/chrome/browser/ui/views/
Dbrowser_actions_container.cc289 button_ = new BrowserActionButton(extension, panel); in BrowserActionView()
290 button_->SetDragController(panel_); in BrowserActionView()
291 AddChildView(button_); in BrowserActionView()
292 button_->UpdateState(); in BrowserActionView()
296 RemoveChildView(button_); in ~BrowserActionView()
297 button_->Destroy(); in ~BrowserActionView()
303 SkBitmap icon = button_->extension()->browser_action()->GetIcon(tab_id); in GetIconWithBadge()
305 icon = button_->default_icon(); in GetIconWithBadge()
312 button_->extension()->browser_action()->PaintBadge(canvas, bounds, tab_id); in GetIconWithBadge()
326 button_->SetBounds(0, ToolbarView::kVertSpacing, width(), in Layout()
Dbrowser_actions_container.h164 BrowserActionButton* button() { return button_; } in button()
184 BrowserActionButton* button_; variable