/external/chromium_org/ui/views/controls/button/ |
D | custom_button.cc | 27 const char CustomButton::kViewClassName[] = "CustomButton"; 33 const CustomButton* CustomButton::AsCustomButton(const views::View* view) { in AsCustomButton() 37 CustomButton* CustomButton::AsCustomButton(views::View* view) { in AsCustomButton() 41 !strcmp(classname, CustomButton::kViewClassName) || in AsCustomButton() 47 return static_cast<CustomButton*>(view); in AsCustomButton() 53 CustomButton::~CustomButton() { in ~CustomButton() 56 void CustomButton::SetState(ButtonState state) { in SetState() 83 void CustomButton::StartThrobbing(int cycles_til_stop) { in StartThrobbing() 88 void CustomButton::StopThrobbing() { in StopThrobbing() 95 void CustomButton::SetAnimationDuration(int duration) { in SetAnimationDuration() [all …]
|
D | custom_button_unittest.cc | 29 class TestCustomButton : public CustomButton { 32 : CustomButton(listener) { in TestCustomButton() 42 void PerformGesture(CustomButton* button, ui::EventType event_type) { in PerformGesture() 84 EXPECT_EQ(CustomButton::STATE_PRESSED, button->state()); in TEST_F() 88 EXPECT_EQ(CustomButton::STATE_HOVERED, button->state()); in TEST_F() 91 EXPECT_EQ(CustomButton::STATE_DISABLED, button->state()); in TEST_F() 94 EXPECT_EQ(CustomButton::STATE_HOVERED, button->state()); in TEST_F() 97 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F() 100 EXPECT_EQ(CustomButton::STATE_HOVERED, button->state()); in TEST_F() 108 EXPECT_EQ(CustomButton::STATE_DISABLED, button->state()); in TEST_F() [all …]
|
D | custom_button.h | 26 class VIEWS_EXPORT CustomButton : public Button, 32 static const CustomButton* AsCustomButton(const views::View* view); 33 static CustomButton* AsCustomButton(views::View* view); 35 virtual ~CustomButton(); 100 explicit CustomButton(ButtonListener* listener); 143 DISALLOW_COPY_AND_ASSIGN(CustomButton);
|
D | image_button_unittest.cc | 41 button.SetImage(CustomButton::STATE_NORMAL, &normal_image); in TEST_F() 53 button.SetImage(CustomButton::STATE_PRESSED, &pushed_image); in TEST_F() 113 button.SetImage(CustomButton::STATE_NORMAL, &image); in TEST_F() 140 button.SetImage(CustomButton::STATE_NORMAL, &image); in TEST_F() 155 button.SetImage(CustomButton::STATE_NORMAL, &image); in TEST_F()
|
/external/chromium_org/ui/views/controls/scrollbar/ |
D | base_scroll_bar_thumb.cc | 23 state_(CustomButton::STATE_NORMAL) { in BaseScrollBarThumb() 69 SetState(CustomButton::STATE_HOVERED); in OnMouseEntered() 73 SetState(CustomButton::STATE_NORMAL); in OnMouseExited() 79 SetState(CustomButton::STATE_PRESSED); in OnMousePressed() 114 CustomButton::STATE_HOVERED : CustomButton::STATE_NORMAL); in OnMouseReleased() 118 SetState(CustomButton::STATE_HOVERED); in OnMouseCaptureLost() 121 CustomButton::ButtonState BaseScrollBarThumb::GetState() const { in GetState() 125 void BaseScrollBarThumb::SetState(CustomButton::ButtonState state) { in SetState() 129 CustomButton::ButtonState old_state = state_; in SetState()
|
D | base_scroll_bar.cc | 44 thumb_track_state_(CustomButton::STATE_NORMAL), in BaseScrollBar() 118 void BaseScrollBar::OnThumbStateChanged(CustomButton::ButtonState old_state, in OnThumbStateChanged() 119 CustomButton::ButtonState new_state) { in OnThumbStateChanged() 120 if (old_state == CustomButton::STATE_PRESSED && in OnThumbStateChanged() 121 new_state == CustomButton::STATE_NORMAL && in OnThumbStateChanged() 122 GetThumbTrackState() == CustomButton::STATE_HOVERED) { in OnThumbStateChanged() 123 SetThumbTrackState(CustomButton::STATE_NORMAL); in OnThumbStateChanged() 138 CustomButton::STATE_HOVERED : CustomButton::STATE_NORMAL); in OnMouseReleased() 142 SetState(CustomButton::STATE_NORMAL); in OnMouseCaptureLost() 146 SetThumbTrackState(CustomButton::STATE_HOVERED); in OnMouseEntered() [all …]
|
D | base_scroll_bar.h | 63 void OnThumbStateChanged(CustomButton::ButtonState old_state, 64 CustomButton::ButtonState new_state); 105 CustomButton::ButtonState GetThumbTrackState() const; 123 void SetState(CustomButton::ButtonState state); 147 void SetThumbTrackState(CustomButton::ButtonState state); 162 CustomButton::ButtonState thumb_track_state_;
|
D | kennedy_scroll_bar.cc | 52 (GetState() == CustomButton::STATE_HOVERED || in OnPaint() 53 GetState() == CustomButton::STATE_PRESSED) ? in OnPaint() 98 CustomButton::ButtonState state = GetThumbTrackState(); in OnPaint() 99 if ((state == CustomButton::STATE_HOVERED) || in OnPaint() 100 (state == CustomButton::STATE_PRESSED)) { in OnPaint()
|
D | native_scroll_bar_views.cc | 104 case CustomButton::STATE_HOVERED: in GetNativeThemeParams() 136 case CustomButton::STATE_HOVERED: in GetNativeThemeState() 139 case CustomButton::STATE_PRESSED: in GetNativeThemeState() 142 case CustomButton::STATE_DISABLED: in GetNativeThemeState() 145 case CustomButton::STATE_NORMAL: in GetNativeThemeState() 193 (GetState() != CustomButton::STATE_HOVERED); in GetNativeThemeParams() 207 case CustomButton::STATE_HOVERED: in GetNativeThemeState() 210 case CustomButton::STATE_PRESSED: in GetNativeThemeState() 213 case CustomButton::STATE_DISABLED: in GetNativeThemeState() 216 case CustomButton::STATE_NORMAL: in GetNativeThemeState()
|
D | base_scroll_bar_thumb.h | 59 CustomButton::ButtonState GetState() const; 61 void SetState(CustomButton::ButtonState state); 76 CustomButton::ButtonState state_;
|
/external/chromium/chrome/browser/ui/views/ |
D | toolbar_view.cc | 629 back_->SetImage(views::CustomButton::BS_NORMAL, tp->GetBitmapNamed(IDR_BACK)); in LoadImages() 630 back_->SetImage(views::CustomButton::BS_HOT, tp->GetBitmapNamed(IDR_BACK_H)); in LoadImages() 631 back_->SetImage(views::CustomButton::BS_PUSHED, in LoadImages() 633 back_->SetImage(views::CustomButton::BS_DISABLED, in LoadImages() 636 forward_->SetImage(views::CustomButton::BS_NORMAL, in LoadImages() 638 forward_->SetImage(views::CustomButton::BS_HOT, in LoadImages() 640 forward_->SetImage(views::CustomButton::BS_PUSHED, in LoadImages() 642 forward_->SetImage(views::CustomButton::BS_DISABLED, in LoadImages() 645 reload_->SetImage(views::CustomButton::BS_NORMAL, in LoadImages() 647 reload_->SetImage(views::CustomButton::BS_HOT, in LoadImages() [all …]
|
D | wrench_menu.cc | 41 using views::CustomButton; 121 void SetOtherButtons(CustomButton* left_button, CustomButton* right_button) { in SetOtherButtons() 132 CustomButton::ButtonState state = in Paint() 134 CustomButton::BS_NORMAL : static_cast<CustomButton*>(view)->state(); in Paint() 149 SkColor left_color = state != CustomButton::BS_NORMAL ? in Paint() 154 SkColor right_color = state != CustomButton::BS_NORMAL ? in Paint() 188 static SkColor border_color(CustomButton::ButtonState state) { in border_color() 190 case CustomButton::BS_HOT: return kHotBorderColor; in border_color() 191 case CustomButton::BS_PUSHED: return kPushedBorderColor; in border_color() 196 static SkColor background_color(CustomButton::ButtonState state) { in background_color() [all …]
|
D | find_bar_view.cc | 120 find_previous_button_->SetImage(views::CustomButton::BS_NORMAL, in FindBarView() 122 find_previous_button_->SetImage(views::CustomButton::BS_HOT, in FindBarView() 124 find_previous_button_->SetImage(views::CustomButton::BS_DISABLED, in FindBarView() 135 find_next_button_->SetImage(views::CustomButton::BS_NORMAL, in FindBarView() 137 find_next_button_->SetImage(views::CustomButton::BS_HOT, in FindBarView() 139 find_next_button_->SetImage(views::CustomButton::BS_DISABLED, in FindBarView() 150 close_button_->SetImage(views::CustomButton::BS_NORMAL, in FindBarView() 152 close_button_->SetImage(views::CustomButton::BS_HOT, in FindBarView() 154 close_button_->SetImage(views::CustomButton::BS_PUSHED, in FindBarView()
|
/external/chromium_org/apps/ui/views/ |
D | shell_window_frame_view.cc | 66 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in Init() 68 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in Init() 70 close_button_->SetImage(views::CustomButton::STATE_PRESSED, in Init() 76 maximize_button_->SetImage(views::CustomButton::STATE_NORMAL, in Init() 78 maximize_button_->SetImage(views::CustomButton::STATE_HOVERED, in Init() 80 maximize_button_->SetImage(views::CustomButton::STATE_PRESSED, in Init() 82 maximize_button_->SetImage(views::CustomButton::STATE_DISABLED, in Init() 88 restore_button_->SetImage(views::CustomButton::STATE_NORMAL, in Init() 90 restore_button_->SetImage(views::CustomButton::STATE_HOVERED, in Init() 92 restore_button_->SetImage(views::CustomButton::STATE_PRESSED, in Init() [all …]
|
/external/chromium_org/ash/shelf/ |
D | shelf_button.cc | 234 : CustomButton(listener), in ShelfButton() 344 CustomButton::ShowContextMenu(p, source_type); in ShowContextMenu() 356 CustomButton::OnMousePressed(event); in OnMousePressed() 362 CustomButton::OnMouseReleased(event); in OnMouseReleased() 369 CustomButton::OnMouseCaptureLost(); in OnMouseCaptureLost() 373 CustomButton::OnMouseDragged(event); in OnMouseDragged() 379 CustomButton::OnMouseMoved(event); in OnMouseMoved() 385 CustomButton::OnMouseEntered(event); in OnMouseEntered() 391 CustomButton::OnMouseExited(event); in OnMouseExited() 466 CustomButton::OnFocus(); in OnFocus() [all …]
|
/external/chromium_org/chrome/browser/ui/views/ |
D | find_bar_view.cc | 103 find_previous_button_->SetImage(views::CustomButton::STATE_NORMAL, in FindBarView() 105 find_previous_button_->SetImage(views::CustomButton::STATE_HOVERED, in FindBarView() 107 find_previous_button_->SetImage(views::CustomButton::STATE_PRESSED, in FindBarView() 109 find_previous_button_->SetImage(views::CustomButton::STATE_DISABLED, in FindBarView() 120 find_next_button_->SetImage(views::CustomButton::STATE_NORMAL, in FindBarView() 122 find_next_button_->SetImage(views::CustomButton::STATE_HOVERED, in FindBarView() 124 find_next_button_->SetImage(views::CustomButton::STATE_PRESSED, in FindBarView() 126 find_next_button_->SetImage(views::CustomButton::STATE_DISABLED, in FindBarView() 137 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in FindBarView() 139 close_button_->SetImage(views::CustomButton::STATE_HOVERED, in FindBarView() [all …]
|
D | avatar_menu_bubble_view.cc | 161 views::CustomButton::ButtonState state() { return state_; } in state() 165 views::CustomButton::ButtonState state_; 172 state_(views::CustomButton::STATE_NORMAL) { in EditProfileLink() 177 state_ = views::CustomButton::STATE_HOVERED; in OnMouseEntered() 183 state_ = views::CustomButton::STATE_NORMAL; in OnMouseExited() 194 state_ = views::CustomButton::STATE_NORMAL; in OnBlur() 217 class ProfileItemView : public views::CustomButton, 256 : views::CustomButton(parent), in ProfileItemView() 347 views::CustomButton::OnMouseEntered(event); in OnMouseEntered() 352 views::CustomButton::OnMouseExited(event); in OnMouseExited() [all …]
|
/external/chromium_org/ui/message_center/views/ |
D | notification_button.cc | 20 : views::CustomButton(listener), in NotificationButton() 84 CustomButton::OnPaint(canvas); in OnPaint() 89 views::CustomButton::OnFocus(); in OnFocus() 96 views::CustomButton::OnBlur(); in OnBlur()
|
D | padded_button.cc | 36 SetImage(views::CustomButton::STATE_NORMAL, in SetNormalImage() 42 SetImage(views::CustomButton::STATE_HOVERED, in SetHoveredImage() 48 SetImage(views::CustomButton::STATE_PRESSED, in SetPressedImage()
|
/external/chromium_org/chrome/browser/chromeos/login/ |
D | simple_web_view_dialog.cc | 354 back_->SetImage(views::CustomButton::STATE_NORMAL, in LoadImages() 356 back_->SetImage(views::CustomButton::STATE_HOVERED, in LoadImages() 358 back_->SetImage(views::CustomButton::STATE_PRESSED, in LoadImages() 360 back_->SetImage(views::CustomButton::STATE_DISABLED, in LoadImages() 363 forward_->SetImage(views::CustomButton::STATE_NORMAL, in LoadImages() 365 forward_->SetImage(views::CustomButton::STATE_HOVERED, in LoadImages() 367 forward_->SetImage(views::CustomButton::STATE_PRESSED, in LoadImages() 369 forward_->SetImage(views::CustomButton::STATE_DISABLED, in LoadImages()
|
/external/chromium_org/ui/app_list/views/ |
D | app_list_item_view.cc | 59 : CustomButton(apps_grid_view), in AppListItemView() 363 return views::CustomButton::ShouldEnterPushedState(event); in ShouldEnterPushedState() 367 CustomButton::OnMousePressed(event); in OnMousePressed() 390 return CustomButton::OnKeyPressed(event); in OnKeyPressed() 394 CustomButton::OnMouseReleased(event); in OnMouseReleased() 403 CustomButton::OnMouseCaptureLost(); in OnMouseCaptureLost() 409 CustomButton::OnMouseDragged(event); in OnMouseDragged() 459 CustomButton::OnGestureEvent(event); in OnGestureEvent()
|
D | search_result_actions_view.cc | 69 button->SetImage(views::CustomButton::STATE_NORMAL, &action.base_image); in CreateImageButton() 70 button->SetImage(views::CustomButton::STATE_HOVERED, &action.hover_image); in CreateImageButton() 71 button->SetImage(views::CustomButton::STATE_PRESSED, &action.pressed_image); in CreateImageButton()
|
/external/chromium_org/ash/wm/caption_buttons/ |
D | bubble_contents_button_row.cc | 51 SetImage(views::CustomButton::STATE_NORMAL, in BubbleDialogButton() 53 SetImage(views::CustomButton::STATE_HOVERED, in BubbleDialogButton() 55 SetImage(views::CustomButton::STATE_PRESSED, in BubbleDialogButton() 161 views::CustomButton* BubbleContentsButtonRow::GetButtonForUnitTest( in GetButtonForUnitTest()
|
D | bubble_contents_button_row.h | 12 class CustomButton; variable 36 views::CustomButton* GetButtonForUnitTest(SnapType state);
|
/external/chromium/chrome/browser/chromeos/login/ |
D | take_photo_view.cc | 173 snapshot_button_->SetImage(views::CustomButton::BS_NORMAL, in Init() 176 snapshot_button_->SetImage(views::CustomButton::BS_DISABLED, in Init() 240 snapshot_button_->SetImage(views::CustomButton::BS_NORMAL, in ShowCameraInitializing() 277 views::CustomButton::BS_NORMAL, in ButtonPressed() 283 views::CustomButton::BS_NORMAL, in ButtonPressed()
|