Home
last modified time | relevance | path

Searched refs:STATE_NORMAL (Results 1 – 25 of 95) sorted by relevance

1234

/external/chromium_org/ui/views/controls/button/
Dcustom_button.cc63 if (state_ == STATE_NORMAL && state == STATE_HOVERED) { in SetState()
67 && state == STATE_NORMAL) { in SetState()
101 SetState(is_hot_tracked ? STATE_HOVERED : STATE_NORMAL); in SetHotTracked()
119 SetState(IsMouseHovered() ? STATE_HOVERED : STATE_NORMAL); in OnEnabledChanged()
143 SetState(STATE_NORMAL); in OnMouseDragged()
153 SetState(STATE_NORMAL); in OnMouseReleased()
168 SetState(STATE_NORMAL); in OnMouseCaptureLost()
179 SetState(STATE_NORMAL); in OnMouseExited()
184 SetState(HitTestPoint(event.location()) ? STATE_HOVERED : STATE_NORMAL); in OnMouseMoved()
197 SetState(STATE_NORMAL); in OnKeyPressed()
[all …]
Dimage_button_unittest.cc41 button.SetImage(CustomButton::STATE_NORMAL, &normal_image); in TEST_F()
88 EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); in TEST_F()
96 button.SetImage(Button::STATE_NORMAL, &image1); in TEST_F()
99 button.GetImage(Button::STATE_NORMAL).BackedBySameObjectAs(image1)); in TEST_F()
106 button.SetImage(Button::STATE_NORMAL, NULL); in TEST_F()
107 EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); 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()
Dcheckbox.cc32 SetCustomImage(false, false, STATE_NORMAL, in Checkbox()
42 SetCustomImage(true, false, STATE_NORMAL, in Checkbox()
52 SetCustomImage(false, true, STATE_NORMAL, in Checkbox()
60 SetCustomImage(true, true, STATE_NORMAL, in Checkbox()
115 if (for_state != STATE_NORMAL && in GetImage()
117 return images_[checked_index][focused_index][STATE_NORMAL]; in GetImage()
Dcustom_button_unittest.cc97 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
111 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
114 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
117 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
139 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
148 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
Dradio_button.cc25 SetCustomImage(false, false, STATE_NORMAL, in RadioButton()
35 SetCustomImage(true, false, STATE_NORMAL, in RadioButton()
45 SetCustomImage(false, true, STATE_NORMAL, in RadioButton()
53 SetCustomImage(true, true, STATE_NORMAL, in RadioButton()
Dlabel_button_unittest.cc32 EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); in TEST_F()
41 EXPECT_EQ(Button::STATE_NORMAL, button.state()); in TEST_F()
88 button.SetImage(Button::STATE_NORMAL, small_image); in TEST_F()
93 button.SetImage(Button::STATE_NORMAL, large_image); in TEST_F()
96 button.SetImage(Button::STATE_NORMAL, small_image); in TEST_F()
130 button.SetImage(Button::STATE_NORMAL, image); in TEST_F()
152 button.SetImage(Button::STATE_NORMAL, gfx::ImageSkia()); in TEST_F()
Dblue_button.cc42 button_border->SetPainter(false, STATE_NORMAL, in BlueButton()
54 button_border->SetPainter(true, STATE_NORMAL, in BlueButton()
73 for (size_t state = STATE_NORMAL; state < STATE_COUNT; ++state) in ResetColorsFromNativeTheme()
Dimage_button.cc87 if (!images_[STATE_NORMAL].isNull()) { in GetPreferredSize()
88 size = gfx::Size(images_[STATE_NORMAL].width(), in GetPreferredSize()
89 images_[STATE_NORMAL].height()); in GetPreferredSize()
146 img = gfx::ImageSkiaOperations::CreateBlendedImage(images_[STATE_NORMAL], in GetImageToPaint()
152 return !img.isNull() ? img : images_[STATE_NORMAL]; in GetImageToPaint()
Dlabel_button.cc68 if (for_state != STATE_NORMAL && button_state_images_[for_state].isNull()) in GetImage()
69 return button_state_images_[STATE_NORMAL]; in GetImage()
311 colors[STATE_NORMAL] = SK_ColorWHITE; in ResetColorsFromNativeTheme()
317 colors[STATE_NORMAL] = kStyleButtonTextColor; in ResetColorsFromNativeTheme()
326 colors[STATE_HOVERED] = colors[STATE_PRESSED] = colors[STATE_NORMAL]; in ResetColorsFromNativeTheme()
328 for (size_t state = STATE_NORMAL; state < STATE_COUNT; ++state) { in ResetColorsFromNativeTheme()
371 case STATE_NORMAL: return ui::NativeTheme::kNormal; in GetThemeState()
Dlabel_button_border.cc38 case ui::NativeTheme::kNormal: return Button::STATE_NORMAL; in GetButtonState()
42 return Button::STATE_NORMAL; in GetButtonState()
78 SetPainter(false, Button::STATE_NORMAL, in LabelButtonBorder()
90 SetPainter(true, Button::STATE_NORMAL, in LabelButtonBorder()
Dmenu_button.cc126 SetState(STATE_NORMAL); in Activate()
200 SetState(STATE_NORMAL); in OnMouseExited()
/external/chromium_org/ash/wm/caption_buttons/
Dalternate_frame_size_button_unittest.cc97 return minimize_button_->state() == views::Button::STATE_NORMAL && in AllButtonsInNormalState()
98 size_button_->state() == views::Button::STATE_NORMAL && in AllButtonsInNormalState()
99 close_button_->state() == views::Button::STATE_NORMAL; in AllButtonsInNormalState()
165 EXPECT_EQ(views::Button::STATE_NORMAL, size_button()->state()); in TEST_F()
172 EXPECT_EQ(views::Button::STATE_NORMAL, size_button()->state()); in TEST_F()
307 EXPECT_EQ(views::Button::STATE_NORMAL, minimize_button()->state()); in TEST_F()
309 EXPECT_EQ(views::Button::STATE_NORMAL, close_button()->state()); in TEST_F()
317 EXPECT_EQ(views::Button::STATE_NORMAL, size_button()->state()); in TEST_F()
318 EXPECT_EQ(views::Button::STATE_NORMAL, close_button()->state()); in TEST_F()
337 EXPECT_EQ(views::Button::STATE_NORMAL, minimize_button()->state()); in TEST_F()
[all …]
Dframe_caption_button_container_view.cc222 minimize_button_->SetState(views::Button::STATE_NORMAL); in SetButtonsToNormal()
223 size_button_->SetState(views::Button::STATE_NORMAL); in SetButtonsToNormal()
224 close_button_->SetState(views::Button::STATE_NORMAL); in SetButtonsToNormal()
271 views::Button::STATE_PRESSED : views::Button::STATE_NORMAL); in PressButtonAt()
Dframe_caption_button.cc103 SetState(STATE_NORMAL); in OnGestureEvent()
168 SetImage(STATE_NORMAL, resource_bundle.GetImageSkiaNamed(normal_image_id)); in SetImages()
/external/chromium_org/chrome/browser/ui/fullscreen/
Dfullscreen_controller_state_test.cc38 : state_(STATE_NORMAL), in FullscreenControllerStateTest()
39 last_notification_received_state_(STATE_NORMAL) { in FullscreenControllerStateTest()
47 STATE_NORMAL, // Event TAB_FULLSCREEN_FALSE in FullscreenControllerStateTest()
49 STATE_NORMAL, // Event METRO_SNAP_FALSE in FullscreenControllerStateTest()
50 STATE_NORMAL, // Event BUBBLE_EXIT_LINK in FullscreenControllerStateTest()
51 STATE_NORMAL, // Event BUBBLE_ALLOW in FullscreenControllerStateTest()
52 STATE_NORMAL, // Event BUBBLE_DENY in FullscreenControllerStateTest()
53 STATE_NORMAL, // Event WINDOW_CHANGE in FullscreenControllerStateTest()
85 STATE_NORMAL, // Event METRO_SNAP_FALSE in FullscreenControllerStateTest()
138 STATE_NORMAL, // Event WINDOW_CHANGE in FullscreenControllerStateTest()
[all …]
Dfullscreen_controller_state_tests.h33 TEST_ALL_EVENTS(STATE_NORMAL);
/external/chromium_org/media/filters/
Dvideo_frame_stream.cc63 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER || in Read()
187 state_ = STATE_NORMAL; in OnDecoderSelected()
224 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER) << state_; in Decode()
245 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER) << state_; in OnFrameReady()
287 if (state_ == STATE_NORMAL) in OnFrameReady()
299 DCHECK_EQ(state_, STATE_NORMAL) << state_; in ReadFromDemuxerStream()
319 state_ = STATE_NORMAL; in OnBufferReady()
378 state_ = (status == PIPELINE_OK) ? STATE_NORMAL : STATE_ERROR; in OnDecoderReinitialized()
400 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER || in ResetDecoder()
411 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER || in OnDecoderReset()
/external/chromium_org/apps/ui/views/
Dshell_window_frame_view.cc66 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in Init()
76 maximize_button_->SetImage(views::CustomButton::STATE_NORMAL, in Init()
88 restore_button_->SetImage(views::CustomButton::STATE_NORMAL, in Init()
98 minimize_button_->SetImage(views::CustomButton::STATE_NORMAL, in Init()
280 maximize_button_->SetState(views::CustomButton::STATE_NORMAL); in Layout()
282 restore_button_->SetState(views::CustomButton::STATE_NORMAL); in Layout()
298 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in OnPaint()
301 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in OnPaint()
/external/chromium_org/ui/views/controls/scrollbar/
Dbase_scroll_bar.cc44 thumb_track_state_(CustomButton::STATE_NORMAL), in BaseScrollBar()
121 new_state == CustomButton::STATE_NORMAL && 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()
151 SetState(CustomButton::STATE_NORMAL); in OnMouseExited()
222 SetState(CustomButton::STATE_NORMAL); in OnGestureEvent()
Dbase_scroll_bar_thumb.cc23 state_(CustomButton::STATE_NORMAL) { in BaseScrollBarThumb()
73 SetState(CustomButton::STATE_NORMAL); in OnMouseExited()
114 CustomButton::STATE_HOVERED : CustomButton::STATE_NORMAL); in OnMouseReleased()
/external/chromium_org/ash/system/tray/
Dtray_popup_header_button.cc28 SetImage(views::Button::STATE_NORMAL, in TrayPopupHeaderButton()
30 SetToggledImage(views::Button::STATE_NORMAL, in TrayPopupHeaderButton()
/external/chromium_org/ui/views/examples/
Dbutton_example.cc70 image_button_->SetImage(ImageButton::STATE_NORMAL, in CreateExampleView()
154 label_button_->SetImage(Button::STATE_NORMAL, in LabelButtonPressed()
155 label_button_->GetImage(Button::STATE_NORMAL).isNull() ? in LabelButtonPressed()
/external/chromium_org/ui/views/window/
Dcustom_frame_view.cc196 restore_button_->SetState(CustomButton::STATE_NORMAL); in ResetWindowControls()
197 minimize_button_->SetState(CustomButton::STATE_NORMAL); in ResetWindowControls()
198 maximize_button_->SetState(CustomButton::STATE_NORMAL); in ResetWindowControls()
520 close_button_->SetImage(CustomButton::STATE_NORMAL, in LayoutWindowControls()
567 button->SetImage(CustomButton::STATE_NORMAL, in InitWindowCaptionButton()
/external/chromium_org/chrome/browser/ui/views/infobars/
Dinfobar_view.cc143 false, views::Button::STATE_NORMAL, in CreateLabelButton()
157 label_button->SetTextColor(views::Button::STATE_NORMAL, SK_ColorBLACK); in CreateLabelButton()
179 label_button->SetImage(views::Button::STATE_NORMAL, in CreateLabelButton()
266 close_button_->SetImage(views::CustomButton::STATE_NORMAL, in ViewHierarchyChanged()
/external/chromium_org/ui/views/controls/combobox/
Dcombobox.cc146 case Button::STATE_NORMAL: in GetBodyButtonImageIds()
169 case Button::STATE_NORMAL: in GetMenuButtonImageIds()
258 Button::STATE_NORMAL, in Combobox()
685 Button::STATE_NORMAL : arrow_button_->state()]; in PaintButtons()
696 Button::STATE_NORMAL : text_button_->state()].get(); in PaintButtons()
754 Button::ButtonState original_state = Button::STATE_NORMAL; in ShowDropDownMenu()

1234