Home
last modified time | relevance | path

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

12

/external/chromium_org/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];
112 TestableToolbarButton* button_;
125 TEST_VIEW(ToolbarButtonTest, button_)
130 [button_ otherMouseDown:other_down_in_view];
131 EXPECT_EQ(NSOffState, [button_ state]);
[all …]
Dreload_button_unittest.mm34 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_org/chrome/browser/ui/cocoa/constrained_window/
Dconstrained_window_button_unittest.mm15 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_org/ui/base/cocoa/
Dhover_image_button_unittest.mm18 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_org/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 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/
Ddraggable_button_mixin.mm52 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 …]
Dmenu_button_unittest.mm65 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 …]
Dhover_close_button_unittest.mm16 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/
Dautofill_pop_up_button_unittest.mm16 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_org/chrome/browser/ui/cocoa/profiles/
Davatar_label_button_unittest.mm16 button_.reset([[AvatarLabelButton alloc] initWithFrame:content_frame]);
17 [[test_window() contentView] addSubview:button_];
21 base::scoped_nsobject<AvatarLabelButton> button_;
24 TEST_VIEW(AvatarLabelButtonTest, button_)
27 EXPECT_FALSE([[button_ cell] isHighlighted]);
28 [button_ display];
29 [[button_ cell] setHighlighted:YES];
30 [button_ display];
Davatar_button_controller.mm153 button_.reset(hoverButton);
156 [button_ setCell:cell.get()];
164 [button_ setWantsLayer:YES];
165 [self setView:button_];
167 [button_ setBezelStyle:NSShadowlessSquareBezelStyle];
168 [button_ setButtonType:NSMomentaryChangeButton];
169 [button_ setBordered:YES];
171 [button_ setAutoresizingMask:NSViewMinXMargin | NSViewMinYMargin];
172 [button_ setTarget:self];
173 [button_ setAction:@selector(buttonClicked:)];
[all …]
Davatar_icon_controller.mm66 button_.reset([[NSButton alloc] initWithFrame:NSMakeRect(
68 NSButtonCell* cell = [button_ cell];
69 [button_ setButtonType:NSMomentaryLightButton];
71 [button_ setImagePosition:NSImageOnly];
76 [button_ setTitle:nil];
82 [button_ setBordered:NO];
83 [button_ setTarget:self];
84 [button_ setAction:@selector(buttonClicked:)];
132 [button_
136 [[self view] addSubview:button_];
[all …]
/external/chromium_org/ash/system/chromeos/virtual_keyboard/
Dvirtual_keyboard_tray.cc27 button_(NULL) { in VirtualKeyboardTray()
28 button_ = new views::ImageButton(this); in VirtualKeyboardTray()
29 button_->SetImage(views::CustomButton::STATE_NORMAL, in VirtualKeyboardTray()
32 button_->SetImageAlignment(views::ImageButton::ALIGN_CENTER, in VirtualKeyboardTray()
35 tray_container()->AddChildView(button_); in VirtualKeyboardTray()
57 const gfx::ImageSkia image = button_->GetImage( in SetShelfAlignment()
68 gfx::Insets insets = button_->GetInsets(); in SetShelfAlignment()
74 button_->SetBorder(views::Border::CreateEmptyBorder( in SetShelfAlignment()
101 DCHECK_EQ(button_, sender); in ButtonPressed()
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dtoolbar_button_test.cc18 : 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_org/ui/views/accessibility/
Dnative_view_accessibility_unittest.cc33 button_.reset(new TestButton()); in SetUp()
34 button_->SetSize(gfx::Size(20, 20)); in SetUp()
35 button_accessibility_ = NativeViewAccessibility::Create(button_.get()); in SetUp()
38 button_->AddChildView(label_.get()); in SetUp()
51 scoped_ptr<TestButton> button_; member in views::test::NativeViewAccessibilityTest
65 EXPECT_EQ(button_->GetBoundsInScreen(), bounds); in TEST_F()
72 EXPECT_EQ(button_->GetNativeViewAccessible(), in TEST_F()
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/
Domnibox_popup_cell_unittest.mm20 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/views/tabs/
Dmedia_indicator_button.cc23 : button_(button) {} in FadeAnimationDelegate()
29 button_->SchedulePaint(); in AnimationProgressed()
33 button_->showing_media_state_ = button_->media_state_; in AnimationCanceled()
34 button_->SchedulePaint(); in AnimationCanceled()
38 button_->showing_media_state_ = button_->media_state_; in AnimationEnded()
39 button_->SchedulePaint(); in AnimationEnded()
42 MediaIndicatorButton* const button_; member in MediaIndicatorButton::FadeAnimationDelegate
/external/chromium_org/chrome/browser/ui/cocoa/download/
Ddownload_item_cell_unittest.mm28 button_.reset([[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 100, 100)]);
29 [[test_window() contentView] addSubview:button_];
31 [button_ setCell:cell_];
36 base::scoped_nsobject<NSButton> button_;
73 [button_ lockFocus];
74 [cell_ drawWithFrame:[button_ bounds]
75 inView:button_];
76 [button_ unlockFocus];
/external/chromium_org/chrome/browser/ui/views/
Dmenu_test_base.cc16 button_(NULL), in MenuTestBase()
44 button_ = new views::MenuButton( in SetUp()
65 return button_; in CreateContentsView()
69 Click(button_, CreateEventTask(this, &MenuTestBase::DoTestWithMenuOpen)); in DoTestOnMessageLoop()
73 return button_->GetPreferredSize(); in GetPreferredSize()
82 button_, in OnMenuButtonClicked()
Delevation_icon_setter.cc59 : button_(button), in ElevationIconSetter()
74 button_->SetImage(views::Button::STATE_NORMAL, in SetButtonIcon()
76 button_->SizeToPreferredSize(); in SetButtonIcon()
77 if (button_->parent()) in SetButtonIcon()
78 button_->parent()->Layout(); in SetButtonIcon()
Dmenu_model_adapter_test.cc194 button_(NULL), in MenuModelAdapterTest()
205 button_ = new views::MenuButton( in SetUp()
222 return button_; in CreateContentsView()
226 return button_->GetPreferredSize(); in GetPreferredSize()
236 button_, in OnMenuButtonClicked()
244 Click(button_, CreateEventTask(this, &MenuModelAdapterTest::Step1)); in DoTestOnMessageLoop()
282 Click(button_, CreateEventTask(this, &MenuModelAdapterTest::Step4)); in Step3()
305 views::MenuButton* button_; member in MenuModelAdapterTest
/external/chromium_org/chrome/common/extensions/docs/examples/api/browsingData/basic/
Dpopup.js19 this.button_ = document.getElementById('button');
31 button_: null, property in PopupController
48 this.button_.addEventListener('click', this.handleClick_.bind(this));
110 this.button_.setAttribute('disabled', 'disabled');
111 this.button_.innerText = 'Clearing...';
/external/chromium_org/ui/file_manager/file_manager/foreground/js/
Dscrollbar.js50 this.button_ = util.createChild(this, 'scrollbar-button', 'div');
54 this.button_.addEventListener('mousedown',
97 this.button_.classList.add('scrolling');
104 this.button_.classList.remove('scrolling');
129 this.buttonPressedPosition_ = this.button_.offsetTop - this.view_.offsetTop;
130 this.button_.classList.add('pressed');
144 this.button_.classList.remove('pressed');
227 this.button_.style.top = buttonTop + 'px';
228 this.button_.style.height = buttonSize + 'px';
/external/chromium_org/remoting/webapp/
Dmenu_button.js29 this.button_ = /** @type {HTMLElement} */
67 that.button_.classList.remove(remoting.MenuButton.BUTTON_ACTIVE_CLASS_);
78 that.button_.classList.add(remoting.MenuButton.BUTTON_ACTIVE_CLASS_);
82 this.button_.addEventListener('click', onClick, false);
91 return this.button_;
/external/chromium_org/ash/system/chromeos/session/
Dlogout_button_tray.cc97 button_(NULL), in LogoutButtonTray()
100 button_ = new LogoutButton(this); in LogoutButtonTray()
101 tray_container()->AddChildView(button_); in LogoutButtonTray()
117 return button_->GetText(); in GetAccessibleNameForTray()
139 DCHECK_EQ(sender, button_); in ButtonPressed()
154 button_->SetText(title); in UpdateAfterLoginStatusChange()
155 button_->SetAccessibleName(title); in UpdateAfterLoginStatusChange()

12