button 33 ash/frame/caption_buttons/alternate_frame_size_button.cc bool HitTestButton(const ash::FrameCaptionButton* button, button 35 ash/frame/caption_buttons/alternate_frame_size_button.cc gfx::Rect expanded_bounds_in_screen = button->GetBoundsInScreen(); button 36 ash/frame/caption_buttons/alternate_frame_size_button.cc if (button->state() == views::Button::STATE_HOVERED || button 37 ash/frame/caption_buttons/alternate_frame_size_button.cc button->state() == views::Button::STATE_PRESSED) { button 177 ash/frame/caption_buttons/frame_caption_button_container_view.cc void FrameCaptionButtonContainerView::SetButtonIcon(FrameCaptionButton* button, button 183 ash/frame/caption_buttons/frame_caption_button_container_view.cc if (button->icon() == icon && button 184 ash/frame/caption_buttons/frame_caption_button_container_view.cc (animate == ANIMATE_YES || !button->IsAnimatingImageSwap())) { button 193 ash/frame/caption_buttons/frame_caption_button_container_view.cc button->SetImages(icon, button 274 ash/frame/caption_buttons/frame_caption_button_container_view.cc FrameCaptionButton* button = buttons[i]; button 275 ash/frame/caption_buttons/frame_caption_button_container_view.cc if (!button->visible()) button 278 ash/frame/caption_buttons/frame_caption_button_container_view.cc gfx::Point center_point = button->GetLocalBounds().CenterPoint(); button 279 ash/frame/caption_buttons/frame_caption_button_container_view.cc views::View::ConvertPointToTarget(button, this, ¢er_point); button 285 ash/frame/caption_buttons/frame_caption_button_container_view.cc closest_button = button; button 298 ash/frame/caption_buttons/frame_caption_button_container_view.cc FrameCaptionButton* button = buttons[i]; button 300 ash/frame/caption_buttons/frame_caption_button_container_view.cc if (button == to_hover) button 302 ash/frame/caption_buttons/frame_caption_button_container_view.cc else if (button == to_press) button 304 ash/frame/caption_buttons/frame_caption_button_container_view.cc button->SetState(new_state); button 125 ash/frame/caption_buttons/frame_caption_button_container_view.h void SetButtonIcon(FrameCaptionButton* button, button 49 ash/frame/caption_buttons/frame_maximize_button.cc explicit EscapeEventFilter(FrameMaximizeButton* button); button 62 ash/frame/caption_buttons/frame_maximize_button.cc FrameMaximizeButton* button) button 63 ash/frame/caption_buttons/frame_maximize_button.cc : button_(button) { button 225 ash/shelf/shelf_button.cc ShelfButton* button = new ShelfButton(listener, host, shelf_layout_manager); button 226 ash/shelf/shelf_button.cc button->Init(); button 227 ash/shelf/shelf_button.cc return button; button 102 ash/shelf/shelf_unittest.cc ShelfButton* button = test_api()->GetButton(index); button 103 ash/shelf/shelf_unittest.cc EXPECT_EQ(ShelfButton::STATE_RUNNING, button->state()); button 128 ash/shelf/shelf_unittest.cc ShelfButton* button = test_api()->GetButton(index); button 129 ash/shelf/shelf_unittest.cc button->AddState(ShelfButton::STATE_HOVERED); button 130 ash/shelf/shelf_unittest.cc button->ShowContextMenu(gfx::Point(), ui::MENU_SOURCE_MOUSE); button 131 ash/shelf/shelf_unittest.cc EXPECT_FALSE(button->state() & ShelfButton::STATE_HOVERED); button 296 ash/shelf/shelf_view.cc void ReflectItemStatus(const ShelfItem& item, ShelfButton* button) { button 299 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_ACTIVE); button 300 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_RUNNING); button 301 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_ATTENTION); button 304 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_ACTIVE); button 305 ash/shelf/shelf_view.cc button->AddState(ShelfButton::STATE_RUNNING); button 306 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_ATTENTION); button 309 ash/shelf/shelf_view.cc button->AddState(ShelfButton::STATE_ACTIVE); button 310 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_RUNNING); button 311 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_ATTENTION); button 314 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_ACTIVE); button 315 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_RUNNING); button 316 ash/shelf/shelf_view.cc button->AddState(ShelfButton::STATE_ATTENTION); button 488 ash/shelf/shelf_view.cc ShelfButton* button = static_cast<ShelfButton*>(view_model_->view_at(index)); button 489 ash/shelf/shelf_view.cc gfx::Rect icon_bounds = button->GetIconBounds(); button 949 ash/shelf/shelf_view.cc ShelfButton* button = ShelfButton::Create(this, this, layout_manager_); button 950 ash/shelf/shelf_view.cc button->SetImage(item.image); button 951 ash/shelf/shelf_view.cc ReflectItemStatus(item, button); button 952 ash/shelf/shelf_view.cc view = button; button 963 ash/shelf/shelf_view.cc AppListButton* button = new AppListButton(this, this); button 964 ash/shelf/shelf_view.cc button->SetImageAlignment( button 975 ash/shelf/shelf_view.cc view = button; button 1164 ash/shelf/shelf_view.cc ShelfButton* button = static_cast<ShelfButton*>(drag_view_); button 1166 ash/shelf/shelf_view.cc button->GetImage(), button 1248 ash/shelf/shelf_view.cc ShelfButton* button = static_cast<ShelfButton*>(drag_view_); button 1249 ash/shelf/shelf_view.cc button->AddState(ShelfButton::STATE_HIDDEN); button 1651 ash/shelf/shelf_view.cc ShelfButton* button = static_cast<ShelfButton*>(view); button 1652 ash/shelf/shelf_view.cc ReflectItemStatus(item, button); button 1656 ash/shelf/shelf_view.cc button->SetImage(item.image); button 1657 ash/shelf/shelf_view.cc button->SchedulePaint(); button 1995 ash/shelf/shelf_view.cc ShelfButton* button = static_cast<ShelfButton*>(view); button 1996 ash/shelf/shelf_view.cc button->ClearState(ShelfButton::STATE_HIDDEN); button 400 ash/shelf/shelf_view_unittest.cc views::View* button = test_api_->GetButton(button_index); button 402 ash/shelf/shelf_view_unittest.cc button->bounds().origin(), button 403 ash/shelf/shelf_view_unittest.cc button->GetBoundsInScreen().origin(), 0, 0); button 404 ash/shelf/shelf_view_unittest.cc button_host->PointerPressedOnButton(button, pointer, click_event); button 405 ash/shelf/shelf_view_unittest.cc return button; button 411 ash/shelf/shelf_view_unittest.cc views::View* button = SimulateButtonPressed(pointer, button_index); button 412 ash/shelf/shelf_view_unittest.cc button_host->PointerReleasedOnButton(button, ShelfButtonHost::MOUSE, false); button 413 ash/shelf/shelf_view_unittest.cc return button; button 420 ash/shelf/shelf_view_unittest.cc views::View* button = SimulateButtonPressed(pointer, button_index); button 427 ash/shelf/shelf_view_unittest.cc button_host->PointerDraggedOnButton(button, pointer, drag_event); button 428 ash/shelf/shelf_view_unittest.cc return button; button 435 ash/shelf/shelf_view_unittest.cc ShelfButton* button = test_api_->GetButton(i); button 436 ash/shelf/shelf_view_unittest.cc id_map->push_back(std::make_pair(model_->items()[i].id, button)); button 648 ash/shelf/shelf_view_unittest.cc ShelfButton* button = GetButtonByID(id); button 649 ash/shelf/shelf_view_unittest.cc gfx::Rect item_bounds = button->GetBoundsInScreen(); button 650 ash/shelf/shelf_view_unittest.cc gfx::Point icon_offset = button->GetIconBounds().origin(); button 945 ash/shelf/shelf_view_unittest.cc ShelfButton* button = test_api_->GetButton(i); button 946 ash/shelf/shelf_view_unittest.cc if (button) { button 947 ash/shelf/shelf_view_unittest.cc EXPECT_TRUE(button->visible()) << "button index=" << i; button 948 ash/shelf/shelf_view_unittest.cc EXPECT_EQ(1.0f, button->layer()->opacity()) << "button index=" << i; button 1152 ash/shelf/shelf_view_unittest.cc ShelfButton* button = GetButtonByID(last_added); button 1153 ash/shelf/shelf_view_unittest.cc ASSERT_EQ(ShelfButton::STATE_RUNNING, button->state()); button 1156 ash/shelf/shelf_view_unittest.cc ASSERT_EQ(ShelfButton::STATE_ACTIVE, button->state()); button 1159 ash/shelf/shelf_view_unittest.cc ASSERT_EQ(ShelfButton::STATE_ATTENTION, button->state()); button 1203 ash/shelf/shelf_view_unittest.cc ShelfButton* button = GetButtonByID(last_added); button 1204 ash/shelf/shelf_view_unittest.cc ASSERT_EQ(ShelfButton::STATE_RUNNING, button->state()); button 1207 ash/shelf/shelf_view_unittest.cc ASSERT_EQ(ShelfButton::STATE_ACTIVE, button->state()); button 1210 ash/shelf/shelf_view_unittest.cc ASSERT_EQ(ShelfButton::STATE_ATTENTION, button->state()); button 1322 ash/shelf/shelf_view_unittest.cc ShelfButton* button = test_api_->GetButton(i); button 1323 ash/shelf/shelf_view_unittest.cc if (!button) button 1327 ash/shelf/shelf_view_unittest.cc button->GetMirroredBounds().CenterPoint())) button 1347 ash/shelf/shelf_view_unittest.cc ShelfButton* button = test_api_->GetButton(i); button 1348 ash/shelf/shelf_view_unittest.cc if (!button) button 1351 ash/shelf/shelf_view_unittest.cc all_area.Union(button->GetMirroredBounds()); button 1373 ash/shelf/shelf_view_unittest.cc ShelfButton* button = test_api_->GetButton(i); button 1374 ash/shelf/shelf_view_unittest.cc if (!button) button 1378 ash/shelf/shelf_view_unittest.cc button->GetMirroredBounds().CenterPoint())) button 1487 ash/shelf/shelf_view_unittest.cc ShelfButton* button = test_for_overflow_view.GetButton(ripped_index); button 1489 ash/shelf/shelf_view_unittest.cc gfx::Point start_point = button->GetBoundsInScreen().CenterPoint(); button 1507 ash/shelf/shelf_view_unittest.cc button = test_for_overflow_view.GetButton(first_index); button 1510 ash/shelf/shelf_view_unittest.cc generator.MoveMouseTo(button->GetBoundsInScreen().CenterPoint()); button 1613 ash/shelf/shelf_view_unittest.cc ShelfButton* button = test_api_for_overflow_view.GetButton( button 1617 ash/shelf/shelf_view_unittest.cc gfx::Point point_in_shelf_view = button->GetBoundsInScreen().CenterPoint(); button 1678 ash/shelf/shelf_view_unittest.cc ShelfButton* button = button 1682 ash/shelf/shelf_view_unittest.cc gfx::Point start_point = button->GetBoundsInScreen().CenterPoint(); button 1715 ash/shelf/shelf_view_unittest.cc if (ShelfButton* button = test_api_->GetButton(i)) button 1716 ash/shelf/shelf_view_unittest.cc EXPECT_TRUE(visible_bounds.Contains(button->GetBoundsInScreen())); button 437 ash/system/chromeos/network/network_state_list_detailed_view.cc TrayPopupHeaderButton* button, button 443 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetVisible(false); button 446 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetVisible(true); button 448 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetEnabled(true); button 449 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetToggled(true); button 451 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetEnabled(true); button 452 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetToggled(false); button 454 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetEnabled(false); button 455 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetToggled(false); button 457 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetEnabled(false); button 458 ash/system/chromeos/network/network_state_list_detailed_view.cc button->SetToggled(true); button 87 ash/system/chromeos/network/network_state_list_detailed_view.h void UpdateTechnologyButton(TrayPopupHeaderButton* button, button 81 ash/system/chromeos/session/logout_confirmation_dialog.cc ui::DialogButton button) const { button 82 ash/system/chromeos/session/logout_confirmation_dialog.cc if (button == ui::DIALOG_BUTTON_OK) button 84 ash/system/chromeos/session/logout_confirmation_dialog.cc return views::DialogDelegateView::GetDialogButtonLabel(button); button 37 ash/system/chromeos/session/logout_confirmation_dialog.h virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const button 83 ash/system/tray/special_popup_row.cc void SpecialPopupRow::AddButton(TrayPopupHeaderButton* button) { button 88 ash/system/tray/special_popup_row.cc button_container_->AddChildView(button); button 31 ash/system/tray/special_popup_row.h void AddButton(TrayPopupHeaderButton* button); button 35 ash/wm/overview/window_selector_window.cc views::ImageButton* button = new views::ImageButton(listener); button 37 ash/wm/overview/window_selector_window.cc button->SetImage(views::CustomButton::STATE_NORMAL, button 39 ash/wm/overview/window_selector_window.cc button->SetImage(views::CustomButton::STATE_HOVERED, button 41 ash/wm/overview/window_selector_window.cc button->SetImage(views::CustomButton::STATE_PRESSED, button 43 ash/wm/overview/window_selector_window.cc widget->SetContentsView(button); button 303 base/message_loop/message_loop_unittest.cc HWND button = FindWindowEx(window, NULL, L"Button", NULL); button 304 base/message_loop/message_loop_unittest.cc if (button != NULL) { button 305 base/message_loop/message_loop_unittest.cc EXPECT_EQ(0, SendMessage(button, WM_LBUTTONDOWN, 0, 0)); button 306 base/message_loop/message_loop_unittest.cc EXPECT_EQ(0, SendMessage(button, WM_LBUTTONUP, 0, 0)); button 152 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java holder.button = (ImageButton) convertView.findViewById(R.id.button); button 168 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java holder.button.setVisibility(View.VISIBLE); button 170 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java setupImageButton(holder.button, item.getSubMenu().getItem(1)); button 172 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java holder.button.setVisibility(View.GONE); button 185 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java private void setupImageButton(ImageButton button, final MenuItem item) { button 186 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java button.setImageDrawable(item.getIcon()); button 187 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java button.setContentDescription(item.getTitle()); button 188 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java button.setEnabled(item.isEnabled()); button 189 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java button.setFocusable(item.isEnabled()); button 190 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java button.setOnClickListener(new OnClickListener() { button 212 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java public ImageButton button; button 411 chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java final Button button = buttons[buttonIndex]; button 412 chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java assertNotNull("No '" + readableName + "' button in confirm dialog.", button); button 415 chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java button.getVisibility()); button 418 chrome/android/javatests/src/org/chromium/chrome/browser/test/ModalDialogTest.java button.getText().toString()); button 48 chrome/browser/apps/web_view_interactive_browsertest.cc void SendMouseClickWithListener(ui_controls::MouseButton button, button 51 chrome/browser/apps/web_view_interactive_browsertest.cc SendMouseClick(button); button 55 chrome/browser/apps/web_view_interactive_browsertest.cc void SendMouseClick(ui_controls::MouseButton button) { button 56 chrome/browser/apps/web_view_interactive_browsertest.cc SendMouseEvent(button, ui_controls::DOWN); button 57 chrome/browser/apps/web_view_interactive_browsertest.cc SendMouseEvent(button, ui_controls::UP); button 128 chrome/browser/apps/web_view_interactive_browsertest.cc void SendMouseEvent(ui_controls::MouseButton button, button 131 chrome/browser/apps/web_view_interactive_browsertest.cc mouse_click_result_ = ui_test_utils::SendMouseEventsSync(button, button 136 chrome/browser/apps/web_view_interactive_browsertest.cc button, state)); button 256 chrome/browser/apps/web_view_interactive_browsertest.cc blink::WebMouseEvent::Button button, button 260 chrome/browser/apps/web_view_interactive_browsertest.cc mouse_event.button = button; button 81 chrome/browser/autofill/autofill_cc_infobar_delegate.cc InfoBarButton button) const { button 82 chrome/browser/autofill/autofill_cc_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 55 chrome/browser/autofill/autofill_cc_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 106 chrome/browser/chromeos/attestation/platform_verification_dialog.cc ui::DialogButton button) const { button 107 chrome/browser/chromeos/attestation/platform_verification_dialog.cc switch (button) { button 47 chrome/browser/chromeos/attestation/platform_verification_dialog.h ui::DialogButton button) const OVERRIDE; button 53 chrome/browser/chromeos/enrollment_dialog_view.cc ui::DialogButton button) const OVERRIDE; button 131 chrome/browser/chromeos/enrollment_dialog_view.cc ui::DialogButton button) const { button 132 chrome/browser/chromeos/enrollment_dialog_view.cc if (button == ui::DIALOG_BUTTON_OK) button 134 chrome/browser/chromeos/enrollment_dialog_view.cc return views::DialogDelegateView::GetDialogButtonLabel(button); button 55 chrome/browser/chromeos/external_protocol_dialog.cc ui::DialogButton button) const { button 37 chrome/browser/chromeos/external_protocol_dialog.h ui::DialogButton button) const OVERRIDE; button 156 chrome/browser/chromeos/input_method/input_method_engine_interface.h MouseButtonEvent button) = 0; button 195 chrome/browser/chromeos/input_method/textinput_test_helper.cc mouse_event.button = blink::WebMouseEvent::ButtonLeft; button 370 chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc base::string16 button; button 381 chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc button = l10n_util::GetStringUTF16( button 390 chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc button = l10n_util::GetStringUTF16( button 397 chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc actor_->ShowErrorPage(title, message, button); button 162 chrome/browser/chromeos/options/network_config_view.cc ui::DialogButton button) const { button 163 chrome/browser/chromeos/options/network_config_view.cc if (button == ui::DIALOG_BUTTON_OK) { button 168 chrome/browser/chromeos/options/network_config_view.cc return views::DialogDelegateView::GetDialogButtonLabel(button); button 171 chrome/browser/chromeos/options/network_config_view.cc bool NetworkConfigView::IsDialogButtonEnabled(ui::DialogButton button) const { button 173 chrome/browser/chromeos/options/network_config_view.cc if (button == ui::DIALOG_BUTTON_OK) button 58 chrome/browser/chromeos/options/network_config_view.h ui::DialogButton button) const OVERRIDE; button 59 chrome/browser/chromeos/options/network_config_view.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 44 chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.cc ui::DialogButton button) const OVERRIDE; button 99 chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.cc ui::DialogButton button) const { button 163 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc views::View* button = tray()->detailed_menu_->spoken_feedback_view_; button 164 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc ASSERT_TRUE(button); button 165 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc tray()->detailed_menu_->OnViewClicked(button); button 169 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc views::View* button = tray()->detailed_menu_->high_contrast_view_; button 170 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc ASSERT_TRUE(button); button 171 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc tray()->detailed_menu_->OnViewClicked(button); button 175 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc views::View* button = tray()->detailed_menu_->screen_magnifier_view_; button 176 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc ASSERT_TRUE(button); button 177 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc tray()->detailed_menu_->OnViewClicked(button); button 181 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc views::View* button = tray()->detailed_menu_->autoclick_view_; button 182 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc ASSERT_TRUE(button); button 183 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc tray()->detailed_menu_->OnViewClicked(button); button 187 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc views::View* button = tray()->detailed_menu_->virtual_keyboard_view_; button 188 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc ASSERT_TRUE(button); button 189 chrome/browser/chromeos/system/tray_accessibility_browsertest.cc tray()->detailed_menu_->OnViewClicked(button); button 134 chrome/browser/chromeos/ui/echo_dialog_view.cc ui::DialogButton button) const { button 135 chrome/browser/chromeos/ui/echo_dialog_view.cc if (button == ui::DIALOG_BUTTON_OK && ok_button_label_id_) button 137 chrome/browser/chromeos/ui/echo_dialog_view.cc if (button == ui::DIALOG_BUTTON_CANCEL && cancel_button_label_id_) button 55 chrome/browser/chromeos/ui/echo_dialog_view.h virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE; button 86 chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc InfoBarButton button) const { button 87 chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc return (button == BUTTON_OK) ? button 94 chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc InfoBarButton button) const { button 95 chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc return button == BUTTON_OK; button 38 chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 39 chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h virtual bool NeedElevation(InfoBarButton button) const OVERRIDE; button 103 chrome/browser/devtools/devtools_window.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 145 chrome/browser/devtools/devtools_window.cc InfoBarButton button) const { button 146 chrome/browser/devtools/devtools_window.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 2722 chrome/browser/download/download_browsertest.cc mouse_event.button = blink::WebMouseEvent::ButtonLeft; button 67 chrome/browser/download/download_request_infobar_delegate.cc InfoBarButton button) const { button 68 chrome/browser/download/download_request_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 52 chrome/browser/download/download_request_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 326 chrome/browser/extensions/api/extension_action/extension_action_api.cc int button) { button 332 chrome/browser/extensions/api/extension_action/extension_action_api.cc button); button 370 chrome/browser/extensions/api/extension_action/extension_action_api.cc int button) { button 378 chrome/browser/extensions/api/extension_action/extension_action_api.cc new base::FundamentalValue(button)); button 49 chrome/browser/extensions/api/extension_action/extension_action_api.h int button); button 77 chrome/browser/extensions/api/extension_action/extension_action_api.h int button); button 209 chrome/browser/extensions/api/input_ime/input_ime_api.cc InputMethodEngineInterface::MouseButtonEvent button) OVERRIDE { button 215 chrome/browser/extensions/api/input_ime/input_ime_api.cc switch (button) { button 377 chrome/browser/extensions/api/notifications/notifications_api.cc message_center::ButtonInfo button( button 380 chrome/browser/extensions/api/notifications/notifications_api.cc &button.icon); button 381 chrome/browser/extensions/api/notifications/notifications_api.cc buttons.push_back(button); button 462 chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc mouse_event.button = blink::WebMouseEvent::ButtonMiddle; button 494 chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc mouse_event.button = blink::WebMouseEvent::ButtonLeft; button 525 chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc mouse_event.button = blink::WebMouseEvent::ButtonLeft; button 147 chrome/browser/extensions/api/web_request/web_request_apitest.cc mouse_event.button = blink::WebMouseEvent::ButtonLeft; button 130 chrome/browser/extensions/theme_installed_infobar_delegate.cc InfoBarButton button) const { button 131 chrome/browser/extensions/theme_installed_infobar_delegate.cc DCHECK_EQ(BUTTON_CANCEL, button); button 51 chrome/browser/extensions/theme_installed_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 150 chrome/browser/geolocation/geolocation_infobar_delegate.cc InfoBarButton button) const { button 151 chrome/browser/geolocation/geolocation_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 61 chrome/browser/geolocation/geolocation_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 74 chrome/browser/geolocation/geolocation_infobar_delegate_android.cc InfoBarButton button) const { button 75 chrome/browser/geolocation/geolocation_infobar_delegate_android.cc return (button == BUTTON_OK) ? button 27 chrome/browser/geolocation/geolocation_infobar_delegate_android.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 92 chrome/browser/google/google_url_tracker_infobar_delegate.cc InfoBarButton button) const { button 93 chrome/browser/google/google_url_tracker_infobar_delegate.cc if (button == BUTTON_OK) { button 46 chrome/browser/google/google_url_tracker_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 23 chrome/browser/infobars/confirm_infobar_delegate.cc InfoBarButton button) const { button 24 chrome/browser/infobars/confirm_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_OK : IDS_CANCEL); button 27 chrome/browser/infobars/confirm_infobar_delegate.cc bool ConfirmInfoBarDelegate::NeedElevation(InfoBarButton button) const { button 37 chrome/browser/infobars/confirm_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const; button 40 chrome/browser/infobars/confirm_infobar_delegate.h virtual bool NeedElevation(InfoBarButton button) const; button 75 chrome/browser/infobars/insecure_content_infobar_delegate.cc InfoBarButton button) const { button 76 chrome/browser/infobars/insecure_content_infobar_delegate.cc return l10n_util::GetStringUTF16(button == BUTTON_OK ? button 48 chrome/browser/infobars/insecure_content_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 98 chrome/browser/managed_mode/managed_mode_navigation_observer.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 139 chrome/browser/managed_mode/managed_mode_navigation_observer.cc InfoBarButton button) const { button 140 chrome/browser/managed_mode/managed_mode_navigation_observer.cc DCHECK_EQ(BUTTON_OK, button); button 111 chrome/browser/media/media_stream_infobar_delegate.cc InfoBarButton button) const { button 112 chrome/browser/media/media_stream_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 45 chrome/browser/media/media_stream_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 79 chrome/browser/media/midi_permission_infobar_delegate.cc InfoBarButton button) const { button 80 chrome/browser/media/midi_permission_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 45 chrome/browser/media/midi_permission_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 98 chrome/browser/media/protected_media_identifier_infobar_delegate.cc InfoBarButton button) const { button 99 chrome/browser/media/protected_media_identifier_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 49 chrome/browser/media/protected_media_identifier_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 211 chrome/browser/notifications/desktop_notification_service.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 295 chrome/browser/notifications/desktop_notification_service.cc InfoBarButton button) const { button 296 chrome/browser/notifications/desktop_notification_service.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 128 chrome/browser/password_manager/save_password_infobar_delegate.cc InfoBarButton button) const { button 129 chrome/browser/password_manager/save_password_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 68 chrome/browser/password_manager/save_password_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 113 chrome/browser/pepper_broker_infobar_delegate.cc InfoBarButton button) const { button 114 chrome/browser/pepper_broker_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 47 chrome/browser/pepper_broker_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 134 chrome/browser/plugins/plugin_infobar_delegates.cc InfoBarButton button) const { button 135 chrome/browser/plugins/plugin_infobar_delegates.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 229 chrome/browser/plugins/plugin_infobar_delegates.cc InfoBarButton button) const { button 230 chrome/browser/plugins/plugin_infobar_delegates.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 372 chrome/browser/plugins/plugin_infobar_delegates.cc InfoBarButton button) const { button 373 chrome/browser/plugins/plugin_infobar_delegates.cc DCHECK_EQ(BUTTON_OK, button); button 479 chrome/browser/plugins/plugin_infobar_delegates.cc InfoBarButton button) const { button 65 chrome/browser/plugins/plugin_infobar_delegates.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 97 chrome/browser/plugins/plugin_infobar_delegates.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 160 chrome/browser/plugins/plugin_infobar_delegates.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 216 chrome/browser/plugins/plugin_infobar_delegates.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 141 chrome/browser/plugins/plugin_observer.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 179 chrome/browser/plugins/plugin_observer.cc InfoBarButton button) const { button 180 chrome/browser/plugins/plugin_observer.cc DCHECK_EQ(BUTTON_OK, button); button 733 chrome/browser/policy/policy_browsertest.cc click_event.button = blink::WebMouseEvent::ButtonLeft; button 161 chrome/browser/referrer_policy_browsertest.cc blink::WebMouseEvent::Button button, button 174 chrome/browser/referrer_policy_browsertest.cc (button == blink::WebMouseEvent::ButtonNone ? "false" : "true") + button 191 chrome/browser/referrer_policy_browsertest.cc if (button != blink::WebMouseEvent::ButtonNone) { button 194 chrome/browser/referrer_policy_browsertest.cc mouse_event.button = button; button 101 chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc mouse_event.button = blink::WebMouseEvent::ButtonRight; button 47 chrome/browser/renderer_context_menu/spelling_bubble_model.cc base::string16 SpellingBubbleModel::GetButtonLabel(BubbleButton button) const { button 48 chrome/browser/renderer_context_menu/spelling_bubble_model.cc return l10n_util::GetStringUTF16(button == BUTTON_OK ? button 31 chrome/browser/renderer_context_menu/spelling_bubble_model.h virtual base::string16 GetButtonLabel(BubbleButton button) const OVERRIDE; button 40 chrome/browser/speech/chrome_speech_recognition_manager_delegate_bubble_ui.cc int session_id, SpeechRecognitionBubble::Button button) { button 46 chrome/browser/speech/chrome_speech_recognition_manager_delegate_bubble_ui.cc if (button == SpeechRecognitionBubble::BUTTON_CANCEL) { button 53 chrome/browser/speech/chrome_speech_recognition_manager_delegate_bubble_ui.cc } else if (button == SpeechRecognitionBubble::BUTTON_TRY_AGAIN) { button 29 chrome/browser/speech/chrome_speech_recognition_manager_delegate_bubble_ui.h int session_id, SpeechRecognitionBubble::Button button) OVERRIDE; button 45 chrome/browser/speech/speech_recognition_bubble.h virtual void InfoBubbleButtonClicked(Button button) = 0; button 21 chrome/browser/speech/speech_recognition_bubble_browsertest.cc SpeechRecognitionBubble::Button button) OVERRIDE { button 114 chrome/browser/speech/speech_recognition_bubble_controller.cc SpeechRecognitionBubble::Button button) { button 119 chrome/browser/speech/speech_recognition_bubble_controller.cc button)); button 130 chrome/browser/speech/speech_recognition_bubble_controller.cc SpeechRecognitionBubble::Button button) { button 137 chrome/browser/speech/speech_recognition_bubble_controller.cc delegate_->InfoBubbleButtonClicked(current_bubble_session_id_, button); button 28 chrome/browser/speech/speech_recognition_bubble_controller.h int session_id, SpeechRecognitionBubble::Button button) = 0; button 74 chrome/browser/speech/speech_recognition_bubble_controller.h SpeechRecognitionBubble::Button button) OVERRIDE; button 105 chrome/browser/speech/speech_recognition_bubble_controller.h void InvokeDelegateButtonClicked(SpeechRecognitionBubble::Button button); button 100 chrome/browser/speech/speech_recognition_bubble_controller_unittest.cc SpeechRecognitionBubble::Button button) OVERRIDE { button 101 chrome/browser/speech/speech_recognition_bubble_controller_unittest.cc VLOG(1) << "Received InfoBubbleButtonClicked for button " << button; button 103 chrome/browser/speech/speech_recognition_bubble_controller_unittest.cc if (button == SpeechRecognitionBubble::BUTTON_CANCEL) { button 105 chrome/browser/speech/speech_recognition_bubble_controller_unittest.cc } else if (button == SpeechRecognitionBubble::BUTTON_TRY_AGAIN) { button 64 chrome/browser/ssl/ssl_tab_helper.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 115 chrome/browser/ssl/ssl_tab_helper.cc InfoBarButton button) const { button 116 chrome/browser/ssl/ssl_tab_helper.cc DCHECK_EQ(BUTTON_OK, button); button 1413 chrome/browser/themes/browser_theme_pack.cc gfx::Image& button = rb.GetImageNamed(*it); button 1417 chrome/browser/themes/browser_theme_pack.cc CreateHSLShiftedImage(button, button_tint); button 43 chrome/browser/three_d_api_observer.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 117 chrome/browser/three_d_api_observer.cc InfoBarButton button) const { button 118 chrome/browser/three_d_api_observer.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 91 chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc InfoBarButton button) const { button 35 chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 83 chrome/browser/ui/android/infobars/confirm_infobar.cc ConfirmInfoBarDelegate::InfoBarButton button) { button 85 chrome/browser/ui/android/infobars/confirm_infobar.cc return (delegate->GetButtons() & button) ? button 86 chrome/browser/ui/android/infobars/confirm_infobar.cc delegate->GetButtonLabel(button) : base::string16(); button 26 chrome/browser/ui/android/infobars/confirm_infobar.h base::string16 GetTextFor(ConfirmInfoBarDelegate::InfoBarButton button); button 81 chrome/browser/ui/apps/app_metro_infobar_delegate_win.cc InfoBarButton button) const { button 82 chrome/browser/ui/apps/app_metro_infobar_delegate_win.cc return l10n_util::GetStringUTF16(button == BUTTON_CANCEL ? button 38 chrome/browser/ui/apps/app_metro_infobar_delegate_win.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 275 chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc ash::ShelfButton* button = test->GetButton(index); button 276 chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc gfx::Point start_point = button->GetBoundsInScreen().CenterPoint(); button 291 chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc button->OnMouseCaptureLost(); button 1777 chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc ash::ShelfButton* button = test.GetButton(browser_index); button 1778 chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc EXPECT_FALSE(button->state() & ash::ShelfButton::STATE_HIDDEN); button 206 chrome/browser/ui/auto_login_infobar_delegate.cc InfoBarButton button) const { button 207 chrome/browser/ui/auto_login_infobar_delegate.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 61 chrome/browser/ui/auto_login_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 859 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ui::DialogButton button) const { button 860 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc if (button == ui::DIALOG_BUTTON_OK) { button 873 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc DCHECK_EQ(ui::DIALOG_BUTTON_CANCEL, button); button 119 chrome/browser/ui/autofill/autofill_dialog_controller_impl.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 94 chrome/browser/ui/autofill/autofill_dialog_view_delegate.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const = 0; button 41 chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.h MOCK_CONST_METHOD1(IsDialogButtonEnabled, bool(ui::DialogButton button)); button 2293 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button, button 2307 chrome/browser/ui/browser_browsertest.cc SimulateMouseClick(web_contents, modifiers, button); button 2319 chrome/browser/ui/browser_browsertest.cc SimulateMouseClick(web_contents, modifiers, button); button 2349 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonLeft; button 2351 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetWindowOpenURL(), modifiers, button, disposition); button 2360 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonLeft; button 2362 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetWindowOpenURL(), modifiers, button, disposition); button 2373 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonLeft; button 2375 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetWindowOpenURL(), modifiers, button, disposition); button 2387 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonLeft; button 2389 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetWindowOpenURL(), modifiers, button, disposition); button 2401 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonMiddle; button 2403 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetWindowOpenURL(), modifiers, button, disposition); button 2409 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonMiddle; button 2411 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetWindowOpenURL(), modifiers, button, disposition); button 2418 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonLeft; button 2420 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetHrefURL(), modifiers, button, disposition); button 2429 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonLeft; button 2431 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetHrefURL(), modifiers, button, disposition); button 2442 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonLeft; button 2444 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetHrefURL(), modifiers, button, disposition); button 2456 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonLeft; button 2458 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetHrefURL(), modifiers, button, disposition); button 2470 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonMiddle; button 2472 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetHrefURL(), modifiers, button, disposition); button 2478 chrome/browser/ui/browser_browsertest.cc blink::WebMouseEvent::Button button = blink::WebMouseEvent::ButtonMiddle; button 2480 chrome/browser/ui/browser_browsertest.cc RunTest(browser(), GetHrefURL(), modifiers, button, disposition); button 402 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h - (void)checkForBookmarkButtonGrowth:(NSButton*)button; button 149 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h - (id)initWithParentButton:(BookmarkButton*)button button 55 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_hover_state.h - (NSDragOperation)draggingEnteredButton:(BookmarkButton*)button; button 75 chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h toPopUpButton:(NSPopUpButton*)button button 26 chrome/browser/ui/cocoa/bookmarks/bookmark_button.h forDragOfButton:(BookmarkButton*)button; button 31 chrome/browser/ui/cocoa/bookmarks/bookmark_button.h - (void)mouseEnteredButton:(id)button event:(NSEvent*)event; button 32 chrome/browser/ui/cocoa/bookmarks/bookmark_button.h - (void)mouseExitedButton:(id)button event:(NSEvent*)event; button 44 chrome/browser/ui/cocoa/bookmarks/bookmark_button.h - (BOOL)canDragBookmarkButtonToTrash:(BookmarkButton*)button; button 48 chrome/browser/ui/cocoa/bookmarks/bookmark_button.h - (void)didDragBookmarkToTrash:(BookmarkButton*)button; button 53 chrome/browser/ui/cocoa/bookmarks/bookmark_button.h - (void)bookmarkDragDidEnd:(BookmarkButton*)button button 38 chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.h forDragOfButton:(BookmarkButton*)button; button 124 chrome/browser/ui/cocoa/draggable_button_mixin.h - (id)initWithButton:(NSButton<DraggableButtonMixin>*)button; button 39 chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.cc InfoBarButton button) const { button 40 chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.cc return base::ASCIIToUTF16((button == BUTTON_OK) ? "OK" : "Cancel"); button 41 chrome/browser/ui/cocoa/infobars/mock_confirm_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 59 chrome/browser/ui/cocoa/tabs/tab_strip_view.h - (void)setNewTabButton:(NewTabButton*)button; button 38 chrome/browser/ui/cocoa/toolbar/back_forward_menu_controller.h button:(MenuButton*)button; button 47 chrome/browser/ui/collected_cookies_infobar_delegate.cc InfoBarButton button) const { button 48 chrome/browser/ui/collected_cookies_infobar_delegate.cc DCHECK_EQ(BUTTON_OK, button); button 32 chrome/browser/ui/collected_cookies_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 21 chrome/browser/ui/confirm_bubble_model.cc base::string16 ConfirmBubbleModel::GetButtonLabel(BubbleButton button) const { button 22 chrome/browser/ui/confirm_bubble_model.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? IDS_OK : IDS_CANCEL); button 48 chrome/browser/ui/confirm_bubble_model.h virtual base::string16 GetButtonLabel(BubbleButton button) const; button 49 chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.cc InfoBarButton button) const { button 50 chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.cc DCHECK_EQ(BUTTON_OK, button); button 29 chrome/browser/ui/content_settings/media_setting_changed_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 583 chrome/browser/ui/gtk/apps/native_app_window_gtk.cc if (event->button == 1) { button 592 chrome/browser/ui/gtk/apps/native_app_window_gtk.cc gtk_window_begin_resize_drag(window_, edge, event->button, button 613 chrome/browser/ui/gtk/apps/native_app_window_gtk.cc } else if (event->button == 2) { button 118 chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc if (event->button != 1) button 50 chrome/browser/ui/gtk/avatar_menu_button_gtk.cc if (event->button != 1) button 84 chrome/browser/ui/gtk/back_forward_button_gtk.cc void BackForwardButtonGtk::ShowBackForwardMenu(int button, guint32 event_time) { button 87 chrome/browser/ui/gtk/back_forward_button_gtk.cc menu_->PopupForWidget(widget(), button, event_time); button 101 chrome/browser/ui/gtk/back_forward_button_gtk.cc if (event->button == 3) button 102 chrome/browser/ui/gtk/back_forward_button_gtk.cc ShowBackForwardMenu(event->button, event->time); button 104 chrome/browser/ui/gtk/back_forward_button_gtk.cc if (event->button != 1) button 112 chrome/browser/ui/gtk/back_forward_button_gtk.cc event->button, button 48 chrome/browser/ui/gtk/back_forward_button_gtk.h void ShowBackForwardMenu(int button, guint32 event_time); button 382 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc void BookmarkBarGtk::PopupForButton(GtkWidget* button) { button 383 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc const BookmarkNode* node = GetNodeForToolButton(button); button 390 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc if (button == overflow_button_) button 394 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc if (button != overflow_button_ && button != other_bookmarks_button_ && button 402 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc GTK_WINDOW(gtk_widget_get_toplevel(button)), button 404 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc button == overflow_button_ ? first_hidden : 0)); button 405 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc menu_bar_helper_.MenuStartedShowing(button, current_menu_->widget()); button 407 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc current_menu_->Popup(button, event->button.button, event->button.time); button 411 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc void BookmarkBarGtk::PopupForButtonNextTo(GtkWidget* button, button 413 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc const BookmarkNode* relative_node = GetNodeForToolButton(button); button 428 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc if (folder_list[i] == button) { button 751 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc GtkWidget* button = gtk_bin_get_child(GTK_BIN(item)); button 752 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc const BookmarkNode* node = GetNodeForToolButton(button); button 854 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc int BookmarkBarGtk::GetToolbarIndexForDragOverFolder(GtkWidget* button, button 857 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_widget_get_allocation(button, &allocation); button 863 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc GtkWidget* parent = gtk_widget_get_parent(button); button 975 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc GtkWidget* button = gtk_bin_get_child(GTK_BIN(item)); button 976 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc ConfigureButtonForNode(node, model, button, theme_service_); button 1025 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc GtkWidget* button = theme_service_->BuildChromeButton(); button 1026 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc ConfigureButtonForNode(node, model_, button, theme_service_); button 1029 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_drag_source_set(button, GDK_BUTTON1_MASK, NULL, 0, button 1032 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc ui::SetSourceTargetListFromCodeMask(button, target_mask); button 1033 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc g_signal_connect(button, "drag-begin", button 1035 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc g_signal_connect(button, "drag-end", button 1037 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc g_signal_connect(button, "drag-data-get", button 1047 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc g_signal_connect(button, "button-press-event", button 1049 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc g_signal_connect(button, "clicked", button 1051 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_util::SetButtonTriggersNavigation(button); button 1053 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc ConnectFolderButtonEvents(button, true); button 1056 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc return button; button 1060 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc GtkWidget* button = CreateBookmarkButton(node); button 1061 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc g_object_set_data(G_OBJECT(button), "left-align-popup", button 1065 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_container_add(GTK_CONTAINER(item), button); button 1167 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc if (event->button == 3 && gtk_widget_get_visible(bookmark_hbox_)) { button 1191 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc void BookmarkBarGtk::OnButtonDragBegin(GtkWidget* button, button 1193 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc GtkWidget* button_parent = gtk_widget_get_parent(button); button 1199 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc const BookmarkNode* node = GetNodeForToolButton(button); button 1210 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gfx::Rect button_rect = gtk_util::WidgetBounds(button); button 1221 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_widget_hide(button); button 1227 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_widget_set_no_show_all(button, TRUE); button 1230 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc void BookmarkBarGtk::OnButtonDragEnd(GtkWidget* button, button 1232 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_widget_show(button); button 1233 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_widget_set_no_show_all(button, FALSE); button 1244 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc g_object_unref(gtk_widget_get_parent(button)); button 1276 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc if (event->button.button == 1 || button 1277 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc (event->button.button == 2 && sender == overflow_button_)) { button 1280 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc } else if (event->button.button == 2) { button 1400 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gboolean BookmarkBarGtk::OnFolderDragMotion(GtkWidget* button, button 1407 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc GdkAtom target_type = gtk_drag_dest_find_target(button, context, NULL); button 1411 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc int index = GetToolbarIndexForDragOverFolder(button, x); button 1416 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_drag_highlight(button); button 1427 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc gtk_drag_unhighlight(button); button 85 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h virtual void PopupForButton(GtkWidget* button) OVERRIDE; button 86 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h virtual void PopupForButtonNextTo(GtkWidget* button, button 206 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h int GetToolbarIndexForDragOverFolder(GtkWidget* button, gint x); button 245 chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h const BookmarkNode* GetNodeForToolButton(GtkWidget* button); button 67 chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.cc void BookmarkBarInstructionsGtk::OnButtonClick(GtkWidget* button) { button 636 chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc void BookmarkEditorGtk::OnNewFolderClicked(GtkWidget* button) { button 642 chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc if (event->button == 3) { button 218 chrome/browser/ui/gtk/bookmarks/bookmark_menu_controller_gtk.cc if (!((event->button == 2 && event->type == GDK_BUTTON_RELEASE) || button 219 chrome/browser/ui/gtk/bookmarks/bookmark_menu_controller_gtk.cc (event->button == 3 && event->type == GDK_BUTTON_PRESS))) { button 250 chrome/browser/ui/gtk/bookmarks/bookmark_menu_controller_gtk.cc if (event->button == 2 && node && node->is_folder()) { button 255 chrome/browser/ui/gtk/bookmarks/bookmark_menu_controller_gtk.cc } else if (event->button == 3) { button 298 chrome/browser/ui/gtk/bookmarks/bookmark_menu_controller_gtk.cc if (event->button == 1 || event->button == 2) { button 311 chrome/browser/ui/gtk/bookmarks/bookmark_menu_controller_gtk.cc if (event->button == 1) { button 326 chrome/browser/ui/gtk/bookmarks/bookmark_menu_controller_gtk.cc if (event->button == 1) button 65 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc GtkWidget* button) { button 66 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc GtkWidget* former_child = gtk_bin_get_child(GTK_BIN(button)); button 68 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc gtk_container_remove(GTK_CONTAINER(button), former_child); button 103 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc gtk_container_add(GTK_CONTAINER(button), alignment); button 242 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc GtkWidget* button, button 247 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc button); button 252 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc gtk_widget_set_tooltip_markup(button, tooltip.c_str()); button 254 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc g_object_set_data(G_OBJECT(button), kBookmarkNode, AsVoid(node)); button 257 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc void ConfigureAppsShortcutButton(GtkWidget* button, GtkThemeService* provider) { button 263 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc PackButton(pixbuf, label, false, provider, button); button 46 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h GtkWidget* button, button 51 chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h void ConfigureAppsShortcutButton(GtkWidget* button, GtkThemeService* provider); button 115 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_widget_set_size_request(button(), kButtonWidth, kButtonWidth); button 117 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_container_add(GTK_CONTAINER(alignment_.get()), button()); button 118 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_widget_show(button()); button 124 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc signals_.Connect(button(), "button-press-event", button 126 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc signals_.Connect(button(), "clicked", button 128 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc signals_.Connect(button(), "drag-begin", button 219 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_widget_set_has_tooltip(button(), FALSE); button 221 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_widget_set_tooltip_text(button(), tooltip.c_str()); button 239 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_widget_queue_draw(button()); button 309 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_button_set_image(GTK_BUTTON(button()), image_); button 317 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button) { button 318 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc if (event->button != 3) button 321 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc MenuGtk* menu = button->GetContextMenu(); button 325 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc button->button_->SetPaintOverride(GTK_STATE_ACTIVE); button 326 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc menu->PopupForWidget(widget, event->button, event->time); button 331 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc static void OnClicked(GtkWidget* widget, BrowserActionButton* button) { button 332 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc if (button->enabled_) button 333 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc button->Activate(widget, true); button 338 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button) { button 339 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc int tab_id = button->toolbar_->GetCurrentTabId(); button 343 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc ExtensionAction* action = button->browser_action(); button 356 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button) { button 360 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc button->toolbar_->DragStarted(button, drag_context); button 368 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button) { button 370 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc GtkWidget* anchor = button->widget(); button 373 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc anchor = button->toolbar_->chevron(); button 374 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc button->Activate(anchor, true); button 381 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button = static_cast<BrowserActionButton*>(user_data); button 382 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc button->ConnectBrowserActionPopupAccelerator(); button 649 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc linked_ptr<BrowserActionButton> button( button 652 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc GTK_CHROME_SHRINKABLE_HBOX(button_hbox_.get()), button->widget(), 0); button 653 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_box_reorder_child(GTK_BOX(button_hbox_.get()), button->widget(), index); button 654 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc extension_button_map_[extension->id()] = button; button 657 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_drag_source_set(button->button(), GDK_BUTTON1_MASK, &drag_target, 1, button 660 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc signals_.Connect(button->button(), "drag-end", button 662 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc signals_.Connect(button->button(), "drag-failed", button 667 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc signals_.Connect(button->widget(), "show", button 669 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc signals_.Connect(button->widget(), "hide", button 672 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc gtk_widget_show(button->widget()); button 686 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button = GetBrowserActionButton(extension); button 687 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc return button == NULL ? NULL : button->widget(); button 786 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button = GetBrowserActionButton(extension); button 787 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc if (button == NULL || button->widget() == NULL) button 790 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc GtkWidget* anchor = button->widget(); button 792 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc anchor = button->toolbar_->chevron(); button 793 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc return button->Activate(anchor, false); button 854 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc void BrowserActionsToolbarGtk::DragStarted(BrowserActionButton* button, button 862 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc drag_button_ = button; button 931 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc void BrowserActionsToolbarGtk::OnDragEnd(GtkWidget* button, button 1066 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button = extension_button_map_[extension->id()].get(); button 1071 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc button->GetIcon()); button 1088 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc if (event->button != 3) button 1107 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc BrowserActionButton* button = GetBrowserActionButton(extension); button 1108 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc if (button == NULL) { button 1113 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc MenuGtk* menu = button->GetContextMenu(); button 146 chrome/browser/ui/gtk/browser_actions_toolbar_gtk.h void DragStarted(BrowserActionButton* button, GdkDragContext* drag_context); button 517 chrome/browser/ui/gtk/browser_titlebar.cc CustomDrawButton* button = new CustomDrawButton(normal_image_id, button 521 chrome/browser/ui/gtk/browser_titlebar.cc gtk_widget_add_events(GTK_WIDGET(button->widget()), GDK_POINTER_MOTION_MASK); button 522 chrome/browser/ui/gtk/browser_titlebar.cc g_signal_connect(button->widget(), "clicked", button 524 chrome/browser/ui/gtk/browser_titlebar.cc g_signal_connect(button->widget(), "motion-notify-event", button 528 chrome/browser/ui/gtk/browser_titlebar.cc gtk_widget_set_tooltip_text(button->widget(), button 532 chrome/browser/ui/gtk/browser_titlebar.cc gtk_box_pack_start(GTK_BOX(box), button->widget(), FALSE, FALSE, 0); button 533 chrome/browser/ui/gtk/browser_titlebar.cc return button; button 564 chrome/browser/ui/gtk/browser_titlebar.cc void BrowserTitlebar::UpdateButtonBackground(CustomDrawButton* button) { button 577 chrome/browser/ui/gtk/browser_titlebar.cc button->SurfaceWidth(), button->SurfaceHeight(), 0); button 581 chrome/browser/ui/gtk/browser_titlebar.cc button->SetBackground(color, background, mask); button 873 chrome/browser/ui/gtk/browser_titlebar.cc if (event->button.button == 1) { button 891 chrome/browser/ui/gtk/browser_titlebar.cc if (event->button.button == 3) { button 894 chrome/browser/ui/gtk/browser_titlebar.cc } else if (event->button.button == 2) { button 937 chrome/browser/ui/gtk/browser_titlebar.cc void BrowserTitlebar::OnButtonClicked(GtkWidget* button) { button 938 chrome/browser/ui/gtk/browser_titlebar.cc if (close_button_.get() && close_button_->widget() == button) { button 940 chrome/browser/ui/gtk/browser_titlebar.cc } else if (restore_button_.get() && restore_button_->widget() == button) { button 942 chrome/browser/ui/gtk/browser_titlebar.cc } else if (maximize_button_.get() && maximize_button_->widget() == button) { button 944 chrome/browser/ui/gtk/browser_titlebar.cc } else if (minimize_button_.get() && minimize_button_->widget() == button) { button 951 chrome/browser/ui/gtk/browser_titlebar.cc if (event->button != 1) button 961 chrome/browser/ui/gtk/browser_titlebar.cc favicon_menu_->PopupForWidget(app_mode_favicon_, event->button, event->time); button 968 chrome/browser/ui/gtk/browser_titlebar.cc if (event->button != 1) button 111 chrome/browser/ui/gtk/browser_titlebar.h void UpdateButtonBackground(CustomDrawButton* button); button 618 chrome/browser/ui/gtk/browser_toolbar_gtk.cc void BrowserToolbarGtk::OnButtonClick(GtkWidget* button) { button 619 chrome/browser/ui/gtk/browser_toolbar_gtk.cc if ((button == back_->widget()) || (button == forward_->widget())) { button 625 chrome/browser/ui/gtk/browser_toolbar_gtk.cc DCHECK(home_.get() && button == home_->widget()) << button 630 chrome/browser/ui/gtk/browser_toolbar_gtk.cc gboolean BrowserToolbarGtk::OnMenuButtonPressEvent(GtkWidget* button, button 632 chrome/browser/ui/gtk/browser_toolbar_gtk.cc if (event->button != 1) button 639 chrome/browser/ui/gtk/browser_toolbar_gtk.cc wrench_menu_->PopupForWidget(button, event->button, event->time); button 2095 chrome/browser/ui/gtk/browser_window_gtk.cc if (event->button == 8) { button 2098 chrome/browser/ui/gtk/browser_window_gtk.cc } else if (event->button == 9) { button 2128 chrome/browser/ui/gtk/browser_window_gtk.cc if (event->button == 1) { button 2140 chrome/browser/ui/gtk/browser_window_gtk.cc gtk_window_begin_resize_drag(window_, edge, event->button, button 2157 chrome/browser/ui/gtk/browser_window_gtk.cc } else if (event->button == 2) { button 2162 chrome/browser/ui/gtk/browser_window_gtk.cc } else if (event->button == 3) { button 107 chrome/browser/ui/gtk/certificate_viewer_gtk.cc static void OnExportClicked(GtkButton *button, CertificateViewer* viewer); button 698 chrome/browser/ui/gtk/certificate_viewer_gtk.cc void CertificateViewer::OnExportClicked(GtkButton *button, button 16 chrome/browser/ui/gtk/chrome_gtk_frame.cc static void meta_frames_init(MetaFrames* button) { button 516 chrome/browser/ui/gtk/collected_cookies_gtk.cc void CollectedCookiesGtk::OnBlockAllowedButtonClicked(GtkWidget* button) { button 521 chrome/browser/ui/gtk/collected_cookies_gtk.cc void CollectedCookiesGtk::OnDeleteAllowedButtonClicked(GtkWidget* button) { button 535 chrome/browser/ui/gtk/collected_cookies_gtk.cc void CollectedCookiesGtk::OnAllowBlockedButtonClicked(GtkWidget* button) { button 540 chrome/browser/ui/gtk/collected_cookies_gtk.cc void CollectedCookiesGtk::OnForSessionBlockedButtonClicked(GtkWidget* button) { button 143 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc GtkWidget* button = gtk_chrome_link_button_new( button 145 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc popup_links_[button] = i -popup_items.begin(); button 146 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc g_signal_connect(button, "clicked", G_CALLBACK(OnPopupLinkClickedThunk), button 148 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_table_attach(GTK_TABLE(table), button, 1, 2, row, row + 1, button 204 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc GtkWidget* button = gtk_button_new(); button 212 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_container_add(GTK_CONTAINER(button), button_content); button 221 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc media_menus_[button] = gtk_menu; button 229 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_widget_set_sensitive(button, FALSE); button 235 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_widget_set_sensitive(button, FALSE); button 242 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc g_signal_connect(button, "clicked", button 244 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_table_attach(GTK_TABLE(table), button, 1, 2, row, row + 1, button 314 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc GtkWidget* button = button 316 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc g_signal_connect(button, "clicked", G_CALLBACK(OnCloseButtonClickedThunk), button 318 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_box_pack_end(GTK_BOX(bottom_box), button, FALSE, FALSE, 0); button 321 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc gtk_widget_grab_focus(button); button 345 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc void ContentSettingBubbleGtk::OnPopupLinkClicked(GtkWidget* button) { button 346 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc PopupMap::iterator i(popup_links_.find(button)); button 367 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc void ContentSettingBubbleGtk::OnCloseButtonClicked(GtkWidget* button) { button 372 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc void ContentSettingBubbleGtk::OnCustomLinkClicked(GtkWidget* button) { button 377 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc void ContentSettingBubbleGtk::OnManageLinkClicked(GtkWidget* button) { button 382 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc void ContentSettingBubbleGtk::OnMenuButtonClicked(GtkWidget* button) { button 383 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc GtkMediaMenuMap::iterator i(media_menus_.find(button)); button 385 chrome/browser/ui/gtk/content_setting_bubble_gtk.cc i->second->menu->PopupForWidget(button, 1, gtk_get_current_event_time()); button 360 chrome/browser/ui/gtk/custom_button.cc CustomDrawButton* button = new CustomDrawButton(theme_provider, button 363 chrome/browser/ui/gtk/custom_button.cc return button; button 369 chrome/browser/ui/gtk/custom_button.cc CustomDrawButton* button = new CustomDrawButton(theme_provider, button 372 chrome/browser/ui/gtk/custom_button.cc return button; button 846 chrome/browser/ui/gtk/download/download_item_gtk.cc gboolean DownloadItemGtk::OnButtonPress(GtkWidget* button, button 848 chrome/browser/ui/gtk/download/download_item_gtk.cc if (event->type == GDK_BUTTON_PRESS && event->button == 3) { button 902 chrome/browser/ui/gtk/download/download_item_gtk.cc gboolean DownloadItemGtk::OnMenuButtonPressEvent(GtkWidget* button, button 904 chrome/browser/ui/gtk/download/download_item_gtk.cc if (event->type == GDK_BUTTON_PRESS && event->button == 1) { button 905 chrome/browser/ui/gtk/download/download_item_gtk.cc ShowPopupMenu(button, event); button 907 chrome/browser/ui/gtk/download/download_item_gtk.cc gtk_widget_queue_draw(button); button 913 chrome/browser/ui/gtk/download/download_item_gtk.cc void DownloadItemGtk::ShowPopupMenu(GtkWidget* button, button 923 chrome/browser/ui/gtk/download/download_item_gtk.cc menu_->Popup(button, event); button 936 chrome/browser/ui/gtk/download/download_item_gtk.cc void DownloadItemGtk::OnDangerousAccept(GtkWidget* button) { button 942 chrome/browser/ui/gtk/download/download_item_gtk.cc void DownloadItemGtk::OnDangerousDecline(GtkWidget* button) { button 108 chrome/browser/ui/gtk/download/download_item_gtk.h void ShowPopupMenu(GtkWidget* button, GdkEventButton* event); button 31 chrome/browser/ui/gtk/download/download_shelf_context_menu_gtk.cc menu_->PopupForWidget(widget, event->button, event->time); button 308 chrome/browser/ui/gtk/download/download_shelf_gtk.cc void DownloadShelfGtk::OnButtonClick(GtkWidget* button) { button 309 chrome/browser/ui/gtk/download/download_shelf_gtk.cc if (button == close_button_->widget()) { button 39 chrome/browser/ui/gtk/event_utils.cc guint state = event->button.state; button 22 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc GtkWidget* button = NULL; button 27 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc button = gtk_bin_get_child(GTK_BIN(alignment)); button 30 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc return button; button 49 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc GtkWidget* button = GetButton(browser_, index); button 50 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc return gtk_button_get_image(GTK_BUTTON(button)) != NULL; button 54 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc GtkWidget* button = GetButton(browser_, index); button 55 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc GtkWidget* image = gtk_button_get_image(GTK_BUTTON(button)); button 64 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc GtkWidget* button = GetButton(browser_, index); button 65 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc gtk_button_clicked(GTK_BUTTON(button)); button 69 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc GtkWidget* button = GetButton(browser_, index); button 70 chrome/browser/ui/gtk/extensions/browser_action_test_util_gtk.cc gchar* text = gtk_widget_get_tooltip_text(button); button 145 chrome/browser/ui/gtk/extensions/bundle_installed_bubble_gtk.cc void BundleInstalledBubbleGtk::OnButtonClick(GtkWidget* button, button 147 chrome/browser/ui/gtk/extensions/bundle_installed_bubble_gtk.cc if (button == bubble->close_button_->widget()) button 48 chrome/browser/ui/gtk/extensions/bundle_installed_bubble_gtk.h static void OnButtonClick(GtkWidget* button, button 301 chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc void ExtensionInstalledBubbleGtk::OnButtonClick(GtkWidget* button, button 303 chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc if (button == bubble->close_button_->widget()) { button 60 chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.h static void OnButtonClick(GtkWidget* button, button 846 chrome/browser/ui/gtk/find_bar_gtk.cc void FindBarGtk::OnClicked(GtkWidget* button) { button 847 chrome/browser/ui/gtk/find_bar_gtk.cc if (button == close_button_->widget()) { button 851 chrome/browser/ui/gtk/find_bar_gtk.cc } else if (button == find_previous_button_->widget() || button 852 chrome/browser/ui/gtk/find_bar_gtk.cc button == find_next_button_->widget()) { button 853 chrome/browser/ui/gtk/find_bar_gtk.cc FindEntryTextInContents(button == find_next_button_->widget()); button 153 chrome/browser/ui/gtk/first_run_dialog.cc void FirstRunDialog::OnLearnMoreLinkClicked(GtkButton* button) { button 260 chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.cc void FullscreenExitBubbleGtk::OnAllowClicked(GtkWidget* button) { button 264 chrome/browser/ui/gtk/fullscreen_exit_bubble_gtk.cc void FullscreenExitBubbleGtk::OnDenyClicked(GtkWidget* button) { button 82 chrome/browser/ui/gtk/gtk_chrome_button.cc static void gtk_chrome_button_init(GtkChromeButton* button) { button 83 chrome/browser/ui/gtk/gtk_chrome_button.cc GtkChromeButtonPrivate* priv = GTK_CHROME_BUTTON_GET_PRIVATE(button); button 88 chrome/browser/ui/gtk/gtk_chrome_button.cc gtk_widget_set_can_focus(GTK_WIDGET(button), FALSE); button 137 chrome/browser/ui/gtk/gtk_chrome_button.cc void gtk_chrome_button_set_paint_state(GtkChromeButton* button, button 139 chrome/browser/ui/gtk/gtk_chrome_button.cc g_return_if_fail(GTK_IS_CHROME_BUTTON(button)); button 141 chrome/browser/ui/gtk/gtk_chrome_button.cc GtkChromeButtonPrivate *priv = GTK_CHROME_BUTTON_GET_PRIVATE(button); button 144 chrome/browser/ui/gtk/gtk_chrome_button.cc gtk_widget_queue_draw(GTK_WIDGET(button)); button 147 chrome/browser/ui/gtk/gtk_chrome_button.cc void gtk_chrome_button_unset_paint_state(GtkChromeButton* button) { button 148 chrome/browser/ui/gtk/gtk_chrome_button.cc g_return_if_fail(GTK_IS_CHROME_BUTTON(button)); button 150 chrome/browser/ui/gtk/gtk_chrome_button.cc GtkChromeButtonPrivate *priv = GTK_CHROME_BUTTON_GET_PRIVATE(button); button 153 chrome/browser/ui/gtk/gtk_chrome_button.cc gtk_widget_queue_draw(GTK_WIDGET(button)); button 156 chrome/browser/ui/gtk/gtk_chrome_button.cc void gtk_chrome_button_set_use_gtk_rendering(GtkChromeButton* button, button 158 chrome/browser/ui/gtk/gtk_chrome_button.cc g_return_if_fail(GTK_IS_CHROME_BUTTON(button)); button 159 chrome/browser/ui/gtk/gtk_chrome_button.cc GtkChromeButtonPrivate *priv = GTK_CHROME_BUTTON_GET_PRIVATE(button); button 163 chrome/browser/ui/gtk/gtk_chrome_button.cc void gtk_chrome_button_set_hover_state(GtkChromeButton* button, button 165 chrome/browser/ui/gtk/gtk_chrome_button.cc GtkChromeButtonPrivate* priv = GTK_CHROME_BUTTON_GET_PRIVATE(button); button 170 chrome/browser/ui/gtk/gtk_chrome_button.cc gtk_widget_queue_draw(GTK_WIDGET(button)); button 29 chrome/browser/ui/gtk/gtk_chrome_button.h GtkButton button; button 41 chrome/browser/ui/gtk/gtk_chrome_button.h void gtk_chrome_button_set_paint_state(GtkChromeButton* button, button 45 chrome/browser/ui/gtk/gtk_chrome_button.h void gtk_chrome_button_unset_paint_state(GtkChromeButton* button); button 48 chrome/browser/ui/gtk/gtk_chrome_button.h void gtk_chrome_button_set_use_gtk_rendering(GtkChromeButton* button, button 54 chrome/browser/ui/gtk/gtk_chrome_button.h void gtk_chrome_button_set_hover_state(GtkChromeButton* button, button 39 chrome/browser/ui/gtk/gtk_chrome_link_button.cc GtkChromeLinkButton* button) { button 40 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->native_markup); button 41 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->native_markup = NULL; button 42 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->normal_markup); button 43 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->normal_markup = NULL; button 44 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->pressed_markup); button 45 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->pressed_markup = NULL; button 46 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->insensitive_markup); button 47 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->insensitive_markup = NULL; button 49 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->text); button 50 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->text = NULL; button 58 chrome/browser/ui/gtk/gtk_chrome_link_button.cc static void gtk_chrome_link_button_set_text(GtkChromeLinkButton* button) { button 61 chrome/browser/ui/gtk/gtk_chrome_link_button.cc if (!gtk_widget_get_realized(GTK_WIDGET(button))) button 64 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->native_markup); button 65 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->native_markup = NULL; button 66 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->normal_markup); button 67 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->normal_markup = NULL; button 68 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->pressed_markup); button 69 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->pressed_markup = NULL; button 70 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->insensitive_markup); button 71 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->insensitive_markup = NULL; button 73 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gchar* text = button->text; button 74 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gboolean uses_markup = button->uses_markup; button 76 chrome/browser/ui/gtk/gtk_chrome_link_button.cc GtkStyle* style = gtk_rc_get_style(button->label); button 84 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->normal_markup = g_markup_printf_escaped(kLinkMarkup, button 85 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->normal_color, button 87 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->pressed_markup = g_markup_printf_escaped(kLinkMarkup, "red", text); button 88 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->insensitive_markup = g_markup_printf_escaped(kInsensitiveLinkMarkup, button 92 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->normal_markup = g_strdup_printf(kLinkMarkup, button->normal_color, button 95 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->pressed_markup = g_strdup_printf(kLinkMarkup, "red", text); button 96 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->insensitive_markup = g_strdup_printf(kInsensitiveLinkMarkup, button 103 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_widget_style_get(GTK_WIDGET(button), "link-color", &native_color, NULL); button 112 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->native_markup = g_markup_printf_escaped(kLinkMarkup, button 115 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->native_markup = g_strdup_printf(kLinkMarkup, color_spec, text); button 120 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->native_markup = g_strdup(button->normal_markup); button 123 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_label_set_markup(GTK_LABEL(button->label), button 124 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->using_native_theme ? button->native_markup : button 125 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->normal_markup); button 128 chrome/browser/ui/gtk/gtk_chrome_link_button.cc static void gtk_chrome_link_button_style_changed(GtkChromeLinkButton* button) { button 131 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_chrome_link_button_set_text(button); button 133 chrome/browser/ui/gtk/gtk_chrome_link_button.cc if (gtk_widget_get_visible(GTK_WIDGET(button))) button 134 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_widget_queue_draw(GTK_WIDGET(button)); button 139 chrome/browser/ui/gtk/gtk_chrome_link_button.cc GtkChromeLinkButton* button = GTK_CHROME_LINK_BUTTON(widget); button 140 chrome/browser/ui/gtk/gtk_chrome_link_button.cc GtkWidget* label = button->label; button 143 chrome/browser/ui/gtk/gtk_chrome_link_button.cc if (widget_state != button->label_state) { button 147 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->using_native_theme ? button->native_markup : button 148 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->normal_markup); button 151 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_label_set_markup(GTK_LABEL(label), button->pressed_markup); button 154 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_label_set_markup(GTK_LABEL(label), button->insensitive_markup); button 159 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->label_state = widget_state; button 180 chrome/browser/ui/gtk/gtk_chrome_link_button.cc static void gtk_chrome_link_button_enter(GtkButton* button) { button 181 chrome/browser/ui/gtk/gtk_chrome_link_button.cc GtkWidget* widget = GTK_WIDGET(button); button 182 chrome/browser/ui/gtk/gtk_chrome_link_button.cc GtkChromeLinkButton* link_button = GTK_CHROME_LINK_BUTTON(button); button 187 chrome/browser/ui/gtk/gtk_chrome_link_button.cc static void gtk_chrome_link_button_leave(GtkButton* button) { button 188 chrome/browser/ui/gtk/gtk_chrome_link_button.cc GtkWidget* widget = GTK_WIDGET(button); button 193 chrome/browser/ui/gtk/gtk_chrome_link_button.cc GtkChromeLinkButton* button = GTK_CHROME_LINK_BUTTON(object); button 195 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_chrome_link_button_destroy_text_resources(button); button 197 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->hand_cursor = NULL; button 216 chrome/browser/ui/gtk/gtk_chrome_link_button.cc static void gtk_chrome_link_button_init(GtkChromeLinkButton* button) { button 222 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->label = gtk_label_new(NULL); button 223 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->normal_markup = NULL; button 224 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->pressed_markup = NULL; button 225 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->label_state = GTK_STATE_NORMAL; button 226 chrome/browser/ui/gtk/gtk_chrome_link_button.cc strncpy(button->normal_color, "blue", 9); button 227 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->native_markup = NULL; button 228 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->using_native_theme = TRUE; button 229 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->hand_cursor = gfx::GetCursor(GDK_HAND2); button 230 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->text = NULL; button 232 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_container_add(GTK_CONTAINER(button), button->label); button 233 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_widget_set_app_paintable(GTK_WIDGET(button), TRUE); button 234 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_signal_connect(button, "realize", button 236 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_signal_connect(button, "style-set", button 256 chrome/browser/ui/gtk/gtk_chrome_link_button.cc void gtk_chrome_link_button_set_use_gtk_theme(GtkChromeLinkButton* button, button 258 chrome/browser/ui/gtk/gtk_chrome_link_button.cc if (use_gtk != button->using_native_theme) { button 259 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->using_native_theme = use_gtk; button 261 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_chrome_link_button_set_text(button); button 263 chrome/browser/ui/gtk/gtk_chrome_link_button.cc if (gtk_widget_get_visible(GTK_WIDGET(button))) button 264 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_widget_queue_draw(GTK_WIDGET(button)); button 268 chrome/browser/ui/gtk/gtk_chrome_link_button.cc void gtk_chrome_link_button_set_label(GtkChromeLinkButton* button, button 270 chrome/browser/ui/gtk/gtk_chrome_link_button.cc g_free(button->text); button 271 chrome/browser/ui/gtk/gtk_chrome_link_button.cc button->text = g_strdup(text); button 273 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_chrome_link_button_set_text(button); button 275 chrome/browser/ui/gtk/gtk_chrome_link_button.cc if (gtk_widget_get_visible(GTK_WIDGET(button))) button 276 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_widget_queue_draw(GTK_WIDGET(button)); button 279 chrome/browser/ui/gtk/gtk_chrome_link_button.cc void gtk_chrome_link_button_set_normal_color(GtkChromeLinkButton* button, button 282 chrome/browser/ui/gtk/gtk_chrome_link_button.cc snprintf(button->normal_color, 9, "#%02X%02X%02X", color->red / 257, button 285 chrome/browser/ui/gtk/gtk_chrome_link_button.cc strncpy(button->normal_color, "blue", 9); button 288 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_chrome_link_button_set_text(button); button 290 chrome/browser/ui/gtk/gtk_chrome_link_button.cc if (gtk_widget_get_visible(GTK_WIDGET(button))) button 291 chrome/browser/ui/gtk/gtk_chrome_link_button.cc gtk_widget_queue_draw(GTK_WIDGET(button)); button 37 chrome/browser/ui/gtk/gtk_chrome_link_button.h GtkButton button; button 64 chrome/browser/ui/gtk/gtk_chrome_link_button.h void gtk_chrome_link_button_set_use_gtk_theme(GtkChromeLinkButton* button, button 68 chrome/browser/ui/gtk/gtk_chrome_link_button.h void gtk_chrome_link_button_set_label(GtkChromeLinkButton* button, button 73 chrome/browser/ui/gtk/gtk_chrome_link_button.h void gtk_chrome_link_button_set_normal_color(GtkChromeLinkButton* button, button 94 chrome/browser/ui/gtk/gtk_custom_menu_item.cc GtkButton* button = GTK_BUTTON(object); button 95 chrome/browser/ui/gtk/gtk_custom_menu_item.cc GtkWidget* child = gtk_bin_get_child(GTK_BIN(button)); button 342 chrome/browser/ui/gtk/gtk_custom_menu_item.cc GtkWidget* button = gtk_button_new(); button 343 chrome/browser/ui/gtk/gtk_custom_menu_item.cc g_object_set_data(G_OBJECT(button), "command-id", button 345 chrome/browser/ui/gtk/gtk_custom_menu_item.cc gtk_box_pack_start(GTK_BOX(menu_item->hbox), button, FALSE, FALSE, 0); button 346 chrome/browser/ui/gtk/gtk_custom_menu_item.cc gtk_widget_show(button); button 348 chrome/browser/ui/gtk/gtk_custom_menu_item.cc menu_item->all_widgets = g_list_append(menu_item->all_widgets, button); button 349 chrome/browser/ui/gtk/gtk_custom_menu_item.cc menu_item->button_widgets = g_list_append(menu_item->button_widgets, button); button 351 chrome/browser/ui/gtk/gtk_custom_menu_item.cc return button; button 356 chrome/browser/ui/gtk/gtk_custom_menu_item.cc GtkWidget* button = gtk_button_new_with_label(""); button 357 chrome/browser/ui/gtk/gtk_custom_menu_item.cc g_object_set_data(G_OBJECT(button), "command-id", button 359 chrome/browser/ui/gtk/gtk_custom_menu_item.cc gtk_box_pack_start(GTK_BOX(menu_item->hbox), button, FALSE, FALSE, 0); button 360 chrome/browser/ui/gtk/gtk_custom_menu_item.cc g_signal_connect(button, "notify::label", button 362 chrome/browser/ui/gtk/gtk_custom_menu_item.cc gtk_widget_show(button); button 364 chrome/browser/ui/gtk/gtk_custom_menu_item.cc menu_item->all_widgets = g_list_append(menu_item->all_widgets, button); button 366 chrome/browser/ui/gtk/gtk_custom_menu_item.cc return button; button 392 chrome/browser/ui/gtk/gtk_theme_service.cc GtkWidget* button = HoverControllerGtk::CreateChromeButton(); button 393 chrome/browser/ui/gtk/gtk_theme_service.cc gtk_chrome_button_set_use_gtk_rendering(GTK_CHROME_BUTTON(button), use_gtk_); button 394 chrome/browser/ui/gtk/gtk_theme_service.cc chrome_buttons_.push_back(button); button 396 chrome/browser/ui/gtk/gtk_theme_service.cc signals_->Connect(button, "destroy", G_CALLBACK(OnDestroyChromeButtonThunk), button 398 chrome/browser/ui/gtk/gtk_theme_service.cc return button; button 1122 chrome/browser/ui/gtk/gtk_theme_service.cc void GtkThemeService::OnDestroyChromeButton(GtkWidget* button) { button 1124 chrome/browser/ui/gtk/gtk_theme_service.cc find(chrome_buttons_.begin(), chrome_buttons_.end(), button); button 1129 chrome/browser/ui/gtk/gtk_theme_service.cc void GtkThemeService::OnDestroyChromeLinkButton(GtkWidget* button) { button 1131 chrome/browser/ui/gtk/gtk_theme_service.cc find(link_buttons_.begin(), link_buttons_.end(), button); button 1136 chrome/browser/ui/gtk/gtk_theme_service.cc void GtkThemeService::OnDestroyLabel(GtkWidget* button) { button 1137 chrome/browser/ui/gtk/gtk_theme_service.cc std::map<GtkWidget*, GdkColor>::iterator it = labels_.find(button); button 84 chrome/browser/ui/gtk/gtk_util.cc if (button_mask & (1 << event->button)) button 94 chrome/browser/ui/gtk/gtk_util.cc if (button_mask && (1 << event->button)) button 511 chrome/browser/ui/gtk/gtk_util.cc void SetButtonClickableByMouseButtons(GtkWidget* button, button 522 chrome/browser/ui/gtk/gtk_util.cc g_signal_connect(button, "button-press-event", button 524 chrome/browser/ui/gtk/gtk_util.cc g_signal_connect(button, "button-release-event", button 528 chrome/browser/ui/gtk/gtk_util.cc void SetButtonTriggersNavigation(GtkWidget* button) { button 529 chrome/browser/ui/gtk/gtk_util.cc SetButtonClickableByMouseButtons(button, true, true, false); button 601 chrome/browser/ui/gtk/gtk_util.cc GtkWidget* button = gtk_button_new_with_label(text); button 602 chrome/browser/ui/gtk/gtk_util.cc gtk_button_set_image(GTK_BUTTON(button), button 605 chrome/browser/ui/gtk/gtk_util.cc gtk_dialog_add_action_widget(GTK_DIALOG(dialog), button, button 607 chrome/browser/ui/gtk/gtk_util.cc return button; button 612 chrome/browser/ui/gtk/gtk_util.cc GtkWidget* button = gtk_button_new_with_mnemonic( button 615 chrome/browser/ui/gtk/gtk_util.cc gtk_button_set_image(GTK_BUTTON(button), button 618 chrome/browser/ui/gtk/gtk_util.cc return button; button 118 chrome/browser/ui/gtk/gtk_util.h void SetButtonClickableByMouseButtons(GtkWidget* button, button 125 chrome/browser/ui/gtk/gtk_util.h void SetButtonTriggersNavigation(GtkWidget* button); button 150 chrome/browser/ui/gtk/gtk_window_util.cc DCHECK(event->button == 1); button 176 chrome/browser/ui/gtk/gtk_window_util.cc gtk_window_begin_move_drag(window, event->button, button 13 chrome/browser/ui/gtk/hover_controller_gtk.cc HoverControllerGtk::HoverControllerGtk(GtkWidget* button) button 16 chrome/browser/ui/gtk/hover_controller_gtk.cc button_(button) { button 34 chrome/browser/ui/gtk/hover_controller_gtk.cc g_object_set_data(G_OBJECT(button), kHoverControllerGtkKey, this); button 53 chrome/browser/ui/gtk/hover_controller_gtk.cc GtkWidget* button) { button 55 chrome/browser/ui/gtk/hover_controller_gtk.cc g_object_get_data(G_OBJECT(button), kHoverControllerGtkKey)); button 25 chrome/browser/ui/gtk/hover_controller_gtk.h GtkWidget* button() { return button_; } button 34 chrome/browser/ui/gtk/hover_controller_gtk.h static HoverControllerGtk* GetHoverControllerGtk(GtkWidget* button); button 43 chrome/browser/ui/gtk/hover_controller_gtk.h explicit HoverControllerGtk(GtkWidget* button); button 83 chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc GtkWidget* button = gtk_button_new_with_label( button 85 chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc signals()->Connect(button, "clicked", button 87 chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc gtk_box_pack_start(GTK_BOX(new_hbox), button, FALSE, FALSE, 0); button 45 chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.cc void AlternateNavInfoBarGtk::OnLinkClicked(GtkWidget* button) { button 50 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc GtkWidget* button = gtk_button_new_with_label( button 52 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc signals()->Connect(button, "clicked", button 54 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc gtk_box_pack_start(GTK_BOX(new_hbox), button, FALSE, FALSE, 0); button 56 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc button = gtk_button_new_with_label( button 58 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc signals()->Connect(button, "clicked", button 60 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc gtk_box_pack_start(GTK_BOX(new_hbox), button, FALSE, FALSE, 0); button 67 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc button = gtk_button_new_with_label(label.c_str()); button 68 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc signals()->Connect(button, "clicked", button 70 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc gtk_box_pack_start(GTK_BOX(new_hbox), button, FALSE, FALSE, 0); button 77 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc button = gtk_button_new_with_label(label.c_str()); button 78 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc signals()->Connect(button, "clicked", button 80 chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc gtk_box_pack_start(GTK_BOX(new_hbox), button, FALSE, FALSE, 0); button 89 chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc GtkWidget* button = gtk_button_new_with_label(base::UTF16ToUTF8( button 91 chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc gtk_size_group_add_widget(size_group_, button); button 93 chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc gtk_util::CenterWidgetInHBox(confirm_hbox_, button, true, 0); button 94 chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc signals()->Connect(button, "clicked", button 218 chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc if (event->button != 1) button 196 chrome/browser/ui/gtk/infobars/infobar_gtk.cc GtkWidget* button = gtk_button_new(); button 197 chrome/browser/ui/gtk/infobars/infobar_gtk.cc GtkWidget* former_child = gtk_bin_get_child(GTK_BIN(button)); button 199 chrome/browser/ui/gtk/infobars/infobar_gtk.cc gtk_container_remove(GTK_CONTAINER(button), former_child); button 209 chrome/browser/ui/gtk/infobars/infobar_gtk.cc gtk_container_add(GTK_CONTAINER(button), hbox); button 211 chrome/browser/ui/gtk/infobars/infobar_gtk.cc return button; button 274 chrome/browser/ui/gtk/infobars/infobar_gtk.cc void InfoBarGtk::OnCloseButton(GtkWidget* button) { button 32 chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc GtkWidget* button = button 34 chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc signals()->Connect(button, "clicked", G_CALLBACK(&OnButtonPressedThunk), button 36 chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc gtk_box_pack_start(GTK_BOX(new_hbox), button, FALSE, FALSE, 0); button 1052 chrome/browser/ui/gtk/location_bar_view_gtk.cc if (event->button == 1) { button 1072 chrome/browser/ui/gtk/location_bar_view_gtk.cc } else if (event->button == 2) { button 1148 chrome/browser/ui/gtk/location_bar_view_gtk.cc if (event->button == 1 && GetWebContents()) { button 1159 chrome/browser/ui/gtk/location_bar_view_gtk.cc if (event->button == 1 && GetWebContents()) { button 1180 chrome/browser/ui/gtk/location_bar_view_gtk.cc if (event->button != 1) button 1811 chrome/browser/ui/gtk/location_bar_view_gtk.cc event.button = 1; button 1914 chrome/browser/ui/gtk/location_bar_view_gtk.cc switch (controller->OnClicked(extension->id(), event->button)) { button 1931 chrome/browser/ui/gtk/location_bar_view_gtk.cc context_menu_->PopupForWidget(sender, event->button, event->time); button 1978 chrome/browser/ui/gtk/location_bar_view_gtk.cc event.button = 1; button 123 chrome/browser/ui/gtk/manage_passwords_bubble_gtk.cc void ManagePasswordsBubbleGtk::OnSaveButtonClicked(GtkWidget* button) { button 129 chrome/browser/ui/gtk/manage_passwords_bubble_gtk.cc void ManagePasswordsBubbleGtk::OnNotNowButtonClicked(GtkWidget* button) { button 64 chrome/browser/ui/gtk/menu_bar_helper.cc void MenuBarHelper::Add(GtkWidget* button) { button 65 chrome/browser/ui/gtk/menu_bar_helper.cc buttons_.push_back(button); button 68 chrome/browser/ui/gtk/menu_bar_helper.cc void MenuBarHelper::Remove(GtkWidget* button) { button 70 chrome/browser/ui/gtk/menu_bar_helper.cc find(buttons_.begin(), buttons_.end(), button); button 82 chrome/browser/ui/gtk/menu_bar_helper.cc void MenuBarHelper::MenuStartedShowing(GtkWidget* button, GtkWidget* menu) { button 84 chrome/browser/ui/gtk/menu_bar_helper.cc button_showing_menu_ = button; button 117 chrome/browser/ui/gtk/menu_bar_helper.cc GtkWidget* button = buttons_[i]; button 129 chrome/browser/ui/gtk/menu_bar_helper.cc last_button, button, last_x, last_y, &x, &y)) { button 135 chrome/browser/ui/gtk/menu_bar_helper.cc last_button = button; button 138 chrome/browser/ui/gtk/menu_bar_helper.cc gtk_widget_get_allocation(button, &allocation); button 141 chrome/browser/ui/gtk/menu_bar_helper.cc if (button != button_showing_menu_) button 142 chrome/browser/ui/gtk/menu_bar_helper.cc delegate_->PopupForButton(button); button 29 chrome/browser/ui/gtk/menu_bar_helper.h virtual void PopupForButton(GtkWidget* button) = 0; button 30 chrome/browser/ui/gtk/menu_bar_helper.h virtual void PopupForButtonNextTo(GtkWidget* button, button 40 chrome/browser/ui/gtk/menu_bar_helper.h void MenuStartedShowing(GtkWidget* button, GtkWidget* menu); button 43 chrome/browser/ui/gtk/menu_bar_helper.h void Add(GtkWidget* button); button 46 chrome/browser/ui/gtk/menu_bar_helper.h void Remove(GtkWidget* button); button 59 chrome/browser/ui/gtk/menu_gtk.cc void SetUpButtonShowHandler(GtkWidget* button, button 62 chrome/browser/ui/gtk/menu_gtk.cc g_object_set_data(G_OBJECT(button), "button-model", button 64 chrome/browser/ui/gtk/menu_gtk.cc g_object_set_data(G_OBJECT(button), "button-model-id", button 68 chrome/browser/ui/gtk/menu_gtk.cc void OnSubmenuShowButtonImage(GtkWidget* widget, GtkButton* button) { button 70 chrome/browser/ui/gtk/menu_gtk.cc g_object_get_data(G_OBJECT(button), "menu-gtk-delegate")); button 72 chrome/browser/ui/gtk/menu_gtk.cc G_OBJECT(button), "button-image-idr")); button 77 chrome/browser/ui/gtk/menu_gtk.cc button, gtk_image_new_from_icon_set(icon_set, button 82 chrome/browser/ui/gtk/menu_gtk.cc void SetupImageIcon(GtkWidget* button, button 86 chrome/browser/ui/gtk/menu_gtk.cc g_object_set_data(G_OBJECT(button), "button-image-idr", button 88 chrome/browser/ui/gtk/menu_gtk.cc g_object_set_data(G_OBJECT(button), "menu-gtk-delegate", button 91 chrome/browser/ui/gtk/menu_gtk.cc g_signal_connect(menu, "show", G_CALLBACK(OnSubmenuShowButtonImage), button); button 415 chrome/browser/ui/gtk/menu_gtk.cc void MenuGtk::PopupForWidget(GtkWidget* widget, int button, button 420 chrome/browser/ui/gtk/menu_gtk.cc button, event_time); button 431 chrome/browser/ui/gtk/menu_gtk.cc void MenuGtk::PopupAsContextForStatusIcon(guint32 event_time, guint32 button, button 434 chrome/browser/ui/gtk/menu_gtk.cc icon, button, event_time); button 579 chrome/browser/ui/gtk/menu_gtk.cc GtkWidget* button = NULL; button 587 chrome/browser/ui/gtk/menu_gtk.cc button = gtk_custom_menu_item_add_button( button 593 chrome/browser/ui/gtk/menu_gtk.cc SetupImageIcon(button, menu, icon_idr, delegate_); button 596 chrome/browser/ui/gtk/menu_gtk.cc GTK_BUTTON(button), button 601 chrome/browser/ui/gtk/menu_gtk.cc SetUpButtonShowHandler(button, model, i); button 605 chrome/browser/ui/gtk/menu_gtk.cc button = gtk_custom_menu_item_add_button_label( button 609 chrome/browser/ui/gtk/menu_gtk.cc GTK_BUTTON(button), button 612 chrome/browser/ui/gtk/menu_gtk.cc SetUpButtonShowHandler(button, model, i); button 617 chrome/browser/ui/gtk/menu_gtk.cc if (button && model->PartOfGroup(i)) { button 621 chrome/browser/ui/gtk/menu_gtk.cc gtk_size_group_add_widget(group, button); button 765 chrome/browser/ui/gtk/menu_gtk.cc event_flags = event_utils::EventFlagsFromGdkState(event->button.state); button 890 chrome/browser/ui/gtk/menu_gtk.cc void MenuGtk::SetButtonItemInfo(GtkWidget* button, gpointer userdata) { button 893 chrome/browser/ui/gtk/menu_gtk.cc g_object_get_data(G_OBJECT(button), "button-model")); button 895 chrome/browser/ui/gtk/menu_gtk.cc G_OBJECT(button), "button-model-id")); button 900 chrome/browser/ui/gtk/menu_gtk.cc gtk_button_set_label(GTK_BUTTON(button), label.c_str()); button 903 chrome/browser/ui/gtk/menu_gtk.cc gtk_widget_set_sensitive(GTK_WIDGET(button), model->IsEnabledAt(index)); button 92 chrome/browser/ui/gtk/menu_gtk.h void PopupForWidget(GtkWidget* widget, int button, guint32 event_time); button 101 chrome/browser/ui/gtk/menu_gtk.h void PopupAsContextForStatusIcon(guint32 event_time, guint32 button, button 186 chrome/browser/ui/gtk/menu_gtk.h static void SetButtonItemInfo(GtkWidget* button, gpointer userdata); button 456 chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc options_menu_->PopupForWidget(widget, event->button, event->time); button 582 chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc if (event->button == 1) button 599 chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc switch (event->button) { button 982 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc if (event->button == 1 || event->button == 2) button 985 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc if (event->button == 1) { button 991 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc } else if (event->button == 2) { button 1002 chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc if (event->button != 1) button 139 chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc void OneClickSigninBubbleGtk::OnClickCloseButton(GtkWidget* button) { button 290 chrome/browser/ui/gtk/panels/panel_drag_gtk.cc if (event->button == 1) { button 628 chrome/browser/ui/gtk/panels/panel_gtk.cc if (event->button != 1) button 664 chrome/browser/ui/gtk/panels/panel_gtk.cc if (event->button != 1) button 704 chrome/browser/ui/gtk/panels/panel_gtk.cc if (event->button != 1 || event->type != GDK_BUTTON_PRESS) button 1140 chrome/browser/ui/gtk/panels/panel_gtk.cc event->button.button = 1; button 1141 chrome/browser/ui/gtk/panels/panel_gtk.cc event->button.x_root = mouse_location.x(); button 1142 chrome/browser/ui/gtk/panels/panel_gtk.cc event->button.y_root = mouse_location.y(); button 1144 chrome/browser/ui/gtk/panels/panel_gtk.cc event->button.state |= GDK_CONTROL_MASK; button 1154 chrome/browser/ui/gtk/panels/panel_gtk.cc event->button.button = 1; button 1156 chrome/browser/ui/gtk/panels/panel_gtk.cc event->button.state |= GDK_CONTROL_MASK; button 1230 chrome/browser/ui/gtk/panels/panel_gtk.cc CustomDrawButton* button; button 1233 chrome/browser/ui/gtk/panels/panel_gtk.cc button = titlebar->close_button(); button 1236 chrome/browser/ui/gtk/panels/panel_gtk.cc button = titlebar->minimize_button(); button 1239 chrome/browser/ui/gtk/panels/panel_gtk.cc button = titlebar->restore_button(); button 1245 chrome/browser/ui/gtk/panels/panel_gtk.cc return gtk_widget_get_visible(button->widget()); button 148 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc CustomDrawButton* button = new CustomDrawButton(normal_image_id, button 152 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc gtk_widget_set_size_request(button->widget(), button 155 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc gtk_widget_add_events(GTK_WIDGET(button->widget()), GDK_POINTER_MOTION_MASK); button 156 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc g_signal_connect(button->widget(), "clicked", button 160 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc gtk_widget_set_tooltip_text(button->widget(), button 164 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc gtk_box_pack_start(GTK_BOX(box), button->widget(), FALSE, FALSE, 0); button 165 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc return button; button 263 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc void PanelTitlebarGtk::OnButtonClicked(GtkWidget* button) { button 265 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc if (close_button_->widget() == button) { button 273 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc if (minimize_button_->widget() == button) { button 275 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc (event->button.state & GDK_CONTROL_MASK) ? button 277 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc } else if (restore_button_->widget() == button) { button 279 chrome/browser/ui/gtk/panels/panel_titlebar_gtk.cc (event->button.state & GDK_CONTROL_MASK) ? button 152 chrome/browser/ui/gtk/password_generation_bubble_gtk.cc void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) { button 307 chrome/browser/ui/gtk/reload_button_gtk.cc if (event->button == 3) button 308 chrome/browser/ui/gtk/reload_button_gtk.cc ShowReloadMenu(event->button, event->time); button 310 chrome/browser/ui/gtk/reload_button_gtk.cc if (event->button != 1) button 318 chrome/browser/ui/gtk/reload_button_gtk.cc event->button, button 400 chrome/browser/ui/gtk/reload_button_gtk.cc void ReloadButtonGtk::ShowReloadMenu(int button, guint32 event_time) { button 410 chrome/browser/ui/gtk/reload_button_gtk.cc menu_->PopupForWidget(widget(), button, event_time); button 94 chrome/browser/ui/gtk/reload_button_gtk.h void ShowReloadMenu(int button, guint32 event_time); button 117 chrome/browser/ui/gtk/screen_capture_notification_ui_gtk.cc GtkWidget* button = gtk_button_new_with_label(button_label.c_str()); button 118 chrome/browser/ui/gtk/screen_capture_notification_ui_gtk.cc gtk_box_pack_end(GTK_BOX(button_row), button, FALSE, FALSE, 0); button 120 chrome/browser/ui/gtk/screen_capture_notification_ui_gtk.cc g_signal_connect(button, "clicked", G_CALLBACK(OnClickedThunk), this); button 160 chrome/browser/ui/gtk/screen_capture_notification_ui_gtk.cc void ScreenCaptureNotificationUIGtk::OnClicked(GtkWidget* button) { button 278 chrome/browser/ui/gtk/screen_capture_notification_ui_gtk.cc event->button, button 339 chrome/browser/ui/gtk/ssl_client_certificate_selector.cc void SSLClientCertificateSelector::OnViewClicked(GtkWidget* button) { button 347 chrome/browser/ui/gtk/ssl_client_certificate_selector.cc void SSLClientCertificateSelector::OnCancelClicked(GtkWidget* button) { button 353 chrome/browser/ui/gtk/ssl_client_certificate_selector.cc void SSLClientCertificateSelector::OnOkClicked(GtkWidget* button) { button 64 chrome/browser/ui/gtk/status_icons/status_icon_gtk.cc void StatusIconGtk::OnPopupMenu(GtkWidget* widget, guint button, guint time) { button 67 chrome/browser/ui/gtk/status_icons/status_icon_gtk.cc menu_->PopupAsContextForStatusIcon(time, button, icon_); button 119 chrome/browser/ui/gtk/tabs/tab_gtk.cc if (event->button == 1 && event->type == GDK_BUTTON_PRESS) { button 136 chrome/browser/ui/gtk/tabs/tab_gtk.cc } else if (event->button == 3) { button 151 chrome/browser/ui/gtk/tabs/tab_gtk.cc if (event->button == 1) { button 168 chrome/browser/ui/gtk/tabs/tab_gtk.cc if (event->button == 2 && button 196 chrome/browser/ui/gtk/tabs/tab_gtk.cc GdkEventButton* button) { button 233 chrome/browser/ui/gtk/tabs/tab_gtk.cc gint old_x = static_cast<gint>(last_mouse_down_->button.x_root); button 234 chrome/browser/ui/gtk/tabs/tab_gtk.cc gint old_y = static_cast<gint>(last_mouse_down_->button.y_root); button 242 chrome/browser/ui/gtk/tabs/tab_gtk.cc static_cast<int>(last_mouse_down_->button.x), button 243 chrome/browser/ui/gtk/tabs/tab_gtk.cc static_cast<int>(last_mouse_down_->button.y))); button 1092 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc CustomDrawButton* button = CustomDrawButton::CloseButtonBar(theme_service_); button 1093 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc button->ForceChromeTheme(); button 1095 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc g_signal_connect(button->widget(), "clicked", button 1097 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc g_signal_connect(button->widget(), "button-release-event", button 1099 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc g_signal_connect(button->widget(), "enter-notify-event", button 1101 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc g_signal_connect(button->widget(), "leave-notify-event", button 1103 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc gtk_widget_set_can_focus(button->widget(), FALSE); button 1104 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc gtk_fixed_put(GTK_FIXED(tab_.get()), button->widget(), 0, 0); button 1106 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc return button; button 1135 chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc if (event->button == 2) { button 2181 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int mouse_button = event->button.button; button 2251 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc CustomDrawButton* button = new CustomDrawButton(IDR_NEWTAB_BUTTON, button 2254 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc gtk_widget_set_tooltip_text(button->widget(), button 2258 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc gtk_util::SetButtonTriggersNavigation(button->widget()); button 2259 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc g_signal_connect(button->widget(), "clicked", button 2261 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc gtk_widget_set_can_focus(button->widget(), FALSE); button 2262 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc gtk_fixed_put(GTK_FIXED(tabstrip_.get()), button->widget(), 0, 0); button 2264 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc return button; button 926 chrome/browser/ui/gtk/task_manager_gtk.cc if (event->button == 3) { button 129 chrome/browser/ui/gtk/website_settings/permission_selector.cc gboolean PermissionSelector::OnMenuButtonPressEvent(GtkWidget* button, button 131 chrome/browser/ui/gtk/website_settings/permission_selector.cc if (event->button != 1) button 133 chrome/browser/ui/gtk/website_settings/permission_selector.cc menu_->PopupForWidget(button, event->button, event->time); button 613 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc int WebsiteSettingsPopupGtk::TabstripButtonToTabIndex(GtkWidget* button) { button 614 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc GList* tabs = gtk_container_get_children(GTK_CONTAINER(button->parent)); button 617 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc if (it->data == button) button 151 chrome/browser/ui/hung_plugin_tab_helper.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 200 chrome/browser/ui/hung_plugin_tab_helper.cc InfoBarButton button) const { button 16 chrome/browser/ui/libgtk2ui/chrome_gtk_frame.cc static void meta_frames_init(MetaFrames* button) { button 163 chrome/browser/ui/libgtk2ui/gtk2_border.cc bool focused = extra.button.is_focused; button 1297 chrome/browser/ui/libgtk2ui/gtk2_ui.cc GtkWidget* button = gtk_button_new(); button 1298 chrome/browser/ui/libgtk2ui/gtk2_ui.cc gtk_widget_set_size_request(button, width, height); button 1299 chrome/browser/ui/libgtk2ui/gtk2_ui.cc gtk_container_add(GTK_CONTAINER(window), button); button 1301 chrome/browser/ui/libgtk2ui/gtk2_ui.cc gtk_widget_realize(button); button 1302 chrome/browser/ui/libgtk2ui/gtk2_ui.cc gtk_widget_show(button); button 1309 chrome/browser/ui/libgtk2ui/gtk2_ui.cc GTK_WIDGET_SET_FLAGS(button, GTK_HAS_FOCUS); button 1312 chrome/browser/ui/libgtk2ui/gtk2_ui.cc gtk_widget_set_state(button, static_cast<GtkStateType>(gtk_state)); button 1318 chrome/browser/ui/libgtk2ui/gtk2_ui.cc pixmap = gtk_widget_get_snapshot(button, NULL); button 1348 chrome/browser/ui/libgtk2ui/gtk2_ui.cc GtkWidget* button = gtk_button_new(); button 1349 chrome/browser/ui/libgtk2ui/gtk2_ui.cc gtk_container_add(GTK_CONTAINER(window), button); button 1352 chrome/browser/ui/libgtk2ui/gtk2_ui.cc gtk_widget_style_get(GTK_WIDGET(button), button 87 chrome/browser/ui/libgtk2ui/menu_util.cc event_flags = EventFlagsFromGdkState(event->button.state); button 52 chrome/browser/ui/startup/autolaunch_prompt_win.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 109 chrome/browser/ui/startup/autolaunch_prompt_win.cc InfoBarButton button) const { button 110 chrome/browser/ui/startup/autolaunch_prompt_win.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 78 chrome/browser/ui/startup/default_browser_prompt.cc virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 79 chrome/browser/ui/startup/default_browser_prompt.cc virtual bool NeedElevation(InfoBarButton button) const OVERRIDE; button 145 chrome/browser/ui/startup/default_browser_prompt.cc InfoBarButton button) const { button 146 chrome/browser/ui/startup/default_browser_prompt.cc return l10n_util::GetStringUTF16((button == BUTTON_OK) ? button 151 chrome/browser/ui/startup/default_browser_prompt.cc bool DefaultBrowserInfoBarDelegate::NeedElevation(InfoBarButton button) const { button 152 chrome/browser/ui/startup/default_browser_prompt.cc return button == BUTTON_OK; button 69 chrome/browser/ui/startup/session_crashed_infobar_delegate.cc InfoBarButton button) const { button 70 chrome/browser/ui/startup/session_crashed_infobar_delegate.cc DCHECK_EQ(BUTTON_OK, button); button 28 chrome/browser/ui/startup/session_crashed_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 46 chrome/browser/ui/test/test_confirm_bubble_model.cc BubbleButton button) const { button 47 chrome/browser/ui/test/test_confirm_bubble_model.cc return button == BUTTON_OK ? base::ASCIIToUTF16("OK") button 26 chrome/browser/ui/test/test_confirm_bubble_model.h virtual base::string16 GetButtonLabel(BubbleButton button) const OVERRIDE; button 260 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc views::LabelButton* button = new views::LabelButton( button 262 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc button->SetStyle(views::Button::STYLE_BUTTON); button 263 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc contents->AddChildView(button); button 270 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc button->RequestFocus(); button 292 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc views::LabelButton* button = new views::LabelButton( button 294 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc button->SetStyle(views::Button::STYLE_BUTTON); button 295 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc contents->AddChildView(button); button 302 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc button->RequestFocus(); button 393 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc views::LabelButton* button = new views::LabelButton( button 395 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc button->SetStyle(views::Button::STYLE_BUTTON); button 396 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc contents->AddChildView(button); button 404 chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc button->NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true); button 71 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc ui::DialogButton button) const { button 72 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc if (button == ui::DIALOG_BUTTON_CANCEL) { button 75 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc return views::DialogDelegateView::GetDialogButtonLabel(button); button 80 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc bool AppInfoDialog::IsDialogButtonEnabled(ui::DialogButton button) const { button 36 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const button 39 chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 1551 chrome/browser/ui/views/autofill/autofill_dialog_views.cc ui::DialogButton button) const { button 1552 chrome/browser/ui/views/autofill/autofill_dialog_views.cc return button == ui::DIALOG_BUTTON_OK ? button 1560 chrome/browser/ui/views/autofill/autofill_dialog_views.cc bool AutofillDialogViews::IsDialogButtonEnabled(ui::DialogButton button) const { button 1561 chrome/browser/ui/views/autofill/autofill_dialog_views.cc return delegate_->IsDialogButtonEnabled(button); button 114 chrome/browser/ui/views/autofill/autofill_dialog_views.h virtual base::string16 GetDialogButtonLabel(ui::DialogButton button) const button 117 chrome/browser/ui/views/autofill/autofill_dialog_views.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 64 chrome/browser/ui/views/avatar_menu_button_browsertest.cc AvatarMenuButton* button = GetAvatarMenuButton(); button 65 chrome/browser/ui/views/avatar_menu_button_browsertest.cc ASSERT_TRUE(button); button 68 chrome/browser/ui/views/avatar_menu_button_browsertest.cc static_cast<views::MenuButtonListener*>(button)->OnMenuButtonClicked( button 100 chrome/browser/ui/views/avatar_menu_button_browsertest.cc AvatarMenuButton* button = GetAvatarMenuButton(); button 101 chrome/browser/ui/views/avatar_menu_button_browsertest.cc static_cast<views::MenuButtonListener*>(button)->OnMenuButtonClicked( button 567 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::MenuButton* button, button 569 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc if (button == other_bookmarked_button_ || button == overflow_button_) button 1060 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::View* button = child_at(0); button 1061 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc RemoveChildView(button); button 1062 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc base::MessageLoop::current()->DeleteSoon(FROM_HERE, button); button 1086 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::TextButton* button = GetBookmarkButton(i); button 1088 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::GetCanvasForDragImage(button->GetWidget(), button->size())); button 1089 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->PaintButton(canvas.get(), views::TextButton::PB_FOR_DRAG); button 1090 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc drag_utils::SetDragImageOnDataObject(*canvas, button->size(), button 1325 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc MenuButton* button = button 1327 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_id(VIEW_ID_OTHER_BOOKMARKS); button 1328 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetIcon(GetFolderIcon()); button 1329 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_context_menu_controller(this); button 1330 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_tag(kOtherFolderButtonTag); button 1331 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc return button; button 1336 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc MenuButton* button = new OverFlowButton(this); button 1337 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetIcon(*rb->GetImageSkiaNamed(IDR_BOOKMARK_BAR_CHEVRONS)); button 1346 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->EnableCanvasFlippingForRTLUI(true); button 1349 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetVisible(false); button 1351 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetAccessibleName( button 1353 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc return button; button 1358 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc BookmarkButton* button = new BookmarkButton( button 1360 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ConfigureButton(node, button); button 1361 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc return button; button 1363 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::MenuButton* button = new BookmarkFolderButton( button 1365 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetIcon(GetFolderIcon()); button 1366 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ConfigureButton(node, button); button 1367 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc return button; button 1372 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::TextButton* button = new ShortcutButton( button 1374 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetTooltipText(l10n_util::GetStringUTF16( button 1376 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_id(VIEW_ID_BOOKMARK_BAR_ELEMENT); button 1378 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetIcon(*rb->GetImageSkiaNamed(IDR_BOOKMARK_BAR_APPS_SHORTCUT)); button 1379 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_context_menu_controller(this); button 1380 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_tag(kAppsShortcutButtonTag); button 1381 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc return button; button 1385 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::TextButton* button) { button 1386 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetText(node->GetTitle()); button 1387 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetAccessibleName(node->GetTitle()); button 1388 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_id(VIEW_ID_BOOKMARK_BAR_ELEMENT); button 1391 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetEnabledColor(GetThemeProvider()->GetColor( button 1395 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->ClearMaxTextSize(); button 1396 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_context_menu_controller(this); button 1397 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_drag_controller(this); button 1401 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetIcon(*favicon.ToImageSkia()); button 1403 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SetIcon(GetDefaultFavicon()); button 1405 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->set_max_width(kMaxButtonWidth); button 1442 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::View* button = child_at(index); button 1443 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc RemoveChildView(button); button 1444 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc base::MessageLoop::current()->DeleteSoon(FROM_HERE, button); button 1457 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::TextButton* button = GetBookmarkButton(index); button 1458 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc gfx::Size old_pref = button->GetPreferredSize(); button 1459 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ConfigureButton(node, button); button 1460 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc gfx::Size new_pref = button->GetPreferredSize(); button 1464 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc } else if (button->visible()) { button 1465 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc button->SchedulePaint(); button 1550 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc views::TextButton* button = GetBookmarkButton(i); button 1551 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc int button_x = mirrored_x - button->x(); button 1552 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc int button_w = button->width(); button 121 chrome/browser/ui/views/bookmarks/bookmark_bar_view.h void GetAnchorPositionForButton(views::MenuButton* button, button 309 chrome/browser/ui/views/bookmarks/bookmark_bar_view.h void ConfigureButton(const BookmarkNode* node, views::TextButton* button); button 56 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_controls::MouseButton button, button 60 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_controls::SendMouseEventsNotifyWhenDone(button, state, closure); button 168 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(6); button 169 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc while (button->visible()) { button 267 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 268 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 281 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 282 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ASSERT_TRUE(button->state() == views::CustomButton::STATE_PRESSED); button 300 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 301 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ASSERT_TRUE(button->state() == views::CustomButton::STATE_NORMAL); button 318 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 319 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 356 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 357 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ASSERT_TRUE(button->state() == views::CustomButton::STATE_NORMAL); button 379 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::MenuButton* button = bb_view_->other_bookmarked_button(); button 380 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 486 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 487 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 542 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 543 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 609 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->overflow_button(); button 610 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 650 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 651 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 750 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 751 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 811 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 812 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc gfx::Point loc(button->width() / 2, button->height() / 2); button 813 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::View::ConvertPointToScreen(button, &loc); button 857 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 858 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 926 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 927 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1040 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 1041 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1115 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 1116 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1214 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 1215 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1298 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 1299 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::RIGHT, button 1337 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 1338 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1409 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 1410 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1423 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 1424 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ASSERT_TRUE(button->state() == views::CustomButton::STATE_PRESSED); button 1456 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 1457 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1540 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 1541 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1554 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 1555 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc gfx::Point button_center(button->width() / 2, button->height() / 2); button 1556 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::View::ConvertPointToScreen(button, &button_center); button 1597 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 1598 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1626 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = bb_view_->other_bookmarked_button(); button 1627 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc gfx::Point button_center(button->width() / 2, button->height() / 2); button 1628 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::View::ConvertPointToScreen(button, &button_center); button 1696 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(0); button 1698 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc button, ui_controls::LEFT, ui_controls::DOWN | ui_controls::UP, button 1783 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(5); button 1784 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ui_test_utils::MoveMouseToCenterAndPress(button, ui_controls::LEFT, button 1830 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc views::TextButton* button = GetBookmarkButton(5); button 1831 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ASSERT_TRUE(button); button 1832 chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc EXPECT_EQ(ASCIIToUTF16("d"), button->text()); button 90 chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc ui::DialogButton button) const { button 91 chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc if (button == ui::DIALOG_BUTTON_OK) button 93 chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc return views::DialogDelegateView::GetDialogButtonLabel(button); button 96 chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc bool BookmarkEditorView::IsDialogButtonEnabled(ui::DialogButton button) const { button 97 chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc if (button == ui::DIALOG_BUTTON_OK) { button 82 chrome/browser/ui/views/bookmarks/bookmark_editor_view.h ui::DialogButton button) const OVERRIDE; button 83 chrome/browser/ui/views/bookmarks/bookmark_editor_view.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 168 chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc views::MenuButton** button) { button 180 chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc *button = bookmark_bar_->GetMenuButtonForNode(node); button 181 chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.cc bookmark_bar_->GetAnchorPositionForButton(*button, anchor); button 112 chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h views::MenuButton** button) OVERRIDE; button 232 chrome/browser/ui/views/collected_cookies_views.cc ui::DialogButton button) const { button 51 chrome/browser/ui/views/collected_cookies_views.h ui::DialogButton button) const OVERRIDE; button 47 chrome/browser/ui/views/confirm_bubble_views.cc ui::DialogButton button) const { button 48 chrome/browser/ui/views/confirm_bubble_views.cc switch (button) { button 55 chrome/browser/ui/views/confirm_bubble_views.cc return DialogDelegateView::GetDialogButtonLabel(button); button 59 chrome/browser/ui/views/confirm_bubble_views.cc bool ConfirmBubbleViews::IsDialogButtonEnabled(ui::DialogButton button) const { button 60 chrome/browser/ui/views/confirm_bubble_views.cc switch (button) { button 34 chrome/browser/ui/views/confirm_bubble_views.h ui::DialogButton button) const OVERRIDE; button 35 chrome/browser/ui/views/confirm_bubble_views.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 457 chrome/browser/ui/views/content_setting_bubble_contents.cc views::MenuButton* button, button 459 chrome/browser/ui/views/content_setting_bubble_contents.cc base::string16 title = button->text(); button 461 chrome/browser/ui/views/content_setting_bubble_contents.cc int width = button->GetPreferredSize().width(); button 463 chrome/browser/ui/views/content_setting_bubble_contents.cc button->SetText(menu_model->GetLabelAt(i)); button 464 chrome/browser/ui/views/content_setting_bubble_contents.cc width = std::max(width, button->GetPreferredSize().width()); button 468 chrome/browser/ui/views/content_setting_bubble_contents.cc button->SetText(title); button 83 chrome/browser/ui/views/content_setting_bubble_contents.h int GetPreferredMediaMenuWidth(views::MenuButton* button, button 344 chrome/browser/ui/views/create_application_shortcut_view.cc ui::DialogButton button) const { button 345 chrome/browser/ui/views/create_application_shortcut_view.cc if (button == ui::DIALOG_BUTTON_OK) button 347 chrome/browser/ui/views/create_application_shortcut_view.cc return views::DialogDelegateView::GetDialogButtonLabel(button); button 351 chrome/browser/ui/views/create_application_shortcut_view.cc ui::DialogButton button) const { button 352 chrome/browser/ui/views/create_application_shortcut_view.cc if (button == ui::DIALOG_BUTTON_OK) button 54 chrome/browser/ui/views/create_application_shortcut_view.h ui::DialogButton button) const OVERRIDE; button 55 chrome/browser/ui/views/create_application_shortcut_view.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 51 chrome/browser/ui/views/crypto_module_password_dialog_view.cc ui::DialogButton button) const { button 52 chrome/browser/ui/views/crypto_module_password_dialog_view.cc return l10n_util::GetStringUTF16(button == ui::DIALOG_BUTTON_OK ? button 43 chrome/browser/ui/views/crypto_module_password_dialog_view.h ui::DialogButton button) const OVERRIDE; button 171 chrome/browser/ui/views/desktop_media_picker_views.cc virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 173 chrome/browser/ui/views/desktop_media_picker_views.cc ui::DialogButton button) const OVERRIDE; button 573 chrome/browser/ui/views/desktop_media_picker_views.cc ui::DialogButton button) const { button 574 chrome/browser/ui/views/desktop_media_picker_views.cc if (button == ui::DIALOG_BUTTON_OK) button 580 chrome/browser/ui/views/desktop_media_picker_views.cc ui::DialogButton button) const { button 581 chrome/browser/ui/views/desktop_media_picker_views.cc return l10n_util::GetStringUTF16(button == ui::DIALOG_BUTTON_OK ? button 53 chrome/browser/ui/views/download/download_danger_prompt_views.cc ui::DialogButton button) const OVERRIDE; button 151 chrome/browser/ui/views/download/download_danger_prompt_views.cc ui::DialogButton button) const { button 152 chrome/browser/ui/views/download/download_danger_prompt_views.cc switch (button) { button 160 chrome/browser/ui/views/download/download_danger_prompt_views.cc return DialogDelegate::GetDialogButtonLabel(button); button 83 chrome/browser/ui/views/download/download_feedback_dialog_view.cc ui::DialogButton button) const { button 84 chrome/browser/ui/views/download/download_feedback_dialog_view.cc return (button == ui::DIALOG_BUTTON_OK) ? button 51 chrome/browser/ui/views/download/download_feedback_dialog_view.h ui::DialogButton button) const OVERRIDE; button 94 chrome/browser/ui/views/download/download_in_progress_dialog_view.cc ui::DialogButton button) const { button 95 chrome/browser/ui/views/download/download_in_progress_dialog_view.cc return (button == ui::DIALOG_BUTTON_OK) ? button 35 chrome/browser/ui/views/download/download_in_progress_dialog_view.h ui::DialogButton button) const OVERRIDE; button 361 chrome/browser/ui/views/download/download_shelf_view.cc views::Button* button, const ui::Event& event) { button 79 chrome/browser/ui/views/download/download_shelf_view.h virtual void ButtonPressed(views::Button* button, button 83 chrome/browser/ui/views/edit_search_engine_dialog.cc ui::DialogButton button) const { button 84 chrome/browser/ui/views/edit_search_engine_dialog.cc if (button == ui::DIALOG_BUTTON_OK) { button 44 chrome/browser/ui/views/edit_search_engine_dialog.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 34 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc BrowserActionButton* button) button 36 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc button_(button) { button 38 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc DCHECK(button); button 39 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc button->set_icon_observer(this); button 84 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc base::UTF8ToUTF16(view->button()->extension()->name()), button 90 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc GetBrowserAction(*view->button()->extension())-> button 94 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc icon_updaters_.push_back(new IconUpdater(menu_item, view->button())); button 133 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc return view->button()->IsEnabled(owner_->GetCurrentTabId()); button 138 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc owner_->OnBrowserActionExecuted(view->button()); button 147 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc (*views_)[start_index_ + id - 1]->button()->extension(); button 248 chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc std::string id = view->button()->extension()->id(); button 124 chrome/browser/ui/views/extensions/bundle_installed_bubble.cc views::ImageButton* button = new views::ImageButton(listener); button 125 chrome/browser/ui/views/extensions/bundle_installed_bubble.cc button->SetImage(views::CustomButton::STATE_NORMAL, button 127 chrome/browser/ui/views/extensions/bundle_installed_bubble.cc button->SetImage(views::CustomButton::STATE_HOVERED, button 129 chrome/browser/ui/views/extensions/bundle_installed_bubble.cc button->SetImage(views::CustomButton::STATE_PRESSED, button 131 chrome/browser/ui/views/extensions/bundle_installed_bubble.cc layout->AddView(button); button 149 chrome/browser/ui/views/extensions/extension_install_dialog_view.cc ui::DialogButton button) const OVERRIDE; button 973 chrome/browser/ui/views/extensions/extension_install_dialog_view.cc ui::DialogButton button) const { button 974 chrome/browser/ui/views/extensions/extension_install_dialog_view.cc switch (button) { button 85 chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc ui::DialogButton button) const OVERRIDE; button 181 chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc ui::DialogButton button) const { button 182 chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.cc return l10n_util::GetStringUTF16((button == ui::DIALOG_BUTTON_OK) ? button 260 chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc ui::DialogButton button) const { button 261 chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc return l10n_util::GetStringUTF16(button == ui::DIALOG_BUTTON_OK ? button 267 chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc ui::DialogButton button) const { button 268 chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc return button != ui::DIALOG_BUTTON_OK || confirm_available_; button 46 chrome/browser/ui/views/extensions/media_galleries_dialog_views.h ui::DialogButton button) const OVERRIDE; button 47 chrome/browser/ui/views/extensions/media_galleries_dialog_views.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 209 chrome/browser/ui/views/extensions/media_galleries_scan_result_dialog_views.cc ui::DialogButton button) const { button 210 chrome/browser/ui/views/extensions/media_galleries_scan_result_dialog_views.cc return l10n_util::GetStringUTF16(button == ui::DIALOG_BUTTON_OK ? button 48 chrome/browser/ui/views/extensions/media_galleries_scan_result_dialog_views.h ui::DialogButton button) const OVERRIDE; button 66 chrome/browser/ui/views/external_protocol_dialog.cc ui::DialogButton button) const { button 67 chrome/browser/ui/views/external_protocol_dialog.cc if (button == ui::DIALOG_BUTTON_OK) button 32 chrome/browser/ui/views/external_protocol_dialog.h ui::DialogButton button) const OVERRIDE; button 27 chrome/browser/ui/views/frame/browser_command_handler_x11.cc int button = xevent->type == GenericEvent ? ui::EventButtonFromNative(xevent) button 28 chrome/browser/ui/views/frame/browser_command_handler_x11.cc : xevent->xbutton.button; button 33 chrome/browser/ui/views/frame/browser_command_handler_x11.cc if (button == kBackMouseButton || button == kForwardMouseButton) { button 39 chrome/browser/ui/views/frame/browser_command_handler_x11.cc if (button == kBackMouseButton && controller.CanGoBack()) button 41 chrome/browser/ui/views/frame/browser_command_handler_x11.cc else if (button == kForwardMouseButton && controller.CanGoForward()) button 982 chrome/browser/ui/views/frame/browser_view.cc void BrowserView::SetWindowSwitcherButton(views::Button* button) { button 985 chrome/browser/ui/views/frame/browser_view.cc window_switcher_button_ = button; button 2436 chrome/browser/ui/views/frame/browser_view.cc NewAvatarButton* button = frame_->GetNewAvatarMenuButton(); button 2437 chrome/browser/ui/views/frame/browser_view.cc if (button) { button 2439 chrome/browser/ui/views/frame/browser_view.cc views::View::ConvertPointToScreen(button, &origin); button 2447 chrome/browser/ui/views/frame/browser_view.cc view_mode, button, views::BubbleBorder::TOP_RIGHT, button 2451 chrome/browser/ui/views/frame/browser_view.cc AvatarMenuButton* button = frame_->GetAvatarMenuButton(); button 2452 chrome/browser/ui/views/frame/browser_view.cc if (button) button 2453 chrome/browser/ui/views/frame/browser_view.cc button->ShowAvatarBubble(); button 249 chrome/browser/ui/views/frame/browser_view.h void SetWindowSwitcherButton(views::Button* button); button 517 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc views::View* button = browser_view()->window_switcher_button(); button 518 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc return button ? button->width() : 0; button 562 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc views::ImageButton* button = new views::ImageButton(this); button 564 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc button->SetImage(views::CustomButton::STATE_NORMAL, button 566 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc button->SetImage(views::CustomButton::STATE_HOVERED, button 568 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc button->SetImage(views::CustomButton::STATE_PRESSED, button 571 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc button->SetBackground( button 576 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc button->SetAccessibleName( button 578 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc button->set_id(view_id); button 579 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc AddChildView(button); button 580 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc return button; button 530 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc views::ImageButton* button, button 533 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc gfx::Size button_size = button->GetPreferredSize(); button 535 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc button->SetImageAlignment( button 549 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc button->SetDrawImageMirrored(alignment == ALIGN_LEADING && button 551 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc button == close_button_); button 566 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc button->SetBounds( button 587 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc button->SetBounds( button 134 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h views::ImageButton* button, button 195 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc views::ImageButton* button = new views::ImageButton(NULL); button 198 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc button->SetImage(views::CustomButton::STATE_NORMAL, &image); button 199 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc button->set_id(view_id); button 200 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc root_view_->AddChildView(button); button 201 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc return button; button 322 chrome/browser/ui/views/hung_renderer_view.cc ui::DialogButton button) const { button 323 chrome/browser/ui/views/hung_renderer_view.cc if (button == ui::DIALOG_BUTTON_OK) button 325 chrome/browser/ui/views/hung_renderer_view.cc return views::DialogDelegateView::GetDialogButtonLabel(button); button 127 chrome/browser/ui/views/hung_renderer_view.h ui::DialogButton button) const OVERRIDE; button 66 chrome/browser/ui/views/importer/import_lock_dialog_view.cc ui::DialogButton button) const { button 67 chrome/browser/ui/views/importer/import_lock_dialog_view.cc return l10n_util::GetStringUTF16((button == ui::DIALOG_BUTTON_OK) ? button 36 chrome/browser/ui/views/importer/import_lock_dialog_view.h ui::DialogButton button) const OVERRIDE; button 366 chrome/browser/ui/views/infobars/infobar_view.cc views::MenuButton* button, button 370 chrome/browser/ui/views/infobars/infobar_view.cc views::View::ConvertPointToScreen(button, &screen_point); button 374 chrome/browser/ui/views/infobars/infobar_view.cc GetWidget(), button, gfx::Rect(screen_point, button->size()), anchor, button 110 chrome/browser/ui/views/infobars/infobar_view.h views::MenuButton* button, button 41 chrome/browser/ui/views/infobars/translate_infobar_base.cc views::MenuButton* button, button 43 chrome/browser/ui/views/infobars/translate_infobar_base.cc DCHECK(button); button 44 chrome/browser/ui/views/infobars/translate_infobar_base.cc button->SetText(text); button 45 chrome/browser/ui/views/infobars/translate_infobar_base.cc button->ClearMaxTextSize(); button 46 chrome/browser/ui/views/infobars/translate_infobar_base.cc button->SizeToPreferredSize(); button 23 chrome/browser/ui/views/infobars/translate_infobar_base.h void UpdateLanguageButtonText(views::MenuButton* button, button 14 chrome/browser/ui/views/infobars/translate_language_menu_model.cc views::MenuButton* button, button 20 chrome/browser/ui/views/infobars/translate_language_menu_model.cc button_(button), button 30 chrome/browser/ui/views/infobars/translate_language_menu_model.h views::MenuButton* button, button 144 chrome/browser/ui/views/javascript_app_modal_dialog_views.cc ui::DialogButton button) const { button 146 chrome/browser/ui/views/javascript_app_modal_dialog_views.cc if (button == ui::DIALOG_BUTTON_OK) { button 151 chrome/browser/ui/views/javascript_app_modal_dialog_views.cc } else if (button == ui::DIALOG_BUTTON_CANCEL) { button 158 chrome/browser/ui/views/javascript_app_modal_dialog_views.cc return DialogDelegate::GetDialogButtonLabel(button); button 45 chrome/browser/ui/views/javascript_app_modal_dialog_views.h ui::DialogButton button) const OVERRIDE; button 57 chrome/browser/ui/views/login_prompt_views.cc ui::DialogButton button) const OVERRIDE { button 58 chrome/browser/ui/views/login_prompt_views.cc if (button == ui::DIALOG_BUTTON_OK) button 60 chrome/browser/ui/views/login_prompt_views.cc return DialogDelegate::GetDialogButtonLabel(button); button 82 chrome/browser/ui/views/new_avatar_menu_button_browsertest.cc NewAvatarButton* button = browser_view->frame()->GetNewAvatarMenuButton(); button 83 chrome/browser/ui/views/new_avatar_menu_button_browsertest.cc ASSERT_TRUE(button); button 89 chrome/browser/ui/views/new_avatar_menu_button_browsertest.cc button->NotifyClick(mouse_ev); button 56 chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc void Click(ui_controls::MouseButton button, button 60 chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc ASSERT_TRUE(ui_test_utils::SendMouseEventsSync(button, ui_controls::DOWN)); button 64 chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc ASSERT_TRUE(ui_test_utils::SendMouseEventsSync(button, ui_controls::UP)); button 66 chrome/browser/ui/views/outdated_upgrade_bubble_view.cc void AddElevationIconIfNeeded(views::LabelButton* button) { button 86 chrome/browser/ui/views/outdated_upgrade_bubble_view.cc button->SetImage(views::Button::STATE_NORMAL, button 33 chrome/browser/ui/views/pdf_password_dialog.cc ui::DialogButton button) const OVERRIDE; button 96 chrome/browser/ui/views/pdf_password_dialog.cc ui::DialogButton button) const { button 97 chrome/browser/ui/views/pdf_password_dialog.cc if (button == ui::DIALOG_BUTTON_OK) button 99 chrome/browser/ui/views/pdf_password_dialog.cc if (button == ui::DIALOG_BUTTON_CANCEL) button 887 chrome/browser/ui/views/profile_chooser_view.cc views::LabelButton* button = new views::LabelButton(this, item.name); button 888 chrome/browser/ui/views/profile_chooser_view.cc open_other_profile_indexes_map_[button] = index; button 889 chrome/browser/ui/views/profile_chooser_view.cc button->SetImage(views::Button::STATE_NORMAL, *image.ToImageSkia()); button 890 chrome/browser/ui/views/profile_chooser_view.cc button->SetFontList(ui::ResourceBundle::GetSharedInstance().GetFontList( button 892 chrome/browser/ui/views/profile_chooser_view.cc button->SetBorder(views::Border::NullBorder()); button 895 chrome/browser/ui/views/profile_chooser_view.cc layout->AddView(button); button 42 chrome/browser/ui/views/simple_message_box_views.cc ui::DialogButton button) const OVERRIDE; button 118 chrome/browser/ui/views/simple_message_box_views.cc ui::DialogButton button) const { button 119 chrome/browser/ui/views/simple_message_box_views.cc if (button == ui::DIALOG_BUTTON_CANCEL) button 200 chrome/browser/ui/views/ssl_client_certificate_selector.cc ui::DialogButton button) const { button 201 chrome/browser/ui/views/ssl_client_certificate_selector.cc if (button == ui::DIALOG_BUTTON_OK) button 61 chrome/browser/ui/views/ssl_client_certificate_selector.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 97 chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc ui::DialogButton button) const { button 98 chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc if (button == ui::DIALOG_BUTTON_OK) { button 50 chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h ui::DialogButton button) const OVERRIDE; button 95 chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc ui::DialogButton button) const { button 96 chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc if (button == ui::DIALOG_BUTTON_OK) button 98 chrome/browser/ui/views/tab_modal_confirm_dialog_views.cc if (button == ui::DIALOG_BUTTON_CANCEL) button 39 chrome/browser/ui/views/tab_modal_confirm_dialog_views.h ui::DialogButton button) const OVERRIDE; button 41 chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc button()->extension()); button 45 chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc return GetContainer(browser_)->GetBrowserActionViewAt(index)->button()-> button 51 chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc button()->GetIconForTest(); button 60 chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc BrowserActionButton* button = button 61 chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc GetContainer(browser_)->GetBrowserActionViewAt(index)->button(); button 62 chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc return button->extension()->id(); button 67 chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc GetContainer(browser_)->GetBrowserActionViewAt(index)->button()-> button 85 chrome/browser/ui/views/toolbar/browser_action_view.cc ExtensionAction* action = button()->browser_action(); button 52 chrome/browser/ui/views/toolbar/browser_action_view.h virtual void OnBrowserActionExecuted(BrowserActionButton* button) = 0; button 69 chrome/browser/ui/views/toolbar/browser_action_view.h BrowserActionButton* button() { return button_; } button 148 chrome/browser/ui/views/toolbar/browser_actions_container.cc if ((*i)->button()->browser_action() == action) button 156 chrome/browser/ui/views/toolbar/browser_actions_container.cc browser_action_views_[i]->button()->UpdateState(); button 358 chrome/browser/ui/views/toolbar/browser_actions_container.cc DCHECK_EQ(browser_action_views_[data.index()]->button()->extension()->id(), button 386 chrome/browser/ui/views/toolbar/browser_actions_container.cc browser_action_views_[data.index()]->button()->extension(), i); button 415 chrome/browser/ui/views/toolbar/browser_actions_container.cc BrowserActionButton* button = browser_action_views_[i]->button(); button 416 chrome/browser/ui/views/toolbar/browser_actions_container.cc if (button == sender) { button 419 chrome/browser/ui/views/toolbar/browser_actions_container.cc drag_utils::SetDragImageOnDataObject(badge, button->size(), button 425 chrome/browser/ui/views/toolbar/browser_actions_container.cc browser_action_views_[i]->button()->extension()->id(), i); button 500 chrome/browser/ui/views/toolbar/browser_actions_container.cc ShowPopup(view->button(), ExtensionPopup::SHOW_AND_INSPECT, true); button 513 chrome/browser/ui/views/toolbar/browser_actions_container.cc BrowserActionButton* button) { button 514 chrome/browser/ui/views/toolbar/browser_actions_container.cc ShowPopup(button, ExtensionPopup::SHOW, true); button 558 chrome/browser/ui/views/toolbar/browser_actions_container.cc BrowserActionButton* button = (*it)->button(); button 559 chrome/browser/ui/views/toolbar/browser_actions_container.cc if (button && button->extension() == extension) button 560 chrome/browser/ui/views/toolbar/browser_actions_container.cc return ShowPopup(button, ExtensionPopup::SHOW, should_grant); button 580 chrome/browser/ui/views/toolbar/browser_actions_container.cc BrowserActionButton* button = browser_action_views_[index]->button(); button 581 chrome/browser/ui/views/toolbar/browser_actions_container.cc OnBrowserActionExecuted(button); button 664 chrome/browser/ui/views/toolbar/browser_actions_container.cc DCHECK(browser_action_views_[i]->button()->extension() != extension) << button 709 chrome/browser/ui/views/toolbar/browser_actions_container.cc if ((*i)->button()->extension() == extension) { button 896 chrome/browser/ui/views/toolbar/browser_actions_container.cc BrowserActionButton* button, button 899 chrome/browser/ui/views/toolbar/browser_actions_container.cc const Extension* extension = button->extension(); button 908 chrome/browser/ui/views/toolbar/browser_actions_container.cc bool same_showing = popup_ && button == popup_button_; button 920 chrome/browser/ui/views/toolbar/browser_actions_container.cc View* reference_view = button->parent()->visible() ? button : chevron_; button 925 chrome/browser/ui/views/toolbar/browser_actions_container.cc popup_button_ = button; button 218 chrome/browser/ui/views/toolbar/browser_actions_container.h virtual void OnBrowserActionExecuted(BrowserActionButton* button) OVERRIDE; button 337 chrome/browser/ui/views/toolbar/browser_actions_container.h bool ShowPopup(BrowserActionButton* button, button 481 chrome/browser/ui/views/toolbar/toolbar_view.cc views::Button* button = NULL; button 484 chrome/browser/ui/views/toolbar/toolbar_view.cc button = back_; button 487 chrome/browser/ui/views/toolbar/toolbar_view.cc button = forward_; button 490 chrome/browser/ui/views/toolbar/toolbar_view.cc button = reload_; button 493 chrome/browser/ui/views/toolbar/toolbar_view.cc button = home_; button 496 chrome/browser/ui/views/toolbar/toolbar_view.cc if (button) button 497 chrome/browser/ui/views/toolbar/toolbar_view.cc button->SetEnabled(enabled); button 181 chrome/browser/ui/views/toolbar/wrench_menu.cc CustomButton* button = CustomButton::AsCustomButton(view); button 183 chrome/browser/ui/views/toolbar/wrench_menu.cc button ? button->state() : views::Button::STATE_NORMAL; button 386 chrome/browser/ui/views/toolbar/wrench_menu.cc LabelButton* button = new LabelButton(this, gfx::RemoveAcceleratorChar( button 388 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetAccessibleName( button 390 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetFocusable(true); button 391 chrome/browser/ui/views/toolbar/wrench_menu.cc button->set_request_focus_on_press(false); button 392 chrome/browser/ui/views/toolbar/wrench_menu.cc button->set_tag(index); button 393 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetEnabled(menu_model_->IsEnabledAt(index)); button 396 chrome/browser/ui/views/toolbar/wrench_menu.cc button->set_background(bg); button 400 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetBorder(scoped_ptr<views::Border>( button 402 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetHorizontalAlignment(gfx::ALIGN_CENTER); button 403 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetFontList(menu_config.font_list); button 404 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetTextColor( button 408 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetTextColor( button 412 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetTextColor( button 416 chrome/browser/ui/views/toolbar/wrench_menu.cc button->SetTextColor( button 420 chrome/browser/ui/views/toolbar/wrench_menu.cc AddChildView(button); button 423 chrome/browser/ui/views/toolbar/wrench_menu.cc DCHECK(CustomButton::AsCustomButton(button)); button 424 chrome/browser/ui/views/toolbar/wrench_menu.cc return button; button 46 chrome/browser/ui/views/translate/translate_bubble_view.cc views::LabelButton* button = new views::LabelButton(listener, label); button 47 chrome/browser/ui/views/translate/translate_bubble_view.cc button->set_id(id); button 48 chrome/browser/ui/views/translate/translate_bubble_view.cc button->SetStyle(views::Button::STYLE_BUTTON); button 49 chrome/browser/ui/views/translate/translate_bubble_view.cc return button; button 136 chrome/browser/ui/views/uninstall_view.cc ui::DialogButton button) const { button 138 chrome/browser/ui/views/uninstall_view.cc if (button == ui::DIALOG_BUTTON_OK) button 140 chrome/browser/ui/views/uninstall_view.cc return views::DialogDelegateView::GetDialogButtonLabel(button); button 44 chrome/browser/ui/views/uninstall_view.h ui::DialogButton button) const OVERRIDE; button 61 chrome/browser/ui/views/update_recommended_message_box.cc ui::DialogButton button) const { button 62 chrome/browser/ui/views/update_recommended_message_box.cc return l10n_util::GetStringUTF16((button == ui::DIALOG_BUTTON_OK) ? button 29 chrome/browser/ui/views/update_recommended_message_box.h ui::DialogButton button) const OVERRIDE; button 138 chrome/browser/ui/views/website_settings/permissions_bubble_view.cc virtual void ButtonPressed(views::Button* button, button 321 chrome/browser/ui/views/website_settings/permissions_bubble_view.cc void PermissionsBubbleDelegateView::ButtonPressed(views::Button* button, button 326 chrome/browser/ui/views/website_settings/permissions_bubble_view.cc if (button == allow_) button 328 chrome/browser/ui/views/website_settings/permissions_bubble_view.cc else if (button == deny_) button 384 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc views::Button* button, button 74 chrome/browser/ui/views/website_settings/website_settings_popup_view.h virtual void ButtonPressed(views::Button* button, button 48 chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc InfoBarButton button) const { button 49 chrome/browser/ui/website_settings/website_settings_infobar_delegate.cc DCHECK_EQ(BUTTON_OK, button); button 32 chrome/browser/ui/website_settings/website_settings_infobar_delegate.h virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; button 270 chrome/renderer/printing/print_web_view_helper_browsertest.cc mouse_event.button = blink::WebMouseEvent::ButtonLeft; button 24 chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java View button = infoBar.getContentWrapper().findViewById(buttonId); button 25 chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java if (button == null) return false; button 26 chrome/test/android/javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java if (click) new TouchCommon(test).singleClickView(button); button 115 chrome/test/base/interactive_test_utils.cc void ClickTask(ui_controls::MouseButton button, button 119 chrome/test/base/interactive_test_utils.cc ui_controls::SendMouseEventsNotifyWhenDone(button, state, followup); button 121 chrome/test/base/interactive_test_utils.cc ui_controls::SendMouseEvents(button, state); button 134 chrome/test/base/interactive_test_utils.h ui_controls::MouseButton button, button 142 chrome/test/base/interactive_test_utils.h void ClickTask(ui_controls::MouseButton button, button 74 chrome/test/base/interactive_test_utils_gtk.cc ui_controls::MouseButton button, button 81 chrome/test/base/interactive_test_utils_gtk.cc base::Bind(&internal::ClickTask, button, state, task)); button 44 chrome/test/base/interactive_test_utils_views.cc ui_controls::MouseButton button, button 64 chrome/test/base/interactive_test_utils_views.cc base::Bind(&internal::ClickTask, button, state, closure)); button 8 chrome/test/chromedriver/chrome/ui_events.cc MouseButton button, button 14 chrome/test/chromedriver/chrome/ui_events.cc button(button), button 29 chrome/test/chromedriver/chrome/ui_events.h MouseButton button, button 37 chrome/test/chromedriver/chrome/ui_events.h MouseButton button; button 82 chrome/test/chromedriver/chrome/web_view_impl.cc const char* GetAsString(MouseButton button) { button 83 chrome/test/chromedriver/chrome/web_view_impl.cc switch (button) { button 242 chrome/test/chromedriver/chrome/web_view_impl.cc params.SetString("button", GetAsString(it->button)); button 247 chrome/test/chromedriver/chrome/web_view_impl.cc if (build_no_ < 1569 && it->button == kRightMouseButton && button 34 chrome/test/chromedriver/window_commands.cc MouseButton* button) { button 42 chrome/test/chromedriver/window_commands.cc *button = static_cast<MouseButton>(button_num); button 496 chrome/test/chromedriver/window_commands.cc MouseButton button; button 497 chrome/test/chromedriver/window_commands.cc Status status = GetMouseButton(params, &button); button 502 chrome/test/chromedriver/window_commands.cc MouseEvent(kPressedMouseEventType, button, button 506 chrome/test/chromedriver/window_commands.cc MouseEvent(kReleasedMouseEventType, button, button 517 chrome/test/chromedriver/window_commands.cc MouseButton button; button 518 chrome/test/chromedriver/window_commands.cc Status status = GetMouseButton(params, &button); button 523 chrome/test/chromedriver/window_commands.cc MouseEvent(kPressedMouseEventType, button, button 534 chrome/test/chromedriver/window_commands.cc MouseButton button; button 535 chrome/test/chromedriver/window_commands.cc Status status = GetMouseButton(params, &button); button 540 chrome/test/chromedriver/window_commands.cc MouseEvent(kReleasedMouseEventType, button, button 551 chrome/test/chromedriver/window_commands.cc MouseButton button; button 552 chrome/test/chromedriver/window_commands.cc Status status = GetMouseButton(params, &button); button 557 chrome/test/chromedriver/window_commands.cc MouseEvent(kPressedMouseEventType, button, button 561 chrome/test/chromedriver/window_commands.cc MouseEvent(kReleasedMouseEventType, button, button 422 chrome/test/remoting/remote_desktop_browsertest.cc int modifiers, blink::WebMouseEvent::Button button, int x, int y) { button 443 chrome/test/remoting/remote_desktop_browsertest.cc button, button 118 chrome/test/remoting/remote_desktop_browsertest.h int modifiers, blink::WebMouseEvent::Button button, int x, int y); button 139 components/autofill/content/renderer/page_click_tracker.cc if (mouse_event.button() != 0) button 104 content/browser/accessibility/browser_accessibility_manager_unittest.cc ui::AXNodeData button; button 105 content/browser/accessibility/browser_accessibility_manager_unittest.cc button.id = 2; button 106 content/browser/accessibility/browser_accessibility_manager_unittest.cc button.SetName("Button"); button 107 content/browser/accessibility/browser_accessibility_manager_unittest.cc button.role = ui::AX_ROLE_BUTTON; button 108 content/browser/accessibility/browser_accessibility_manager_unittest.cc button.state = 0; button 134 content/browser/accessibility/browser_accessibility_manager_unittest.cc manager->UpdateNodesForTesting(button, checkbox); button 149 content/browser/accessibility/browser_accessibility_manager_unittest.cc manager->UpdateNodesForTesting(button, checkbox); button 117 content/browser/accessibility/browser_accessibility_win_unittest.cc ui::AXNodeData button; button 118 content/browser/accessibility/browser_accessibility_win_unittest.cc button.id = 2; button 119 content/browser/accessibility/browser_accessibility_win_unittest.cc button.SetName("Button"); button 120 content/browser/accessibility/browser_accessibility_win_unittest.cc button.role = ui::AX_ROLE_BUTTON; button 121 content/browser/accessibility/browser_accessibility_win_unittest.cc button.state = 0; button 145 content/browser/accessibility/browser_accessibility_win_unittest.cc manager->UpdateNodesForTesting(button, checkbox); button 156 content/browser/accessibility/browser_accessibility_win_unittest.cc manager->UpdateNodesForTesting(button, checkbox); button 175 content/browser/accessibility/cross_platform_accessibility_browsertest.cc const ui::AXNode* button = body->ChildAtIndex(0); button 176 content/browser/accessibility/cross_platform_accessibility_browsertest.cc EXPECT_EQ(ui::AX_ROLE_BUTTON, button->data().role); button 178 content/browser/accessibility/cross_platform_accessibility_browsertest.cc "input", GetAttr(button, ui::AX_ATTR_HTML_TAG).c_str()); button 181 content/browser/accessibility/cross_platform_accessibility_browsertest.cc GetAttr(button, ui::AX_ATTR_NAME).c_str()); button 184 content/browser/accessibility/cross_platform_accessibility_browsertest.cc GetAttr(button, ui::AX_ATTR_DISPLAY).c_str()); button 185 content/browser/accessibility/cross_platform_accessibility_browsertest.cc ASSERT_EQ(2U, button->data().html_attributes.size()); button 186 content/browser/accessibility/cross_platform_accessibility_browsertest.cc EXPECT_STREQ("type", button->data().html_attributes[0].first.c_str()); button 187 content/browser/accessibility/cross_platform_accessibility_browsertest.cc EXPECT_STREQ("button", button->data().html_attributes[0].second.c_str()); button 188 content/browser/accessibility/cross_platform_accessibility_browsertest.cc EXPECT_STREQ("value", button->data().html_attributes[1].first.c_str()); button 189 content/browser/accessibility/cross_platform_accessibility_browsertest.cc EXPECT_STREQ("push", button->data().html_attributes[1].second.c_str()); button 867 content/browser/devtools/renderer_overrides_handler.cc std::string button; button 869 content/browser/devtools/renderer_overrides_handler.cc &button)) { button 873 content/browser/devtools/renderer_overrides_handler.cc if (button == "none") { button 874 content/browser/devtools/renderer_overrides_handler.cc mouse_event.button = WebMouseEvent::ButtonNone; button 875 content/browser/devtools/renderer_overrides_handler.cc } else if (button == "left") { button 876 content/browser/devtools/renderer_overrides_handler.cc mouse_event.button = WebMouseEvent::ButtonLeft; button 878 content/browser/devtools/renderer_overrides_handler.cc } else if (button == "middle") { button 879 content/browser/devtools/renderer_overrides_handler.cc mouse_event.button = WebMouseEvent::ButtonMiddle; button 881 content/browser/devtools/renderer_overrides_handler.cc } else if (button == "right") { button 882 content/browser/devtools/renderer_overrides_handler.cc mouse_event.button = WebMouseEvent::ButtonRight; button 28 content/browser/gamepad/gamepad_standard_mappings.cc blink::WebGamepadButton button, float axis) { button 30 content/browser/gamepad/gamepad_standard_mappings.cc return blink::WebGamepadButton(button.pressed, value); button 64 content/browser/gamepad/gamepad_standard_mappings.h blink::WebGamepadButton button, float axis); button 735 content/browser/renderer_host/input/input_router_impl.cc switch (mouse_event.button) { button 331 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc EXPECT_EQ(mouse_event.button, WebMouseEvent::ButtonLeft); button 340 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc EXPECT_EQ(mouse_event.button, WebMouseEvent::ButtonLeft); button 94 content/browser/renderer_host/input/synthetic_gesture_target_aura.cc int WebMouseEventButtonToFlags(blink::WebMouseEvent::Button button) { button 95 content/browser/renderer_host/input/synthetic_gesture_target_aura.cc switch (button) { button 119 content/browser/renderer_host/input/synthetic_gesture_target_aura.cc int flags = WebMouseEventButtonToFlags(web_mouse.button); button 55 content/browser/renderer_host/input/web_input_event_builders_android.cc WebMouseEvent::Button button, button 74 content/browser/renderer_host/input/web_input_event_builders_android.cc result.button = button; button 76 content/browser/renderer_host/input/web_input_event_builders_android.cc result.button = WebMouseEvent::ButtonNone; button 93 content/browser/renderer_host/input/web_input_event_builders_android.cc result.button = WebMouseEvent::ButtonNone; button 19 content/browser/renderer_host/input/web_input_event_builders_android.h blink::WebMouseEvent::Button button, button 447 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonNone; button 448 content/browser/renderer_host/input/web_input_event_builders_gtk.cc if (event->button == 1) button 449 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonLeft; button 450 content/browser/renderer_host/input/web_input_event_builders_gtk.cc else if (event->button == 2) button 451 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonMiddle; button 452 content/browser/renderer_host/input/web_input_event_builders_gtk.cc else if (event->button == 3) button 453 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonRight; button 459 content/browser/renderer_host/input/web_input_event_builders_gtk.cc if (!forgetPreviousClick && result.button == last_click_button) { button 467 content/browser/renderer_host/input/web_input_event_builders_gtk.cc last_click_button = result.button; button 496 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonNone; button 498 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonLeft; button 500 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonMiddle; button 502 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonRight; button 534 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonNone; button 536 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonLeft; button 538 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonMiddle; button 540 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonRight; button 569 content/browser/renderer_host/input/web_input_event_builders_gtk.cc result.button = WebMouseEvent::ButtonNone; button 29 content/browser/renderer_host/input/web_input_event_builders_gtk_unittest.cc first_click.button = 1; button 98 content/browser/renderer_host/input/web_input_event_builders_gtk_unittest.cc mouse_down.button = 1; button 192 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonLeft; button 194 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonMiddle; button 196 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonRight; button 198 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonNone; button 202 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonNone; button 210 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonLeft; button 215 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonMiddle; button 220 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonRight; button 224 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonLeft; button 228 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonMiddle; button 232 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonRight; button 274 content/browser/renderer_host/input/web_input_event_builders_win.cc if (!cancel_previous_click && (result.button == last_click_button)) { button 282 content/browser/renderer_host/input/web_input_event_builders_win.cc last_click_button = result.button; button 328 content/browser/renderer_host/input/web_input_event_builders_win.cc result.button = WebMouseEvent::ButtonNone; button 312 content/browser/renderer_host/render_widget_host_view_gtk.cc if (!(event->button == 1 || event->button == 2 || event->button == 3)) button 132 content/browser/renderer_host/web_input_event_aura.cc webkit_event.button = blink::WebMouseEvent::ButtonNone; button 362 content/browser/renderer_host/web_input_event_aura.cc webkit_event.button = blink::WebMouseEvent::ButtonNone; button 364 content/browser/renderer_host/web_input_event_aura.cc webkit_event.button = blink::WebMouseEvent::ButtonLeft; button 366 content/browser/renderer_host/web_input_event_aura.cc webkit_event.button = blink::WebMouseEvent::ButtonMiddle; button 368 content/browser/renderer_host/web_input_event_aura.cc webkit_event.button = blink::WebMouseEvent::ButtonRight; button 398 content/browser/renderer_host/web_input_event_aura.cc webkit_event.button = blink::WebMouseEvent::ButtonNone; button 45 content/browser/speech/input_tag_speech_browsertest.cc mouse_event.button = blink::WebMouseEvent::ButtonLeft; button 31 content/browser/webui/generic_handler.cc double button; button 39 content/browser/webui/generic_handler.cc CHECK(args->GetDouble(2, &button)); button 45 content/browser/webui/generic_handler.cc CHECK(button == 0.0 || button == 1.0); button 46 content/browser/webui/generic_handler.cc bool middle_button = (button == 1.0); button 628 content/child/npapi/webplugin_delegate_impl_gtk.cc switch (event.button) { button 630 content/child/npapi/webplugin_delegate_impl_gtk.cc button_event.button = Button1; button 633 content/child/npapi/webplugin_delegate_impl_gtk.cc button_event.button = Button2; button 636 content/child/npapi/webplugin_delegate_impl_gtk.cc button_event.button = Button3; button 730 content/child/npapi/webplugin_delegate_impl_gtk.cc (np_event.xbutton.button == Button3)) { button 1159 content/child/npapi/webplugin_delegate_impl_win.cc switch (event.button) { button 1172 content/child/npapi/webplugin_delegate_impl_win.cc switch (event.button) { button 97 content/child/webfallbackthemeengine_impl.cc native_theme_extra_params->button.checked = extra_params->button.checked; button 98 content/child/webfallbackthemeengine_impl.cc native_theme_extra_params->button.indeterminate = button 99 content/child/webfallbackthemeengine_impl.cc extra_params->button.indeterminate; button 102 content/child/webfallbackthemeengine_impl.cc native_theme_extra_params->button.checked = extra_params->button.checked; button 105 content/child/webfallbackthemeengine_impl.cc native_theme_extra_params->button.is_default = button 106 content/child/webfallbackthemeengine_impl.cc extra_params->button.isDefault; button 107 content/child/webfallbackthemeengine_impl.cc native_theme_extra_params->button.has_border = button 108 content/child/webfallbackthemeengine_impl.cc extra_params->button.hasBorder; button 110 content/child/webfallbackthemeengine_impl.cc native_theme_extra_params->button.is_focused = false; button 111 content/child/webfallbackthemeengine_impl.cc native_theme_extra_params->button.background_color = button 112 content/child/webfallbackthemeengine_impl.cc extra_params->button.backgroundColor; button 90 content/child/webthemeengine_impl_android.cc native_theme_extra_params->button.checked = extra_params->button.checked; button 91 content/child/webthemeengine_impl_android.cc native_theme_extra_params->button.indeterminate = button 92 content/child/webthemeengine_impl_android.cc extra_params->button.indeterminate; button 95 content/child/webthemeengine_impl_android.cc native_theme_extra_params->button.checked = extra_params->button.checked; button 98 content/child/webthemeengine_impl_android.cc native_theme_extra_params->button.is_default = button 99 content/child/webthemeengine_impl_android.cc extra_params->button.isDefault; button 100 content/child/webthemeengine_impl_android.cc native_theme_extra_params->button.has_border = button 101 content/child/webthemeengine_impl_android.cc extra_params->button.hasBorder; button 103 content/child/webthemeengine_impl_android.cc native_theme_extra_params->button.is_focused = false; button 104 content/child/webthemeengine_impl_android.cc native_theme_extra_params->button.background_color = button 105 content/child/webthemeengine_impl_android.cc extra_params->button.backgroundColor; button 97 content/child/webthemeengine_impl_default.cc native_theme_extra_params->button.checked = extra_params->button.checked; button 98 content/child/webthemeengine_impl_default.cc native_theme_extra_params->button.indeterminate = button 99 content/child/webthemeengine_impl_default.cc extra_params->button.indeterminate; button 102 content/child/webthemeengine_impl_default.cc native_theme_extra_params->button.checked = extra_params->button.checked; button 105 content/child/webthemeengine_impl_default.cc native_theme_extra_params->button.is_default = button 106 content/child/webthemeengine_impl_default.cc extra_params->button.isDefault; button 107 content/child/webthemeengine_impl_default.cc native_theme_extra_params->button.has_border = button 108 content/child/webthemeengine_impl_default.cc extra_params->button.hasBorder; button 110 content/child/webthemeengine_impl_default.cc native_theme_extra_params->button.is_focused = false; button 111 content/child/webthemeengine_impl_default.cc native_theme_extra_params->button.background_color = button 112 content/child/webthemeengine_impl_default.cc extra_params->button.backgroundColor; button 41 content/common/input/synthetic_web_input_event_builders.cc result.button = WebMouseEvent::ButtonLeft; button 43 content/common/input/synthetic_web_input_event_builders.cc result.button = WebMouseEvent::ButtonNone; button 223 content/public/test/browser_test_utils.cc blink::WebMouseEvent::Button button) { button 226 content/public/test/browser_test_utils.cc SimulateMouseClickAt(web_contents, modifiers, button, gfx::Point(x, y)); button 231 content/public/test/browser_test_utils.cc blink::WebMouseEvent::Button button, button 235 content/public/test/browser_test_utils.cc mouse_event.button = button; button 67 content/public/test/browser_test_utils.h blink::WebMouseEvent::Button button); button 73 content/public/test/browser_test_utils.h blink::WebMouseEvent::Button button, button 305 content/public/test/render_view_test.cc mouse_event.button = WebMouseEvent::ButtonLeft; button 195 content/renderer/pepper/event_conversion.cc static_cast<PP_InputEvent_MouseButton>(mouse_event.button); button 409 content/renderer/pepper/event_conversion.cc mouse_event->button = button 413 content/renderer/pepper/event_conversion.cc mouse_event->button = WebMouseEvent::ButtonLeft; button 415 content/renderer/pepper/event_conversion.cc mouse_event->button = WebMouseEvent::ButtonMiddle; button 417 content/renderer/pepper/event_conversion.cc mouse_event->button = WebMouseEvent::ButtonRight; button 1775 content/renderer/render_view_browsertest.cc mouse_event.button = WebMouseEvent::ButtonRight; button 102 content/renderer/render_widget_fullscreen_pepper.cc mouse.button = WebMouseEvent::ButtonLeft; button 230 content/renderer/render_widget_fullscreen_pepper.cc mouse.button = WebMouseEvent::ButtonLeft; button 263 content/renderer/render_widget_fullscreen_pepper.cc mouse_event.button == WebMouseEvent::ButtonRight; button 267 content/renderer/render_widget_fullscreen_pepper.cc (mouse_event.button == WebMouseEvent::ButtonRight || button 268 content/renderer/render_widget_fullscreen_pepper.cc (mouse_event.button == WebMouseEvent::ButtonLeft && button 273 content/renderer/render_widget_fullscreen_pepper.cc mouse_event.button == WebMouseEvent::ButtonRight; button 454 content/shell/renderer/test_runner/WebTestThemeEngineMock.cpp if (extraParams->button.indeterminate) { button 459 content/shell/renderer/test_runner/WebTestThemeEngineMock.cpp } else if (extraParams->button.checked) { button 474 content/shell/renderer/test_runner/WebTestThemeEngineMock.cpp if (extraParams->button.checked) { button 70 content/shell/renderer/test_runner/event_sender.cc e->button = b; button 45 content/shell/renderer/test_runner/gamepad_controller.cc void SetButtonData(int index, int button, double data); button 121 content/shell/renderer/test_runner/gamepad_controller.cc int button, button 124 content/shell/renderer/test_runner/gamepad_controller.cc controller_->SetButtonData(index, button, data); button 213 content/shell/renderer/test_runner/gamepad_controller.cc void GamepadController::SetButtonData(int index, int button, double data) { button 216 content/shell/renderer/test_runner/gamepad_controller.cc if (button < 0 || button >= static_cast<int>(WebGamepad::buttonsLengthCap)) button 218 content/shell/renderer/test_runner/gamepad_controller.cc gamepads_.items[index].buttons[button].value = data; button 219 content/shell/renderer/test_runner/gamepad_controller.cc gamepads_.items[index].buttons[button].pressed = data > 0.1f; button 45 content/shell/renderer/test_runner/gamepad_controller.h void SetButtonData(int index, int button, double data); button 48 mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoShellActivity.java public void onClick(DialogInterface dialog, int button) { button 65 native_client_sdk/src/examples/api/input_event/input_event.cc std::string MouseButtonToString(PP_InputEvent_MouseButton button) { button 66 native_client_sdk/src/examples/api/input_event/input_event.cc switch (button) { button 77 native_client_sdk/src/examples/api/input_event/input_event.cc stream << "Unrecognized (" << static_cast<int32_t>(button) << ")"; button 145 net/cronet/android/sample/src/org/chromium/cronet_sample_apk/CronetSampleActivity.java public void onClick(DialogInterface dialog, int button) { button 103 ppapi/c/pp_input_event.h PP_InputEvent_MouseButton button; button 326 remoting/android/java/src/org/chromium/chromoting/DesktopView.java public void injectMouseEvent(int x, int y, int button, boolean pressed) { button 342 remoting/android/java/src/org/chromium/chromoting/DesktopView.java if (button == TouchInputHandler.BUTTON_UNDEFINED && !cursorMoved) { button 347 remoting/android/java/src/org/chromium/chromoting/DesktopView.java JniInterface.sendMouseEvent(x, y, button, pressed); button 12 remoting/android/java/src/org/chromium/chromoting/DesktopViewInterface.java void injectMouseEvent(int x, int y, int button, boolean pressed); button 219 remoting/android/java/src/org/chromium/chromoting/TrackingInputHandler.java private void injectButtonEvent(int button, boolean pressed) { button 220 remoting/android/java/src/org/chromium/chromoting/TrackingInputHandler.java mViewer.injectMouseEvent((int)mCursorPosition.x, (int)mCursorPosition.y, button, pressed); button 443 remoting/android/java/src/org/chromium/chromoting/TrackingInputHandler.java int button = mouseButtonFromPointerCount(pointerCount); button 444 remoting/android/java/src/org/chromium/chromoting/TrackingInputHandler.java if (button == BUTTON_UNDEFINED) { button 447 remoting/android/java/src/org/chromium/chromoting/TrackingInputHandler.java injectButtonEvent(button, true); button 448 remoting/android/java/src/org/chromium/chromoting/TrackingInputHandler.java injectButtonEvent(button, false); button 133 remoting/client/jni/chromoting_jni_instance.cc protocol::MouseEvent_MouseButton button, button 138 remoting/client/jni/chromoting_jni_instance.cc this, x, y, button, button_down)); button 145 remoting/client/jni/chromoting_jni_instance.cc event.set_button(button); button 146 remoting/client/jni/chromoting_jni_instance.cc if (button != protocol::MouseEvent::BUTTON_UNDEFINED) button 69 remoting/client/jni/chromoting_jni_instance.h protocol::MouseEvent_MouseButton button, button 305 remoting/host/client_session_unittest.cc MATCHER_P2(EqualsMouseButtonEvent, button, down, "") { button 306 remoting/host/client_session_unittest.cc return arg.button() == button && arg.button_down() == down; button 171 remoting/host/disconnect_window_linux.cc void DisconnectWindowGtk::OnClicked(GtkWidget* button) { button 280 remoting/host/disconnect_window_linux.cc event->button, button 94 remoting/host/input_injector_linux.cc void InjectScrollWheelClicks(int button, int count); button 98 remoting/host/input_injector_linux.cc int MouseButtonToX11ButtonNumber(MouseEvent::MouseButton button); button 291 remoting/host/input_injector_linux.cc void InputInjectorLinux::Core::InjectScrollWheelClicks(int button, int count) { button 292 remoting/host/input_injector_linux.cc if (button < 0) { button 298 remoting/host/input_injector_linux.cc XTestFakeButtonEvent(display_, button, true, CurrentTime); button 299 remoting/host/input_injector_linux.cc XTestFakeButtonEvent(display_, button, false, CurrentTime); button 345 remoting/host/input_injector_linux.cc int button_number = MouseButtonToX11ButtonNumber(event.button()); button 348 remoting/host/input_injector_linux.cc LOG(WARNING) << "Ignoring unknown button type: " << event.button(); button 352 remoting/host/input_injector_linux.cc VLOG(3) << "Button " << event.button() button 471 remoting/host/input_injector_linux.cc MouseEvent::MouseButton button) { button 472 remoting/host/input_injector_linux.cc switch (button) { button 268 remoting/host/input_injector_mac.cc if (event.button() >= 1 && event.button() <= 3) { button 269 remoting/host/input_injector_mac.cc VLOG(2) << "Button " << event.button() button 271 remoting/host/input_injector_mac.cc int button_change = 1 << (event.button() - 1); button 277 remoting/host/input_injector_mac.cc VLOG(1) << "Unknown mouse button: " << event.button(); button 293 remoting/host/input_injector_win.cc MouseEvent::MouseButton button = event.button(); button 299 remoting/host/input_injector_win.cc if (button == MouseEvent::BUTTON_LEFT) { button 300 remoting/host/input_injector_win.cc button = MouseEvent::BUTTON_RIGHT; button 301 remoting/host/input_injector_win.cc } else if (button == MouseEvent::BUTTON_RIGHT) { button 302 remoting/host/input_injector_win.cc button = MouseEvent::BUTTON_LEFT; button 306 remoting/host/input_injector_win.cc if (button == MouseEvent::BUTTON_LEFT) { button 308 remoting/host/input_injector_win.cc } else if (button == MouseEvent::BUTTON_MIDDLE) { button 310 remoting/host/input_injector_win.cc } else if (button == MouseEvent::BUTTON_RIGHT) { button 83 remoting/protocol/input_event_tracker.cc if (event.button() >= 1 && event.button() < MouseEvent::BUTTON_MAX) { button 84 remoting/protocol/input_event_tracker.cc uint32 button_change = 1 << (event.button() - 1); button 42 remoting/protocol/input_event_tracker_unittest.cc MATCHER_P4(EqualsMouseEvent, x, y, button, down, "") { button 43 remoting/protocol/input_event_tracker_unittest.cc return arg.x() == x && arg.y() == y && arg.button() == button && button 64 remoting/protocol/input_event_tracker_unittest.cc MouseEvent::MouseButton button, bool down) { button 68 remoting/protocol/input_event_tracker_unittest.cc event.set_button(button); button 86 third_party/npapi/bindings/npapi_extensions.h int32_t button; button 57 ui/accessibility/ax_tree_unittest.cc AXNodeData button; button 58 ui/accessibility/ax_tree_unittest.cc button.id = 2; button 59 ui/accessibility/ax_tree_unittest.cc button.role = AX_ROLE_BUTTON; button 60 ui/accessibility/ax_tree_unittest.cc button.state = 0; button 61 ui/accessibility/ax_tree_unittest.cc button.location = gfx::Rect(20, 20, 200, 30); button 71 ui/accessibility/ax_tree_unittest.cc initial_state.nodes.push_back(button); button 92 ui/accessibility/ax_tree_unittest.cc EXPECT_EQ(button.id, button_node->id()); button 93 ui/accessibility/ax_tree_unittest.cc EXPECT_EQ(button.role, button_node->data().role); button 61 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java private void setUpColorButton(View button, int index) { button 63 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setTag(null); button 64 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setContentDescription(null); button 65 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setVisibility(View.INVISIBLE); button 68 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setTag(mSuggestions[index]); button 69 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setVisibility(View.VISIBLE); button 71 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java LayerDrawable layers = (LayerDrawable) button.getBackground(); button 79 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setContentDescription(description); button 80 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setOnClickListener(this); button 110 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java View button = new View(mContext); button 117 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setLayoutParams(layoutParams); button 118 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java button.setBackgroundResource(R.drawable.color_button_background); button 119 ui/android/java/src/org/chromium/ui/ColorSuggestionListAdapter.java layout.addView(button); button 52 ui/app_list/cocoa/apps_grid_view_item.h - (NSButton*)button; button 32 ui/app_list/views/app_list_menu_views.cc void AppListMenuViews::RunMenuAt(views::MenuButton* button, button 34 ui/app_list/views/app_list_menu_views.cc ignore_result(menu_runner_->RunMenuAt(button->GetWidget(), button, button 30 ui/app_list/views/app_list_menu_views.h void RunMenuAt(views::MenuButton* button, const gfx::Point& point); button 142 ui/app_list/views/page_switcher.cc const views::View* button = buttons_->child_at(i); button 143 ui/app_list/views/page_switcher.cc if (button->bounds().Contains(buttons_point)) button 155 ui/app_list/views/page_switcher.cc PageSwitcherButton* button = button 157 ui/app_list/views/page_switcher.cc button->SetState(views::CustomButton::STATE_HOVERED); button 162 ui/app_list/views/page_switcher.cc PageSwitcherButton* button = button 164 ui/app_list/views/page_switcher.cc button->SetState(views::CustomButton::STATE_NORMAL); button 213 ui/app_list/views/page_switcher.cc PageSwitcherButton* button = button 215 ui/app_list/views/page_switcher.cc button->set_button_width(button_width); button 232 ui/app_list/views/page_switcher.cc PageSwitcherButton* button = new PageSwitcherButton(this); button 233 ui/app_list/views/page_switcher.cc button->SetSelectedRange(i == model_->selected_page() ? 1 : 0); button 234 ui/app_list/views/page_switcher.cc buttons_->AddChildView(button); button 66 ui/app_list/views/search_result_actions_view.cc views::ImageButton* button = new views::ImageButton(this); button 67 ui/app_list/views/search_result_actions_view.cc button->SetBorder(views::Border::CreateEmptyBorder(0, 9, 0, 9)); button 68 ui/app_list/views/search_result_actions_view.cc button->SetAccessibleName(action.tooltip_text); button 69 ui/app_list/views/search_result_actions_view.cc button->SetImageAlignment(views::ImageButton::ALIGN_CENTER, button 71 ui/app_list/views/search_result_actions_view.cc button->SetImage(views::CustomButton::STATE_NORMAL, &action.base_image); button 72 ui/app_list/views/search_result_actions_view.cc button->SetImage(views::CustomButton::STATE_HOVERED, &action.hover_image); button 73 ui/app_list/views/search_result_actions_view.cc button->SetImage(views::CustomButton::STATE_PRESSED, &action.pressed_image); button 74 ui/app_list/views/search_result_actions_view.cc button->SetTooltipText(action.tooltip_text); button 75 ui/app_list/views/search_result_actions_view.cc AddChildView(button); button 80 ui/app_list/views/search_result_actions_view.cc views::BlueButton* button = new views::BlueButton(this, action.label_text); button 81 ui/app_list/views/search_result_actions_view.cc button->SetAccessibleName(action.label_text); button 82 ui/app_list/views/search_result_actions_view.cc button->SetTooltipText(action.tooltip_text); button 83 ui/app_list/views/search_result_actions_view.cc button->SetFontList(ui::ResourceBundle::GetSharedInstance().GetFontList( button 85 ui/app_list/views/search_result_actions_view.cc button->SetFocusable(false); button 86 ui/app_list/views/search_result_actions_view.cc AddChildView(button); button 189 ui/aura/test/ui_controls_factory_aurax11.cc xbutton->button = Button1; button 193 ui/aura/test/ui_controls_factory_aurax11.cc xbutton->button = Button2; button 197 ui/aura/test/ui_controls_factory_aurax11.cc xbutton->button = Button3; button 44 ui/base/models/dialog_model.h virtual base::string16 GetDialogButtonLabel(DialogButton button) const = 0; button 47 ui/base/models/dialog_model.h virtual bool IsDialogButtonEnabled(DialogButton button) const = 0; button 189 ui/base/test/ui_controls_gtk.cc event->button.send_event = false; button 190 ui/base/test/ui_controls_gtk.cc event->button.time = XTimeNow(); button 197 ui/base/test/ui_controls_gtk.cc event->button.window = gtk_widget_get_window(grab_widget); button 198 ui/base/test/ui_controls_gtk.cc gdk_window_get_pointer(event->button.window, &x, &y, NULL); button 200 ui/base/test/ui_controls_gtk.cc event->button.window = gdk_window_at_pointer(&x, &y); button 201 ui/base/test/ui_controls_gtk.cc CHECK(event->button.window); button 204 ui/base/test/ui_controls_gtk.cc g_object_ref(event->button.window); button 205 ui/base/test/ui_controls_gtk.cc event->button.x = x; button 206 ui/base/test/ui_controls_gtk.cc event->button.y = y; button 208 ui/base/test/ui_controls_gtk.cc gdk_window_get_origin(event->button.window, &origin_x, &origin_y); button 209 ui/base/test/ui_controls_gtk.cc event->button.x_root = x + origin_x; button 210 ui/base/test/ui_controls_gtk.cc event->button.y_root = y + origin_y; button 212 ui/base/test/ui_controls_gtk.cc event->button.axes = NULL; button 214 ui/base/test/ui_controls_gtk.cc gdk_window_get_pointer(event->button.window, NULL, NULL, &modifier); button 215 ui/base/test/ui_controls_gtk.cc event->button.state = modifier; button 216 ui/base/test/ui_controls_gtk.cc event->button.button = type == LEFT ? 1 : (type == MIDDLE ? 2 : 3); button 217 ui/base/test/ui_controls_gtk.cc event->button.device = gdk_device_get_core_pointer(); button 219 ui/base/test/ui_controls_gtk.cc event->button.type = GDK_BUTTON_PRESS; button 225 ui/base/test/ui_controls_gtk.cc release_event->button.type = GDK_BUTTON_RELEASE; button 226 ui/base/test/ui_controls_gtk.cc release_event->button.time++; button 63 ui/base/webui/web_ui_util.cc double button = 0.0; button 69 ui/base/webui/web_ui_util.cc CHECK(args->GetDouble(start_index++, &button)); button 75 ui/base/webui/web_ui_util.cc button == 1.0, alt_key, ctrl_key, meta_key, shift_key); button 517 ui/events/x/device_data_manager.cc int DeviceDataManager::GetMappedButton(int button) { button 518 ui/events/x/device_data_manager.cc return button > 0 && button <= button_map_count_ ? button_map_[button - 1] : button 519 ui/events/x/device_data_manager.cc button; button 182 ui/events/x/device_data_manager.h int GetMappedButton(int button); button 159 ui/events/x/events_x.cc int GetEventFlagsForButton(int button) { button 160 ui/events/x/events_x.cc switch (button) { button 176 ui/events/x/events_x.cc int button = (xievent->sourceid == xievent->deviceid) ? button 178 ui/events/x/events_x.cc buttonflags |= GetEventFlagsForButton(button); button 246 ui/events/x/events_x.cc if (static_cast<int>(native_event->xbutton.button) >= kMinWheelButton && button 247 ui/events/x/events_x.cc static_cast<int>(native_event->xbutton.button) <= kMaxWheelButton) button 252 ui/events/x/events_x.cc if (static_cast<int>(native_event->xbutton.button) >= kMinWheelButton && button 253 ui/events/x/events_x.cc static_cast<int>(native_event->xbutton.button) <= kMaxWheelButton) button 290 ui/events/x/events_x.cc int button = EventButtonFromNative(native_event); button 291 ui/events/x/events_x.cc if (button >= kMinWheelButton && button <= kMaxWheelButton) button 296 ui/events/x/events_x.cc int button = EventButtonFromNative(native_event); button 298 ui/events/x/events_x.cc if (button >= kMinWheelButton && button <= kMaxWheelButton) button 338 ui/events/x/events_x.cc flags |= GetEventFlagsForButton(native_event->xbutton.button); button 373 ui/events/x/events_x.cc int button = EventButtonFromNative(native_event); button 375 ui/events/x/events_x.cc flags |= GetEventFlagsForButton(button); button 475 ui/events/x/events_x.cc int button = xievent->detail; button 478 ui/events/x/events_x.cc DeviceDataManager::GetInstance()->GetMappedButton(button) : button; button 520 ui/events/x/events_x.cc int button = native_event->type == GenericEvent ? button 521 ui/events/x/events_x.cc EventButtonFromNative(native_event) : native_event->xbutton.button; button 523 ui/events/x/events_x.cc switch (button) { button 29 ui/events/x/events_x_unittest.cc int button, button 39 ui/events/x/events_x_unittest.cc button_event->button = button; button 66 ui/gfx/gtk_compat.h inline GdkWindow* gtk_button_get_event_window(GtkButton* button) { button 67 ui/gfx/gtk_compat.h return button->event_window; button 434 ui/message_center/views/notification_view.cc NotificationButton* button = new NotificationButton(this); button 436 ui/message_center/views/notification_view.cc button->SetTitle(button_info.title); button 437 ui/message_center/views/notification_view.cc button->SetIcon(button_info.icon.AsImageSkia()); button 438 ui/message_center/views/notification_view.cc action_buttons_.push_back(button); button 439 ui/message_center/views/notification_view.cc bottom_view_->AddChildView(button); button 393 ui/message_center/views/notifier_settings_view.cc views::Button* button, button 395 ui/message_center/views/notifier_settings_view.cc if (button == checkbox_) { button 401 ui/message_center/views/notifier_settings_view.cc } else if (button == learn_more_) { button 612 ui/message_center/views/notifier_settings_view.cc NotifierButton* button = new NotifierButton(provider_, notifiers[i], this); button 613 ui/message_center/views/notifier_settings_view.cc EntryView* entry = new EntryView(button); button 632 ui/message_center/views/notifier_settings_view.cc buttons_.insert(button); button 72 ui/message_center/views/notifier_settings_view.h virtual void ButtonPressed(views::Button* button, button 194 ui/native_theme/native_theme.h ButtonExtraParams button; button 170 ui/native_theme/native_theme_base.cc PaintCheckbox(canvas, state, rect, extra.button); button 197 ui/native_theme/native_theme_base.cc PaintButton(canvas, state, rect, extra.button); button 200 ui/native_theme/native_theme_base.cc PaintRadio(canvas, state, rect, extra.button); button 509 ui/native_theme/native_theme_base.cc const ButtonExtraParams& button) const { button 521 ui/native_theme/native_theme_base.cc if (button.indeterminate) { button 528 ui/native_theme/native_theme_base.cc } else if (button.checked) { button 636 ui/native_theme/native_theme_base.cc const ButtonExtraParams& button) const { button 643 ui/native_theme/native_theme_base.cc if (!skrect.isEmpty() && button.checked) { button 662 ui/native_theme/native_theme_base.cc const ButtonExtraParams& button) const { button 667 ui/native_theme/native_theme_base.cc SkColor base_color = button.background_color; button 703 ui/native_theme/native_theme_base.cc if (button.has_border) { button 705 ui/native_theme/native_theme_base.cc if (button.is_focused) { button 745 ui/native_theme/native_theme_base.cc ButtonExtraParams button = { 0 }; button 746 ui/native_theme/native_theme_base.cc button.background_color = menu_list.background_color; button 747 ui/native_theme/native_theme_base.cc button.has_border = menu_list.has_border; button 748 ui/native_theme/native_theme_base.cc PaintButton(canvas, state, rect, button); button 72 ui/native_theme/native_theme_base.h const ButtonExtraParams& button) const; button 78 ui/native_theme/native_theme_base.h const ButtonExtraParams& button) const; button 84 ui/native_theme/native_theme_base.h const ButtonExtraParams& button) const; button 421 ui/native_theme/native_theme_win.cc PaintCheckbox(hdc, part, state, rect, extra.button); button 424 ui/native_theme/native_theme_win.cc PaintRadioButton(hdc, part, state, rect, extra.button); button 427 ui/native_theme/native_theme_win.cc PaintPushButton(hdc, part, state, rect, extra.button); button 1332 ui/views/accessibility/native_view_accessibility_win.cc CustomButton* button = static_cast<CustomButton*>(view); button 1333 ui/views/accessibility/native_view_accessibility_win.cc if (button->IsHotTracked()) button 33 ui/views/button_drag_utils.cc views::TextButton button(NULL, button 36 ui/views/button_drag_utils.cc button.set_max_width(kLinkDragImageMaxWidth); button 38 ui/views/button_drag_utils.cc button.SetIcon(*ui::ResourceBundle::GetSharedInstance().GetImageNamed( button 41 ui/views/button_drag_utils.cc button.SetIcon(icon); button 43 ui/views/button_drag_utils.cc gfx::Size prefsize = button.GetPreferredSize(); button 44 ui/views/button_drag_utils.cc button.SetBounds(0, 0, prefsize.width(), prefsize.height()); button 49 ui/views/button_drag_utils.cc button.PaintButton(canvas.get(), views::TextButton::PB_FOR_DRAG); button 144 ui/views/controls/button/checkbox.cc params->button.checked = checked_; button 38 ui/views/controls/button/custom_button_unittest.cc void PerformGesture(CustomButton* button, ui::EventType event_type) { button 43 ui/views/controls/button/custom_button_unittest.cc button->OnGestureEvent(&gesture_event); button 71 ui/views/controls/button/custom_button_unittest.cc TestCustomButton* button = new TestCustomButton(NULL); button 72 ui/views/controls/button/custom_button_unittest.cc widget->SetContentsView(button); button 75 ui/views/controls/button/custom_button_unittest.cc button->OnMousePressed(ui::MouseEvent(ui::ET_MOUSE_PRESSED, center, center, button 78 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_PRESSED, button->state()); button 80 ui/views/controls/button/custom_button_unittest.cc button->OnMouseReleased(ui::MouseEvent(ui::ET_MOUSE_RELEASED, center, center, button 83 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_HOVERED, button->state()); button 85 ui/views/controls/button/custom_button_unittest.cc button->SetEnabled(false); button 86 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_DISABLED, button->state()); button 88 ui/views/controls/button/custom_button_unittest.cc button->SetEnabled(true); button 89 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_HOVERED, button->state()); button 91 ui/views/controls/button/custom_button_unittest.cc button->SetVisible(false); button 92 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); button 94 ui/views/controls/button/custom_button_unittest.cc button->SetVisible(true); button 95 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_HOVERED, button->state()); button 101 ui/views/controls/button/custom_button_unittest.cc button->SetEnabled(false); button 102 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_DISABLED, button->state()); button 104 ui/views/controls/button/custom_button_unittest.cc button->SetEnabled(true); button 105 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); button 107 ui/views/controls/button/custom_button_unittest.cc button->SetVisible(false); button 108 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); button 110 ui/views/controls/button/custom_button_unittest.cc button->SetVisible(true); button 111 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); button 128 ui/views/controls/button/custom_button_unittest.cc TestCustomButton* button = new TestCustomButton(NULL); button 129 ui/views/controls/button/custom_button_unittest.cc widget->SetContentsView(button); button 131 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); button 133 ui/views/controls/button/custom_button_unittest.cc PerformGesture(button, ui::ET_GESTURE_TAP_DOWN); button 134 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_PRESSED, button->state()); button 136 ui/views/controls/button/custom_button_unittest.cc PerformGesture(button, ui::ET_GESTURE_SHOW_PRESS); button 137 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_PRESSED, button->state()); button 139 ui/views/controls/button/custom_button_unittest.cc PerformGesture(button, ui::ET_GESTURE_TAP_CANCEL); button 140 ui/views/controls/button/custom_button_unittest.cc EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); button 27 ui/views/controls/button/image_button_unittest.cc ImageButton button(NULL); button 30 ui/views/controls/button/image_button_unittest.cc EXPECT_TRUE(button.GetImageToPaint().isNull()); button 33 ui/views/controls/button/image_button_unittest.cc EXPECT_EQ("16x14", button.GetPreferredSize().ToString()); button 36 ui/views/controls/button/image_button_unittest.cc button.SetPreferredSize(gfx::Size(5, 15)); button 37 ui/views/controls/button/image_button_unittest.cc EXPECT_EQ("5x15", button.GetPreferredSize().ToString()); button 41 ui/views/controls/button/image_button_unittest.cc button.SetImage(CustomButton::STATE_NORMAL, &normal_image); button 44 ui/views/controls/button/image_button_unittest.cc EXPECT_FALSE(button.GetImageToPaint().isNull()); button 45 ui/views/controls/button/image_button_unittest.cc EXPECT_EQ(10, button.GetImageToPaint().width()); button 46 ui/views/controls/button/image_button_unittest.cc EXPECT_EQ(20, button.GetImageToPaint().height()); button 49 ui/views/controls/button/image_button_unittest.cc EXPECT_EQ("10x20", button.GetPreferredSize().ToString()); button 53 ui/views/controls/button/image_button_unittest.cc button.SetImage(CustomButton::STATE_PRESSED, &pushed_image); button 57 ui/views/controls/button/image_button_unittest.cc EXPECT_EQ("10x20", button.GetPreferredSize().ToString()); button 60 ui/views/controls/button/image_button_unittest.cc EXPECT_FALSE(button.GetImageToPaint().isNull()); button 61 ui/views/controls/button/image_button_unittest.cc EXPECT_EQ(10, button.GetImageToPaint().width()); button 62 ui/views/controls/button/image_button_unittest.cc EXPECT_EQ(20, button.GetImageToPaint().height()); button 66 ui/views/controls/button/image_button_unittest.cc ImageButton button(NULL); button 69 ui/views/controls/button/image_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); button 70 ui/views/controls/button/image_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_HOVERED).isNull()); button 71 ui/views/controls/button/image_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_PRESSED).isNull()); button 72 ui/views/controls/button/image_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_DISABLED).isNull()); button 77 ui/views/controls/button/image_button_unittest.cc button.SetImage(Button::STATE_NORMAL, &image1); button 78 ui/views/controls/button/image_button_unittest.cc button.SetImage(Button::STATE_HOVERED, &image2); button 80 ui/views/controls/button/image_button_unittest.cc button.GetImage(Button::STATE_NORMAL).BackedBySameObjectAs(image1)); button 82 ui/views/controls/button/image_button_unittest.cc button.GetImage(Button::STATE_HOVERED).BackedBySameObjectAs(image2)); button 83 ui/views/controls/button/image_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_PRESSED).isNull()); button 84 ui/views/controls/button/image_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_DISABLED).isNull()); button 87 ui/views/controls/button/image_button_unittest.cc button.SetImage(Button::STATE_NORMAL, NULL); button 88 ui/views/controls/button/image_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); button 92 ui/views/controls/button/image_button_unittest.cc ImageButton button(NULL); button 94 ui/views/controls/button/image_button_unittest.cc button.SetImage(CustomButton::STATE_NORMAL, &image); button 98 ui/views/controls/button/image_button_unittest.cc button.ComputeImagePaintPosition(image).ToString()); button 100 ui/views/controls/button/image_button_unittest.cc button.SetBorder(views::Border::CreateEmptyBorder(10, 5, 0, 0)); button 102 ui/views/controls/button/image_button_unittest.cc button.ComputeImagePaintPosition(image).ToString()); button 104 ui/views/controls/button/image_button_unittest.cc button.SetBorder(Border::NullBorder()); button 105 ui/views/controls/button/image_button_unittest.cc button.SetBounds(0, 0, 50, 50); button 107 ui/views/controls/button/image_button_unittest.cc button.ComputeImagePaintPosition(image).ToString()); button 109 ui/views/controls/button/image_button_unittest.cc button.SetImageAlignment(ImageButton::ALIGN_CENTER, button 112 ui/views/controls/button/image_button_unittest.cc button.ComputeImagePaintPosition(image).ToString()); button 113 ui/views/controls/button/image_button_unittest.cc button.SetBorder(views::Border::CreateEmptyBorder(10, 10, 0, 0)); button 115 ui/views/controls/button/image_button_unittest.cc button.ComputeImagePaintPosition(image).ToString()); button 119 ui/views/controls/button/image_button_unittest.cc ImageButton button(NULL); button 121 ui/views/controls/button/image_button_unittest.cc button.SetImage(CustomButton::STATE_NORMAL, &image); button 122 ui/views/controls/button/image_button_unittest.cc button.SetBounds(0, 0, 50, 30); button 123 ui/views/controls/button/image_button_unittest.cc button.SetImageAlignment(ImageButton::ALIGN_LEFT, button 125 ui/views/controls/button/image_button_unittest.cc button.SetDrawImageMirrored(true); button 130 ui/views/controls/button/image_button_unittest.cc button.ComputeImagePaintPosition(image).ToString()); button 134 ui/views/controls/button/image_button_unittest.cc ImageButton button(NULL); button 136 ui/views/controls/button/image_button_unittest.cc button.SetImage(CustomButton::STATE_NORMAL, &image); button 137 ui/views/controls/button/image_button_unittest.cc button.SetBounds(0, 0, 50, 30); button 138 ui/views/controls/button/image_button_unittest.cc button.SetImageAlignment(ImageButton::ALIGN_RIGHT, button 140 ui/views/controls/button/image_button_unittest.cc button.SetDrawImageMirrored(true); button 145 ui/views/controls/button/image_button_unittest.cc button.ComputeImagePaintPosition(image).ToString()); button 291 ui/views/controls/button/label_button.cc params->button.checked = false; button 292 ui/views/controls/button/label_button.cc params->button.indeterminate = false; button 293 ui/views/controls/button/label_button.cc params->button.is_default = is_default_; button 294 ui/views/controls/button/label_button.cc params->button.is_focused = HasFocus() && IsAccessibilityFocusable(); button 295 ui/views/controls/button/label_button.cc params->button.has_border = false; button 296 ui/views/controls/button/label_button.cc params->button.classic_state = 0; button 297 ui/views/controls/button/label_button.cc params->button.background_color = label_->background_color(); button 41 ui/views/controls/button/label_button_border.cc border->GetPainter(extra.button.is_focused, button 44 ui/views/controls/button/label_button_border.cc if (!painter && extra.button.is_focused) button 34 ui/views/controls/button/label_button_unittest.cc LabelButton button(NULL, text); button 36 ui/views/controls/button/label_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); button 37 ui/views/controls/button/label_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_HOVERED).isNull()); button 38 ui/views/controls/button/label_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_PRESSED).isNull()); button 39 ui/views/controls/button/label_button_unittest.cc EXPECT_TRUE(button.GetImage(Button::STATE_DISABLED).isNull()); button 41 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(text, button.GetText()); button 42 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(gfx::ALIGN_LEFT, button.GetHorizontalAlignment()); button 43 ui/views/controls/button/label_button_unittest.cc EXPECT_FALSE(button.is_default()); button 44 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(button.style(), Button::STYLE_TEXTBUTTON); button 45 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(Button::STATE_NORMAL, button.state()); button 47 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(button.image_->parent(), &button); button 48 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(button.label_->parent(), &button); button 52 ui/views/controls/button/label_button_unittest.cc LabelButton button(NULL, base::string16()); button 53 ui/views/controls/button/label_button_unittest.cc EXPECT_TRUE(button.GetText().empty()); button 62 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), short_text_width); button 63 ui/views/controls/button/label_button_unittest.cc button.SetText(short_text); button 64 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), font_list.GetHeight()); button 65 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), short_text_width); button 66 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), long_text_width); button 67 ui/views/controls/button/label_button_unittest.cc button.SetText(long_text); button 68 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), long_text_width); button 69 ui/views/controls/button/label_button_unittest.cc button.SetText(short_text); button 70 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), long_text_width); button 73 ui/views/controls/button/label_button_unittest.cc button.set_max_size(gfx::Size(long_text_width, 1)); button 74 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(button.GetPreferredSize(), gfx::Size(long_text_width, 1)); button 77 ui/views/controls/button/label_button_unittest.cc button.set_min_size(gfx::Size()); button 78 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), short_text_width); button 79 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), long_text_width); button 83 ui/views/controls/button/label_button_unittest.cc LabelButton button(NULL, base::string16()); button 90 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), small_size); button 91 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().height(), small_size); button 92 ui/views/controls/button/label_button_unittest.cc button.SetImage(Button::STATE_NORMAL, small_image); button 93 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), small_size); button 94 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), small_size); button 95 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), large_size); button 96 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().height(), large_size); button 97 ui/views/controls/button/label_button_unittest.cc button.SetImage(Button::STATE_NORMAL, large_image); button 98 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), large_size); button 99 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), large_size); button 100 ui/views/controls/button/label_button_unittest.cc button.SetImage(Button::STATE_NORMAL, small_image); button 101 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), large_size); button 102 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), large_size); button 105 ui/views/controls/button/label_button_unittest.cc button.set_max_size(gfx::Size(large_size, 1)); button 106 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(button.GetPreferredSize(), gfx::Size(large_size, 1)); button 109 ui/views/controls/button/label_button_unittest.cc button.set_min_size(gfx::Size()); button 110 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), small_size); button 111 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), large_size); button 115 ui/views/controls/button/label_button_unittest.cc LabelButton button(NULL, base::string16()); button 126 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), text_width); button 127 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), image_size); button 128 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().height(), image_size); button 129 ui/views/controls/button/label_button_unittest.cc button.SetText(text); button 130 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), text_width); button 131 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), font_list.GetHeight()); button 132 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), text_width + image_size); button 133 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().height(), image_size); button 134 ui/views/controls/button/label_button_unittest.cc button.SetImage(Button::STATE_NORMAL, image); button 135 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size); button 136 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), image_size); button 140 ui/views/controls/button/label_button_unittest.cc button.SetSize(button.GetPreferredSize()); button 141 ui/views/controls/button/label_button_unittest.cc button.Layout(); button 142 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(gfx::ALIGN_LEFT, button.GetHorizontalAlignment()); button 143 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.image_->bounds().right(), button.label_->bounds().x()); button 144 ui/views/controls/button/label_button_unittest.cc button.SetHorizontalAlignment(gfx::ALIGN_CENTER); button 145 ui/views/controls/button/label_button_unittest.cc button.Layout(); button 146 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(gfx::ALIGN_CENTER, button.GetHorizontalAlignment()); button 147 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.image_->bounds().right(), button.label_->bounds().x()); button 148 ui/views/controls/button/label_button_unittest.cc button.SetHorizontalAlignment(gfx::ALIGN_RIGHT); button 149 ui/views/controls/button/label_button_unittest.cc button.Layout(); button 150 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(gfx::ALIGN_RIGHT, button.GetHorizontalAlignment()); button 151 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.label_->bounds().right(), button.image_->bounds().x()); button 153 ui/views/controls/button/label_button_unittest.cc button.SetText(base::string16()); button 154 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size); button 155 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), image_size); button 156 ui/views/controls/button/label_button_unittest.cc button.SetImage(Button::STATE_NORMAL, gfx::ImageSkia()); button 157 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size); button 158 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), image_size); button 161 ui/views/controls/button/label_button_unittest.cc button.set_max_size(gfx::Size(image_size, 1)); button 162 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(button.GetPreferredSize(), gfx::Size(image_size, 1)); button 165 ui/views/controls/button/label_button_unittest.cc button.set_min_size(gfx::Size()); button 166 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), text_width); button 167 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().width(), image_size); button 168 ui/views/controls/button/label_button_unittest.cc EXPECT_LT(button.GetPreferredSize().height(), image_size); button 173 ui/views/controls/button/label_button_unittest.cc LabelButton button(NULL, text); button 175 ui/views/controls/button/label_button_unittest.cc const gfx::FontList original_font_list = button.GetFontList(); button 178 ui/views/controls/button/label_button_unittest.cc const int original_width = button.GetPreferredSize().width(); button 179 ui/views/controls/button/label_button_unittest.cc const int original_height = button.GetPreferredSize().height(); button 182 ui/views/controls/button/label_button_unittest.cc button.SetFontList(large_font_list); button 183 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().width(), original_width); button 184 ui/views/controls/button/label_button_unittest.cc EXPECT_GT(button.GetPreferredSize().height(), original_height); button 188 ui/views/controls/button/label_button_unittest.cc button.set_min_size(gfx::Size()); button 189 ui/views/controls/button/label_button_unittest.cc button.SetFontList(original_font_list); button 190 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(original_width, button.GetPreferredSize().width()); button 191 ui/views/controls/button/label_button_unittest.cc EXPECT_EQ(original_height, button.GetPreferredSize().height()); button 106 ui/views/controls/button/text_button.cc const TextButton* button = static_cast<const TextButton*>(&view); button 107 ui/views/controls/button/text_button.cc int state = button->state(); button 108 ui/views/controls/button/text_button.cc bool animating = button->GetAnimation()->is_animating(); button 115 ui/views/controls/button/text_button.cc if (button->show_multiple_icon_states() && button 127 ui/views/controls/button/text_button.cc button->GetAnimation()->CurrentValueBetween(0, 255))); button 396 ui/views/controls/button/text_button.cc params->button.checked = false; button 397 ui/views/controls/button/text_button.cc params->button.indeterminate = false; button 398 ui/views/controls/button/text_button.cc params->button.is_default = false; button 399 ui/views/controls/button/text_button.cc params->button.is_focused = false; button 400 ui/views/controls/button/text_button.cc params->button.has_border = false; button 401 ui/views/controls/button/text_button.cc params->button.classic_state = 0; button 402 ui/views/controls/button/text_button.cc params->button.background_color = button 689 ui/views/controls/button/text_button.cc params->button.is_default = is_default_; button 39 ui/views/controls/combobox/combobox_unittest.cc MenuButton* button, button 169 ui/views/controls/menu/menu_controller.cc CustomButton* button = CustomButton::AsCustomButton(view); button 170 ui/views/controls/menu/menu_controller.cc if (button) { button 171 ui/views/controls/menu/menu_controller.cc if (button->IsHotTracked()) button 172 ui/views/controls/menu/menu_controller.cc return button; button 357 ui/views/controls/menu/menu_controller.cc MenuButton* button, button 425 ui/views/controls/menu/menu_controller.cc if (button) button 426 ui/views/controls/menu/menu_controller.cc menu_button_ = button; button 889 ui/views/controls/menu/menu_controller.cc CustomButton* button = GetFirstHotTrackedView(pending_state_.item); button 890 ui/views/controls/menu/menu_controller.cc if (button) button 891 ui/views/controls/menu/menu_controller.cc button->SetHotTracked(false); button 1201 ui/views/controls/menu/menu_controller.cc CustomButton* button = static_cast<CustomButton*>(hot_view); button 1202 ui/views/controls/menu/menu_controller.cc button->SetHotTracked(true); button 1282 ui/views/controls/menu/menu_controller.cc MenuButton* button = NULL; button 1285 ui/views/controls/menu/menu_controller.cc screen_point, &anchor, &has_mnemonics, &button); button 1291 ui/views/controls/menu/menu_controller.cc if (!button) { button 1301 ui/views/controls/menu/menu_controller.cc menu_button_ = button; button 1309 ui/views/controls/menu/menu_controller.cc View::ConvertPointToScreen(button, &screen_menu_loc); button 1315 ui/views/controls/menu/menu_controller.cc button->width(), button->height() - 1), button 1948 ui/views/controls/menu/menu_controller.cc CustomButton* button = GetFirstHotTrackedView(item); button 1949 ui/views/controls/menu/menu_controller.cc if (button) { button 1950 ui/views/controls/menu/menu_controller.cc button->SetHotTracked(false); button 1951 ui/views/controls/menu/menu_controller.cc View* to_make_hot = GetNextFocusableView(item, button, delta == 1); button 76 ui/views/controls/menu/menu_controller.h MenuButton* button, button 136 ui/views/controls/menu/menu_delegate.cc MenuButton** button) { button 218 ui/views/controls/menu/menu_delegate.h MenuButton** button); button 44 ui/views/controls/menu/menu_runner.cc MenuButton* button, button 66 ui/views/controls/menu/menu_runner.cc bool ShouldShowMnemonics(MenuButton* button); button 145 ui/views/controls/menu/menu_runner.cc MenuButton* button, button 194 ui/views/controls/menu/menu_runner.cc !for_drop_ && ShouldShowMnemonics(button)); button 198 ui/views/controls/menu/menu_runner.cc MenuItemView* result = controller->Run(parent, button, menu_, bounds, anchor, button 270 ui/views/controls/menu/menu_runner.cc bool MenuRunnerImpl::ShouldShowMnemonics(MenuButton* button) { button 272 ui/views/controls/menu/menu_runner.cc bool show_mnemonics = button ? button->HasFocus() : false; button 301 ui/views/controls/menu/menu_runner.cc MenuButton* button, button 307 ui/views/controls/menu/menu_runner.cc return runner_handler_->RunMenuAt(parent, button, bounds, anchor, button 335 ui/views/controls/menu/menu_runner.cc return holder_->RunMenuAt(parent, button, bounds, anchor, types); button 104 ui/views/controls/menu/menu_runner.h MenuButton* button, button 22 ui/views/controls/menu/menu_runner_handler.h MenuButton* button, button 36 ui/views/controls/scrollbar/native_scroll_bar_wrapper.h static NativeScrollBarWrapper* CreateWrapper(NativeScrollBar* button); button 28 ui/views/examples/progress_bar_example.h virtual void ButtonPressed(Button* button, const ui::Event& event) OVERRIDE; button 83 ui/views/examples/tabbed_pane_example.cc LabelButton* button = new LabelButton(NULL, ASCIIToUTF16(label)); button 84 ui/views/examples/tabbed_pane_example.cc tabbed_pane_->AddTab(ASCIIToUTF16(label), button); button 244 ui/views/examples/text_example.cc void TextExample::ButtonPressed(Button* button, const ui::Event& event) { button 43 ui/views/examples/text_example.h virtual void ButtonPressed(Button* button, const ui::Event& event) OVERRIDE; button 46 ui/views/examples/widget_example.cc LabelButton* button = new LabelButton(NULL, ASCIIToUTF16("Extra button!")); button 47 ui/views/examples/widget_example.cc button->SetStyle(Button::STYLE_BUTTON); button 48 ui/views/examples/widget_example.cc return button; button 82 ui/views/examples/widget_example.cc LabelButton* button = new LabelButton(this, ASCIIToUTF16(label)); button 83 ui/views/examples/widget_example.cc button->SetFocusable(true); button 84 ui/views/examples/widget_example.cc button->set_tag(tag); button 85 ui/views/examples/widget_example.cc container->AddChildView(button); button 360 ui/views/focus/focus_traversal_unittest.cc LabelButton* button = new LabelButton(NULL, ASCIIToUTF16("Click me")); button 361 ui/views/focus/focus_traversal_unittest.cc button->SetStyle(Button::STYLE_BUTTON); button 362 ui/views/focus/focus_traversal_unittest.cc button->SetBounds(label_x, y + 10, 80, 30); button 363 ui/views/focus/focus_traversal_unittest.cc button->set_id(kFruitButtonID); button 364 ui/views/focus/focus_traversal_unittest.cc left_container_->AddChildView(button); button 456 ui/views/focus/focus_traversal_unittest.cc button = new LabelButton(NULL, ASCIIToUTF16("OK")); button 457 ui/views/focus/focus_traversal_unittest.cc button->SetStyle(Button::STYLE_BUTTON); button 458 ui/views/focus/focus_traversal_unittest.cc button->set_id(kOKButtonID); button 459 ui/views/focus/focus_traversal_unittest.cc button->SetIsDefault(true); button 461 ui/views/focus/focus_traversal_unittest.cc GetContentsView()->AddChildView(button); button 462 ui/views/focus/focus_traversal_unittest.cc button->SetBounds(150, y, width, 30); button 464 ui/views/focus/focus_traversal_unittest.cc button = new LabelButton(NULL, ASCIIToUTF16("Cancel")); button 465 ui/views/focus/focus_traversal_unittest.cc button->SetStyle(Button::STYLE_BUTTON); button 466 ui/views/focus/focus_traversal_unittest.cc button->set_id(kCancelButtonID); button 467 ui/views/focus/focus_traversal_unittest.cc GetContentsView()->AddChildView(button); button 468 ui/views/focus/focus_traversal_unittest.cc button->SetBounds(220, y, width, 30); button 470 ui/views/focus/focus_traversal_unittest.cc button = new LabelButton(NULL, ASCIIToUTF16("Help")); button 471 ui/views/focus/focus_traversal_unittest.cc button->SetStyle(Button::STYLE_BUTTON); button 472 ui/views/focus/focus_traversal_unittest.cc button->set_id(kHelpButtonID); button 473 ui/views/focus/focus_traversal_unittest.cc GetContentsView()->AddChildView(button); button 474 ui/views/focus/focus_traversal_unittest.cc button->SetBounds(290, y, width, 30); button 524 ui/views/focus/focus_traversal_unittest.cc button = new LabelButton(NULL, ASCIIToUTF16("Search")); button 525 ui/views/focus/focus_traversal_unittest.cc button->SetStyle(Button::STYLE_BUTTON); button 526 ui/views/focus/focus_traversal_unittest.cc contents->AddChildView(button); button 527 ui/views/focus/focus_traversal_unittest.cc button->SetBounds(112, 5, 60, 30); button 528 ui/views/focus/focus_traversal_unittest.cc button->set_id(kSearchButtonID); button 548 ui/views/focus/focus_traversal_unittest.cc button = new LabelButton(NULL, ASCIIToUTF16("Star")); button 549 ui/views/focus/focus_traversal_unittest.cc button->SetStyle(Button::STYLE_BUTTON); button 550 ui/views/focus/focus_traversal_unittest.cc contents->AddChildView(button); button 551 ui/views/focus/focus_traversal_unittest.cc button->SetBounds(5, 5, 50, 30); button 552 ui/views/focus/focus_traversal_unittest.cc button->set_id(kThumbnailStarID); button 553 ui/views/focus/focus_traversal_unittest.cc button = new LabelButton(NULL, ASCIIToUTF16("SuperStar")); button 554 ui/views/focus/focus_traversal_unittest.cc button->SetStyle(Button::STYLE_BUTTON); button 555 ui/views/focus/focus_traversal_unittest.cc contents->AddChildView(button); button 556 ui/views/focus/focus_traversal_unittest.cc button->SetBounds(60, 5, 100, 30); button 557 ui/views/focus/focus_traversal_unittest.cc button->set_id(kThumbnailSuperStarID); button 220 ui/views/test/ui_controls_factory_desktop_aurax11.cc xbutton->button = Button1; button 224 ui/views/test/ui_controls_factory_desktop_aurax11.cc xbutton->button = Button2; button 228 ui/views/test/ui_controls_factory_desktop_aurax11.cc xbutton->button = Button3; button 117 ui/views/touchui/touch_editing_menu.cc Button* button = CreateButton(l10n_util::GetStringUTF16(command_id), button 119 ui/views/touchui/touch_editing_menu.cc AddChildView(button); button 132 ui/views/touchui/touch_editing_menu.cc LabelButton* button = new LabelButton(this, label); button 133 ui/views/touchui/touch_editing_menu.cc button->SetFocusable(true); button 134 ui/views/touchui/touch_editing_menu.cc button->set_request_focus_on_press(false); button 139 ui/views/touchui/touch_editing_menu.cc new LabelButtonBorder(button->style())); button 144 ui/views/touchui/touch_editing_menu.cc button->SetBorder(button_border.PassAs<Border>()); button 145 ui/views/touchui/touch_editing_menu.cc button->SetFontList(font_list); button 146 ui/views/touchui/touch_editing_menu.cc button->set_tag(tag); button 147 ui/views/touchui/touch_editing_menu.cc return button; button 107 ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc if (xev->xbutton.button == Button1) { button 575 ui/views/window/custom_frame_view.cc ImageButton* button = new ImageButton(this); button 576 ui/views/window/custom_frame_view.cc button->SetAccessibleName(l10n_util::GetStringUTF16(accessibility_string_id)); button 577 ui/views/window/custom_frame_view.cc button->SetImage(CustomButton::STATE_NORMAL, button 579 ui/views/window/custom_frame_view.cc button->SetImage(CustomButton::STATE_HOVERED, button 581 ui/views/window/custom_frame_view.cc button->SetImage(CustomButton::STATE_PRESSED, button 583 ui/views/window/custom_frame_view.cc AddChildView(button); button 584 ui/views/window/custom_frame_view.cc return button; button 38 ui/views/window/dialog_client_view.cc void LayoutButton(LabelButton* button, gfx::Rect* row_bounds) { button 39 ui/views/window/dialog_client_view.cc if (!button) button 42 ui/views/window/dialog_client_view.cc const gfx::Size size = button->GetPreferredSize(); button 44 ui/views/window/dialog_client_view.cc button->SetBounds(row_bounds->right(), row_bounds->y(), button 374 ui/views/window/dialog_client_view.cc LabelButton* button = NULL; button 378 ui/views/window/dialog_client_view.cc button = new BlueButton(this, title); button 380 ui/views/window/dialog_client_view.cc button = new LabelButton(this, title); button 381 ui/views/window/dialog_client_view.cc button->SetStyle(Button::STYLE_BUTTON); button 383 ui/views/window/dialog_client_view.cc button->SetFocusable(true); button 386 ui/views/window/dialog_client_view.cc button->set_min_size(gfx::Size(kDialogMinButtonWidth, 0)); button 387 ui/views/window/dialog_client_view.cc button->SetGroup(kButtonGroup); button 388 ui/views/window/dialog_client_view.cc return button; button 391 ui/views/window/dialog_client_view.cc void DialogClientView::UpdateButton(LabelButton* button, button 394 ui/views/window/dialog_client_view.cc button->SetText(dialog->GetDialogButtonLabel(type)); button 395 ui/views/window/dialog_client_view.cc button->SetEnabled(dialog->IsDialogButtonEnabled(type)); button 398 ui/views/window/dialog_client_view.cc default_button_ = button; button 399 ui/views/window/dialog_client_view.cc button->SetIsDefault(true); button 96 ui/views/window/dialog_client_view.h void UpdateButton(LabelButton* button, ui::DialogButton type); button 106 ui/views/window/dialog_delegate.cc ui::DialogButton button) const { button 107 ui/views/window/dialog_delegate.cc if (button == ui::DIALOG_BUTTON_OK) button 109 ui/views/window/dialog_delegate.cc if (button == ui::DIALOG_BUTTON_CANCEL) { button 118 ui/views/window/dialog_delegate.cc bool DialogDelegate::IsDialogButtonEnabled(ui::DialogButton button) const { button 83 ui/views/window/dialog_delegate.h ui::DialogButton button) const OVERRIDE; button 84 ui/views/window/dialog_delegate.h virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; button 50 ui/views/window/dialog_delegate_unittest.cc void PressEnterAndCheckStates(Button* button) { button 57 ui/views/window/dialog_delegate_unittest.cc CheckAndResetStates(button == client_view->cancel_button(), button 58 ui/views/window/dialog_delegate_unittest.cc button == client_view->ok_button(), button 59 ui/views/window/dialog_delegate_unittest.cc (canceled_ || accepted_ ) ? NULL : button);