Home
last modified time | relevance | path

Searched refs:close_button_ (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/chrome/browser/ui/views/app_list/
Dapp_list_dialog_container.cc63 close_button_(NULL) { in AppListDialogContainer()
68 close_button_ = new views::LabelButton(this, base::string16()); in AppListDialogContainer()
69 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in AppListDialogContainer()
71 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in AppListDialogContainer()
73 close_button_->SetImage(views::CustomButton::STATE_PRESSED, in AppListDialogContainer()
75 close_button_->SetBorder(views::Border::NullBorder()); in AppListDialogContainer()
79 close_button_->AddAccelerator(escape); in AppListDialogContainer()
81 AddChildView(close_button_); in AppListDialogContainer()
89 close_button_->SetSize(close_button_->GetPreferredSize()); in Layout()
90 close_button_->SetPosition( in Layout()
[all …]
/external/chromium_org/chrome/browser/ui/views/infobars/
Dinfobar_view.cc73 close_button_(NULL) { in InfoBarView()
198 close_button_->SetPosition(gfx::Point( in Layout()
202 width() - kEdgeItemPadding - close_button_->width()), in Layout()
203 OffsetY(close_button_))); in Layout()
210 if (details.is_add && (details.child == this) && (close_button_ == NULL)) { in ViewHierarchyChanged()
219 close_button_ = new views::ImageButton(this); in ViewHierarchyChanged()
221 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in ViewHierarchyChanged()
223 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in ViewHierarchyChanged()
225 close_button_->SetImage(views::CustomButton::STATE_PRESSED, in ViewHierarchyChanged()
227 close_button_->SizeToPreferredSize(); in ViewHierarchyChanged()
[all …]
/external/chromium_org/apps/ui/views/
Dapp_window_frame_view.cc50 close_button_(NULL), in AppWindowFrameView()
64 close_button_ = new views::ImageButton(this); in Init()
65 close_button_->SetImage( in Init()
68 close_button_->SetImage( in Init()
71 close_button_->SetImage( in Init()
74 close_button_->SetAccessibleName( in Init()
76 AddChildView(close_button_); in Init()
155 int closeButtonOffsetX = (kCaptionHeight - close_button_->height()) / 2; in GetWindowBoundsForClientBounds()
156 int header_width = close_button_->width() + closeButtonOffsetX * 2; in GetWindowBoundsForClientBounds()
208 if (close_button_ && close_button_->visible() && in NonClientHitTest()
[all …]
/external/chromium_org/mojo/examples/wm_flow/wm/
Dframe_controller.cc20 close_button_( in LayoutManager()
33 host->AddChildView(close_button_); in Installed()
37 gfx::Size ps = close_button_->GetPreferredSize(); in Layout()
39 close_button_->SetBounds(bounds.right() - kButtonFrameMargin - ps.width(), in Layout()
44 close_button_->x() - kButtonFrameSpacing - ps.width(), in Layout()
48 close_button_->bounds().bottom() + kButtonFrameMargin, in Layout()
59 if (sender == close_button_) in ButtonPressed()
66 views::Button* close_button_; member in FrameController::LayoutManager
/external/chromium_org/ash/wm/overview/
Dwindow_selector_item.cc174 if (close_button_ && in UpdateCloseButtonBounds()
175 close_button_->GetNativeWindow()->GetRootWindow() != root_window) { in UpdateCloseButtonBounds()
176 close_button_.reset(); in UpdateCloseButtonBounds()
179 if (!close_button_) { in UpdateCloseButtonBounds()
180 close_button_.reset(CreateCloseWindowButton(root_window, this)); in UpdateCloseButtonBounds()
181 gfx::Rect close_button_rect(close_button_->GetNativeWindow()->bounds()); in UpdateCloseButtonBounds()
187 close_button_->GetNativeWindow()->SetBounds(close_button_rect); in UpdateCloseButtonBounds()
188 close_button_->GetNativeWindow()->SetTransform(close_button_transform); in UpdateCloseButtonBounds()
191 ui::Layer* layer = close_button_->GetNativeWindow()->layer(); in UpdateCloseButtonBounds()
209 close_button_->GetNativeWindow()->layer()->GetAnimator()); in UpdateCloseButtonBounds()
[all …]
/external/chromium_org/ash/frame/caption_buttons/
Dframe_caption_button_container_view.cc117 close_button_(NULL) { in FrameCaptionButtonContainerView()
139 close_button_ = new FrameCaptionButton(this, CAPTION_BUTTON_ICON_CLOSE); in FrameCaptionButtonContainerView()
140 close_button_->SetAccessibleName( in FrameCaptionButtonContainerView()
142 AddChildView(close_button_); in FrameCaptionButtonContainerView()
163 minimize_button_, size_button_, close_button_ in SetButtonImages()
180 close_button_->set_paint_as_active(paint_as_active); in SetPaintAsActive()
189 if (close_button_->visible() && in NonClientHitTest()
190 ConvertPointToViewAndHitTest(this, close_button_, point)) { in NonClientHitTest()
221 return gfx::Size(width, close_button_->GetPreferredSize().height()); in GetPreferredSize()
343 } else if (sender == close_button_) { in ButtonPressed()
[all …]
Dframe_caption_button_container_view.h68 return container_view_->close_button_; in close_button()
164 FrameCaptionButton* close_button_; variable
/external/chromium_org/chrome/browser/ui/views/
Dfind_bar_view.cc83 close_button_(NULL) { in FindBarView()
136 close_button_ = new views::ImageButton(this); in FindBarView()
137 close_button_->set_tag(CLOSE_TAG); in FindBarView()
138 close_button_->SetFocusable(true); in FindBarView()
139 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in FindBarView()
141 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in FindBarView()
143 close_button_->SetImage(views::CustomButton::STATE_PRESSED, in FindBarView()
145 close_button_->SetTooltipText( in FindBarView()
147 close_button_->SetAccessibleName( in FindBarView()
149 close_button_->SetAnimationDuration(0); in FindBarView()
[all …]
Dopen_pdf_in_reader_bubble_view.cc23 close_button_(NULL) { in OpenPDFInReaderBubbleView()
58 close_button_ = new views::LabelButton(this, model_->GetCancelButtonText()); in Init()
59 close_button_->SetStyle(views::Button::STYLE_BUTTON); in Init()
61 layout->AddView(close_button_); in Init()
66 DCHECK_EQ(close_button_, sender); in ButtonPressed()
Dcontent_setting_bubble_contents.cc152 close_button_(NULL) { in ContentSettingBubbleContents()
398 close_button_ = in Init()
400 close_button_->SetStyle(views::Button::STYLE_BUTTON); in Init()
401 layout->AddView(close_button_); in Init()
427 DCHECK_EQ(sender, close_button_); in ButtonPressed()
/external/chromium_org/chrome/browser/ui/views/download/
Ddownload_shelf_view.cc98 close_button_(NULL), in DownloadShelfView()
174 AdjustSize(close_button_, &prefsize); in GetPreferredSize()
223 gfx::Size close_button_size = close_button_->GetPreferredSize(); in Layout()
246 close_button_->SetBounds(next_x, y, in Layout()
299 close_button_ = new views::ImageButton(this); in ViewHierarchyChanged()
300 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in ViewHierarchyChanged()
302 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in ViewHierarchyChanged()
304 close_button_->SetImage(views::CustomButton::STATE_PRESSED, in ViewHierarchyChanged()
306 close_button_->SetAccessibleName( in ViewHierarchyChanged()
308 AddChildView(close_button_); in ViewHierarchyChanged()
[all …]
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab_unittest.cc192 tab.close_button_->bounds().x() + in CheckForExpectedLayoutAndVisibilityOfElements()
193 tab.close_button_->GetInsets().left()); in CheckForExpectedLayoutAndVisibilityOfElements()
200 tab.close_button_->bounds().x() + in CheckForExpectedLayoutAndVisibilityOfElements()
201 tab.close_button_->GetInsets().left()); in CheckForExpectedLayoutAndVisibilityOfElements()
203 EXPECT_LE(tab.close_button_->bounds().right(), contents_bounds.right()); in CheckForExpectedLayoutAndVisibilityOfElements()
204 EXPECT_LE(contents_bounds.y(), tab.close_button_->bounds().y()); in CheckForExpectedLayoutAndVisibilityOfElements()
205 EXPECT_LE(tab.close_button_->bounds().bottom(), contents_bounds.bottom()); in CheckForExpectedLayoutAndVisibilityOfElements()
326 gfx::Insets close_button_insets = tab.close_button_->GetInsets(); in TEST_P()
328 gfx::Insets close_button_insets_2 = tab.close_button_->GetInsets(); in TEST_P()
335 EXPECT_EQ(50, tab.close_button_->bounds().height()); in TEST_P()
Dtab.cc416 close_button_(NULL), in Tab()
444 close_button_ = new TabCloseButton(this); in Tab()
446 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in Tab()
448 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in Tab()
450 close_button_->SetImage(views::CustomButton::STATE_PRESSED, in Tab()
452 close_button_->SetAccessibleName( in Tab()
456 close_button_->SetAnimationDuration(0); in Tab()
457 AddChildView(close_button_); in Tab()
672 DCHECK_EQ(close_button_, sender); in ButtonPressed()
767 close_button_->SetBorder(views::Border::NullBorder()); in Layout()
[all …]
Dtab_strip_unittest.cc146 gfx::RectF bounds_f = tab->close_button_->GetContentsBounds(); in GetTabCloseHitTestMask()
148 bounds_f = tab->close_button_->GetLocalBounds(); in GetTabCloseHitTestMask()
149 views::View::ConvertRectToTarget(tab->close_button_, tab, &bounds_f); in GetTabCloseHitTestMask()
383 views::ImageButton* left_close = left_tab->close_button_; in TEST_F()
413 views::ImageButton* active_close = active_tab->close_button_; in TEST_F()
445 views::ImageButton* most_right_close = most_right_tab->close_button_; in TEST_F()
492 views::ImageButton* left_close = left_tab->close_button_; in TEST_F()
/external/chromium_org/chrome/browser/ui/views/frame/
Dopaque_browser_frame_view_layout_unittest.cc179 close_button_ = InitWindowCaptionButton( in SetUp()
249 EXPECT_EQ("453,1 43x18", close_button_->bounds().ToString()); in ExpectBasicWindowBounds()
261 views::ImageButton* close_button_; member in OpaqueBrowserFrameViewLayoutTest
304 EXPECT_EQ("454,0 46x18", close_button_->bounds().ToString()); in TEST_F()
330 EXPECT_EQ("454,0 46x20", close_button_->bounds().ToString()); in TEST_F()
355 EXPECT_EQ("4,1 43x18", close_button_->bounds().ToString()); in TEST_F()
376 EXPECT_EQ("0,0 0x0", close_button_->bounds().ToString()); in TEST_F()
398 EXPECT_EQ("0,0 0x0", close_button_->bounds().ToString()); in TEST_F()
455 EXPECT_EQ("4,1 43x18", close_button_->bounds().ToString()); in TEST_F()
507 EXPECT_EQ("0,0 0x0", close_button_->bounds().ToString()); in TEST_F()
Dopaque_browser_frame_view_layout.cc115 close_button_(NULL), in OpaqueBrowserFrameViewLayout()
493 close_button_->SetVisible(true); in ConfigureButton()
494 SetBoundsForButton(host, close_button_, alignment, caption_y); in ConfigureButton()
510 close_button_->SetVisible(false); in HideButton()
538 button == close_button_); in SetBoundsForButton()
621 close_button_ = static_cast<views::ImageButton*>(view); in SetView()
Dopaque_browser_frame_view.h104 views::ImageButton* close_button() const { return close_button_; } in close_button()
167 views::ImageButton* close_button_; variable
/external/chromium_org/chrome/browser/ui/views/panels/
Dpanel_frame_view.cc245 close_button_(NULL), in PanelFrameView()
259 close_button_ = new views::ImageButton(this); in Init()
260 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in Init()
262 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in Init()
264 close_button_->SetImage(views::CustomButton::STATE_PRESSED, in Init()
266 close_button_->SetImageAlignment(views::ImageButton::ALIGN_CENTER, in Init()
270 close_button_->SetTooltipText(tooltip_text); in Init()
271 AddChildView(close_button_); in Init()
425 if (close_button_ && close_button_->visible() && in NonClientHitTest()
426 close_button_->GetMirroredBounds().Contains(point)) in NonClientHitTest()
[all …]
Dpanel_frame_view.h50 views::ImageButton* close_button() const { return close_button_; } in close_button()
111 views::ImageButton* close_button_; variable
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_bubble_view.cc129 HandleButtonPressed(close_button_); in AcceleratorPressed()
164 close_button_ = new views::LabelButton( in Init()
166 close_button_->SetStyle(views::Button::STYLE_BUTTON); in Init()
167 close_button_->SetIsDefault(true); in Init()
238 layout->AddView(close_button_); in Init()
283 close_button_(NULL), in BookmarkBubbleView()
337 DCHECK_EQ(close_button_, sender); in HandleButtonPressed()
/external/chromium_org/chrome/browser/ui/views/extensions/
Dextension_installed_bubble_view.cc226 close_button_ = new views::ImageButton(this); in InstalledBubbleContent()
227 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in InstalledBubbleContent()
229 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in InstalledBubbleContent()
231 close_button_->SetImage(views::CustomButton::STATE_PRESSED, in InstalledBubbleContent()
233 AddChildView(close_button_); in InstalledBubbleContent()
238 DCHECK_EQ(sender, close_button_); in ButtonPressed()
460 close_button_->GetPreferredSize().width(); in Layout()
462 sz = close_button_->GetPreferredSize(); in Layout()
465 close_button_->SetBounds(x - 1, y - 1, sz.width(), sz.height()); in Layout()
509 views::ImageButton* close_button_; member in InstalledBubbleContent
/external/chromium_org/ui/message_center/views/
Dmessage_view.cc102 close_button_.reset(close); in MessageView()
141 close_button_->RequestFocus(); in RequestFocusOnCloseButton()
184 DCHECK_EQ(this, close_button_->parent()); in OnPaint()
209 gfx::Size close_size(close_button_->GetPreferredSize()); in Layout()
214 close_button_->SetBoundsRect(close_rect); in Layout()
Dmessage_view.h103 views::ImageButton* close_button() { return close_button_.get(); } in close_button()
111 scoped_ptr<views::ImageButton> close_button_; variable
/external/chromium_org/chrome/browser/ui/views/sync/
Done_click_signin_bubble_view.cc112 close_button_(NULL), in OneClickSigninBubbleView()
234 close_button_ = new views::ImageButton(this); in InitDialogContent()
235 close_button_->SetImage(views::ImageButton::STATE_NORMAL, in InitDialogContent()
237 close_button_->SetImage(views::ImageButton::STATE_HOVERED, in InitDialogContent()
239 close_button_->SetImage(views::ImageButton::STATE_PRESSED, in InitDialogContent()
242 layout->AddView(close_button_); in InitDialogContent()
394 if (sender == close_button_) in ButtonPressed()
/external/chromium_org/ui/views/window/
Dcustom_frame_view.cc91 close_button_(NULL), in CustomFrameView()
103 close_button_ = InitWindowCaptionButton(IDS_APP_ACCNAME_CLOSE, in Init()
157 if (close_button_->GetMirroredBounds().Contains(point)) in NonClientHitTest()
254 if (sender == close_button_) in ButtonPressed()
625 button = close_button_; in GetImageButton()

12