/external/chromium/chrome/browser/ui/cocoa/toolbar/ |
D | toolbar_button_unittest.mm | 59 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 …]
|
D | reload_button_unittest.mm | 29 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 …]
|
/external/chromium_org/chrome/browser/ui/cocoa/toolbar/ |
D | toolbar_button_unittest.mm | 59 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]; 112 TestableToolbarButton* button_; 125 TEST_VIEW(ToolbarButtonTest, button_) 130 [button_ otherMouseDown:other_down_in_view]; 131 EXPECT_EQ(NSOffState, [button_ state]); [all …]
|
D | reload_button_unittest.mm | 34 button_ = button.get(); 37 [button_ setTag:IDC_RELOAD]; 38 [button_ awakeFromNib]; 40 [[test_window() contentView] addSubview:button_]; 44 return [[button_ cell] isMouseInside]; 48 [[button_ cell] mouseEntered:nil]; 52 [[button_ cell] mouseExited:nil]; 55 ReloadButton* button_; 58 TEST_VIEW(ReloadButtonTest, button_) 72 [button_ setTarget:mock_target]; [all …]
|
/external/chromium/chrome/browser/ui/cocoa/ |
D | hover_image_button_unittest.mm | 24 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 …]
|
D | profile_menu_button_unittest.mm | 18 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 …]
|
D | menu_button_unittest.mm | 66 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_org/chrome/browser/ui/cocoa/constrained_window/ |
D | constrained_window_button_unittest.mm | 15 button_.reset([[ConstrainedWindowButton alloc] initWithFrame:frame]); 16 [button_ setTitle:@"Abcdefg"]; 17 [button_ sizeToFit]; 18 [[test_window() contentView] addSubview:button_]; 22 base::scoped_nsobject<ConstrainedWindowButton> button_; 25 TEST_VIEW(ConstrainedWindowButtonTest, button_) 29 [[button_ cell] setIsMouseInside:NO]; 30 [button_ display]; 31 [[button_ cell] setIsMouseInside:YES]; 32 [button_ display]; [all …]
|
/external/chromium/chrome/browser/ui/gtk/ |
D | hover_controller_gtk.cc | 15 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 …]
|
/external/chromium_org/chrome/browser/ui/gtk/ |
D | hover_controller_gtk.cc | 16 button_(button) { in HoverControllerGtk() 17 g_object_ref(button_); in HoverControllerGtk() 18 gtk_chrome_button_set_hover_state(GTK_CHROME_BUTTON(button_), 0); in HoverControllerGtk() 20 signals_.Connect(button_, "enter-notify-event", in HoverControllerGtk() 22 signals_.Connect(button_, "leave-notify-event", in HoverControllerGtk() 24 signals_.Connect(button_, "destroy", in HoverControllerGtk() 26 signals_.Connect(button_, "hierarchy-changed", in HoverControllerGtk() 30 if (g_object_get_data(G_OBJECT(button_), kHoverControllerGtkKey)) in HoverControllerGtk() 59 gtk_chrome_button_set_hover_state(GTK_CHROME_BUTTON(button_), -1.0); in Destroy() 61 g_object_set_data(G_OBJECT(button_), kHoverControllerGtkKey, NULL); in Destroy() [all …]
|
/external/chromium_org/ui/base/cocoa/ |
D | hover_image_button_unittest.mm | 18 button_ = button.get(); 19 [[test_window() contentView] addSubview:button_]; 23 [button_ lockFocus]; 24 [button_ drawRect:[button_ bounds]]; 25 [button_ unlockFocus]; 28 HoverImageButton* button_; 35 [button_ setDefaultImage:image]; 36 [button_ setHoverImage:hover]; 38 [button_ mouseEntered:nil]; 40 EXPECT_EQ([button_ image], hover); [all …]
|
/external/chromium/chrome/browser/ui/cocoa/wrench_menu/ |
D | wrench_menu_button_cell_unittest.mm | 28 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 …]
|
/external/chromium_org/chrome/browser/ui/cocoa/wrench_menu/ |
D | wrench_menu_button_cell_unittest.mm | 28 button_.reset([[TestWrenchMenuButton alloc] initWithFrame:frame]); 29 [button_ setBezelStyle:NSSmallSquareBezelStyle]; 30 [[button_ cell] setControlSize:NSSmallControlSize]; 31 [button_ setTitle:@"Allays"]; 32 [button_ setButtonType:NSMomentaryPushInButton]; 35 base::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 …]
|
/external/chromium_org/chrome/browser/ui/cocoa/ |
D | draggable_button_mixin.mm | 52 button_ = button; 73 NSPoint viewLocal = [button_ convertPoint:[theEvent locationInWindow] 74 fromView:[[button_ window] contentView]]; 75 if (NSPointInRect(viewLocal, [button_ bounds])) 76 [button_ performClick:self]; 93 [button_ beginDrag:theEvent]; 121 if ([button_ respondsToSelector:@selector(deltaIndicatesDragStartWithXDelta: 127 DraggableButtonResult result = [button_ 143 if ([button_ respondsToSelector: 150 DraggableButtonResult result = [button_ [all …]
|
D | menu_button_unittest.mm | 65 button_ = button.get(); 68 [button_ setCell:cell.get()]; 69 [[test_window() contentView] addSubview:button_]; 98 MenuButton* button_; 101 TEST_VIEW(MenuButtonTest, button_); 108 [button_ setAttachedMenu:menu]; 109 EXPECT_TRUE([button_ attachedMenu]); 121 [button_ setAttachedMenu:menu]; 122 [button_ setOpenMenuOnClick:YES]; 128 [button_ performClick:nil]; [all …]
|
D | hover_close_button_unittest.mm | 16 button_.reset([[HoverCloseButton alloc] initWithFrame:content_frame]); 17 [[test_window() contentView] addSubview:button_]; 21 base::scoped_nsobject<HoverCloseButton> button_; 28 button_.reset([[WebUIHoverCloseButton alloc] initWithFrame:content_frame]); 29 [[test_window() contentView] addSubview:button_]; 33 base::scoped_nsobject<WebUIHoverCloseButton> button_; 36 TEST_VIEW(HoverCloseButtonTest, button_) 38 TEST_VIEW(WebUIHoverCloseButtonTest, button_)
|
/external/chromium_org/chrome/browser/ui/cocoa/autofill/ |
D | autofill_pop_up_button_unittest.mm | 16 button_.reset([[AutofillPopUpButton alloc] initWithFrame:frame]); 17 [button_ sizeToFit]; 18 [[test_window() contentView] addSubview:button_]; 22 base::scoped_nsobject<AutofillPopUpButton> button_; 27 TEST_VIEW(AutofillPopUpButtonTest, button_) 31 [button_ setValidityMessage:nil]; 32 [button_ display]; 33 [button_ setValidityMessage:@"Something is rotten in the state of Denmark"]; 34 [button_ display];
|
/external/chromium/chrome/browser/ui/views/infobars/ |
D | translate_message_infobar.cc | 15 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()
|
/external/chromium_org/chrome/browser/ui/views/infobars/ |
D | translate_message_infobar.cc | 15 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() 46 button_ = CreateLabelButton(this, button_text, false); in ViewHierarchyChanged() 47 AddChildView(button_); in ViewHierarchyChanged() 60 if (sender == button_) in ButtonPressed() 67 return (button_ != NULL) ? in ContentMinimumWidth() 68 (button_->GetPreferredSize().width() + kButtonInLabelSpacing) : 0; in ContentMinimumWidth()
|
/external/chromium_org/chrome/browser/ui/cocoa/browser/ |
D | avatar_label_button_unittest.mm | 17 button_.reset([[AvatarLabelButton alloc] initWithFrame:content_frame]); 18 [[test_window() contentView] addSubview:button_]; 22 base::scoped_nsobject<AvatarLabelButton> button_; 25 TEST_VIEW(AvatarLabelButtonTest, button_) 28 EXPECT_FALSE([[button_ cell] isHighlighted]); 29 [button_ display]; 30 [[button_ cell] setHighlighted:YES]; 31 [button_ display];
|
/external/chromium_org/chrome/browser/ui/views/toolbar/ |
D | toolbar_button_test.cc | 18 : button_(NULL), in ToolbarButtonDragTest() 28 button_ = new ToolbarButton(NULL, new ui::SimpleMenuModel(this)); in SetUp() 38 return button_; in CreateContentsView() 42 return button_->GetPreferredSize(); in GetPreferredSize() 75 button_, in DoTestOnMessageLoop() 84 views::View::ConvertPointToScreen(button_, &view_center); in Step1() 106 button_, in Step3() 126 ToolbarButton* button_; member in ToolbarButtonDragTest
|
/external/chromium/chrome/browser/ui/cocoa/extensions/ |
D | chevron_menu_button_unittest.mm | 19 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];
|
/external/chromium_org/remoting/webapp/ |
D | menu_button.js | 27 this.button_ = /** @type {HTMLElement} */ (container.querySelector('button')); 50 that.button_.classList.add(remoting.MenuButton.BUTTON_ACTIVE_CLASS_); 51 that.button_.removeEventListener('click', that.onClick_, false); 68 that.button_.classList.remove(remoting.MenuButton.BUTTON_ACTIVE_CLASS_); 72 that.button_.addEventListener('click', that.onClick_, false); 77 this.button_.addEventListener('click', this.onClick_, false);
|
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/ |
D | omnibox_popup_cell_unittest.mm | 20 button_.reset([[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 200, 20)]); 21 [button_ setCell:cell_]; 22 [[test_window() contentView] addSubview:button_]; 27 base::scoped_nsobject<NSButton> button_; 33 TEST_VIEW(OmniboxPopupCellTest, button_); 37 [button_ display]; 44 [button_ display];
|
/external/chromium_org/chrome/browser/ui/gtk/infobars/ |
D | extension_infobar_gtk.cc | 47 button_(NULL), in ExtensionInfoBarGtk() 76 button_ = gtk_chrome_button_new(); in PlatformSpecificSetOwner() 77 gtk_chrome_button_set_use_gtk_rendering(GTK_CHROME_BUTTON(button_), FALSE); in PlatformSpecificSetOwner() 78 g_object_set_data(G_OBJECT(button_), "left-align-popup", in PlatformSpecificSetOwner() 81 gtk_button_set_image(GTK_BUTTON(button_), icon_); in PlatformSpecificSetOwner() 82 gtk_util::CenterWidgetInHBox(hbox(), button_, false, 0); in PlatformSpecificSetOwner() 115 if (button_) { in PlatformSpecificSetOwner() 116 signals()->Connect(button_, "button-press-event", in PlatformSpecificSetOwner() 143 if (button_) in StoppedShowing() 144 gtk_chrome_button_unset_paint_state(GTK_CHROME_BUTTON(button_)); in StoppedShowing() [all …]
|