Home
last modified time | relevance | path

Searched refs:CustomButton (Results 1 – 25 of 113) sorted by relevance

12345

/external/chromium_org/ui/views/controls/button/
Dcustom_button.cc27 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 …]
Dcustom_button_unittest.cc29 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 …]
Dcustom_button.h26 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);
Dimage_button_unittest.cc41 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/
Dbase_scroll_bar_thumb.cc23 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()
Dbase_scroll_bar.cc44 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 …]
Dbase_scroll_bar.h63 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_;
Dkennedy_scroll_bar.cc52 (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()
Dnative_scroll_bar_views.cc104 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()
Dbase_scroll_bar_thumb.h59 CustomButton::ButtonState GetState() const;
61 void SetState(CustomButton::ButtonState state);
76 CustomButton::ButtonState state_;
/external/chromium/chrome/browser/ui/views/
Dtoolbar_view.cc629 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 …]
Dwrench_menu.cc41 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 …]
Dfind_bar_view.cc120 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/
Dshell_window_frame_view.cc66 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/
Dshelf_button.cc234 : 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/
Dfind_bar_view.cc103 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 …]
Davatar_menu_bubble_view.cc161 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/
Dnotification_button.cc20 : views::CustomButton(listener), in NotificationButton()
84 CustomButton::OnPaint(canvas); in OnPaint()
89 views::CustomButton::OnFocus(); in OnFocus()
96 views::CustomButton::OnBlur(); in OnBlur()
Dpadded_button.cc36 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/
Dsimple_web_view_dialog.cc354 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/
Dapp_list_item_view.cc59 : 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()
Dsearch_result_actions_view.cc69 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/
Dbubble_contents_button_row.cc51 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()
Dbubble_contents_button_row.h12 class CustomButton; variable
36 views::CustomButton* GetButtonForUnitTest(SnapType state);
/external/chromium/chrome/browser/chromeos/login/
Dtake_photo_view.cc173 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()

12345