Home
last modified time | relevance | path

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

12345

/external/chromium_org/ui/views/controls/button/
Dcustom_button.cc61 if (state_ == STATE_NORMAL && state == STATE_HOVERED) { in SetState()
65 && state == STATE_NORMAL) { in SetState()
99 SetState(is_hot_tracked ? STATE_HOVERED : STATE_NORMAL); in SetHotTracked()
117 SetState(IsMouseHovered() ? STATE_HOVERED : STATE_NORMAL); in OnEnabledChanged()
141 SetState(STATE_NORMAL); in OnMouseDragged()
151 SetState(STATE_NORMAL); in OnMouseReleased()
166 SetState(STATE_NORMAL); in OnMouseCaptureLost()
177 SetState(STATE_NORMAL); in OnMouseExited()
182 SetState(HitTestPoint(event.location()) ? STATE_HOVERED : STATE_NORMAL); in OnMouseMoved()
195 SetState(STATE_NORMAL); in OnKeyPressed()
[all …]
Dimage_button_unittest.cc41 button.SetImage(CustomButton::STATE_NORMAL, &normal_image); in TEST_F()
77 EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); in TEST_F()
85 button.SetImage(Button::STATE_NORMAL, &image1); in TEST_F()
88 button.GetImage(Button::STATE_NORMAL).BackedBySameObjectAs(image1)); in TEST_F()
95 button.SetImage(Button::STATE_NORMAL, NULL); in TEST_F()
96 EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); in TEST_F()
102 button.SetImage(CustomButton::STATE_NORMAL, &image); in TEST_F()
136 button.SetImage(CustomButton::STATE_NORMAL, &image); in TEST_F()
151 button.SetImage(CustomButton::STATE_NORMAL, &image); in TEST_F()
Dcheckbox.cc33 SetCustomImage(false, false, STATE_NORMAL, in Checkbox()
43 SetCustomImage(true, false, STATE_NORMAL, in Checkbox()
53 SetCustomImage(false, true, STATE_NORMAL, in Checkbox()
61 SetCustomImage(true, true, STATE_NORMAL, in Checkbox()
117 if (for_state != STATE_NORMAL && in GetImage()
119 return images_[checked_index][focused_index][STATE_NORMAL]; in GetImage()
Dcustom_button_unittest.cc91 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
104 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
107 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
110 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
130 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
139 EXPECT_EQ(CustomButton::STATE_NORMAL, button->state()); in TEST_F()
Dlabel_button_unittest.cc35 EXPECT_TRUE(button.GetImage(Button::STATE_NORMAL).isNull()); in TEST_F()
44 EXPECT_EQ(Button::STATE_NORMAL, button.state()); in TEST_F()
91 button.SetImage(Button::STATE_NORMAL, small_image); in TEST_F()
96 button.SetImage(Button::STATE_NORMAL, large_image); in TEST_F()
99 button.SetImage(Button::STATE_NORMAL, small_image); in TEST_F()
133 button.SetImage(Button::STATE_NORMAL, image); in TEST_F()
155 button.SetImage(Button::STATE_NORMAL, gfx::ImageSkia()); in TEST_F()
212 button.SetImage(Button::STATE_NORMAL, CreateTestImage(50, 50)); 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()
Dblue_button.cc29 SetTextColor(STATE_NORMAL, GetNativeTheme()-> in ResetColorsFromNativeTheme()
57 button_border->SetPainter(false, STATE_NORMAL, Painter::CreateImagePainter( in CreateDefaultBorder()
65 button_border->SetPainter(true, STATE_NORMAL, Painter::CreateImagePainter( in CreateDefaultBorder()
Dimage_button.cc89 if (!images_[STATE_NORMAL].isNull()) { in GetPreferredSize()
90 size = gfx::Size(images_[STATE_NORMAL].width(), in GetPreferredSize()
91 images_[STATE_NORMAL].height()); in GetPreferredSize()
147 img = gfx::ImageSkiaOperations::CreateBlendedImage(images_[STATE_NORMAL], in GetImageToPaint()
153 return !img.isNull() ? img : images_[STATE_NORMAL]; in GetImageToPaint()
Dbutton.cc20 case ui::NativeTheme::kNormal: return Button::STATE_NORMAL; in GetButtonStateFrom()
24 return Button::STATE_NORMAL; in GetButtonStateFrom()
Dlabel_button.cc94 if (for_state != STATE_NORMAL && button_state_images_[for_state].isNull()) in GetImage()
95 return button_state_images_[STATE_NORMAL]; in GetImage()
392 colors[STATE_NORMAL] = SK_ColorWHITE; in ResetColorsFromNativeTheme()
404 colors[STATE_NORMAL] = kStyleButtonTextColor; in ResetColorsFromNativeTheme()
417 colors[STATE_HOVERED] = colors[STATE_PRESSED] = colors[STATE_NORMAL]; in ResetColorsFromNativeTheme()
419 for (size_t state = STATE_NORMAL; state < STATE_COUNT; ++state) { in ResetColorsFromNativeTheme()
488 case STATE_NORMAL: return ui::NativeTheme::kNormal; in GetThemeState()
/external/chromium_org/ash/frame/caption_buttons/
Dframe_size_button_unittest.cc108 return minimize_button_->state() == views::Button::STATE_NORMAL && in AllButtonsInNormalState()
109 size_button_->state() == views::Button::STATE_NORMAL && in AllButtonsInNormalState()
110 close_button_->state() == views::Button::STATE_NORMAL; in AllButtonsInNormalState()
171 EXPECT_EQ(views::Button::STATE_NORMAL, size_button()->state()); in TEST_F()
178 EXPECT_EQ(views::Button::STATE_NORMAL, size_button()->state()); in TEST_F()
309 EXPECT_EQ(views::Button::STATE_NORMAL, minimize_button()->state()); in TEST_F()
311 EXPECT_EQ(views::Button::STATE_NORMAL, close_button()->state()); in TEST_F()
320 EXPECT_EQ(views::Button::STATE_NORMAL, close_button()->state()); in TEST_F()
339 EXPECT_EQ(views::Button::STATE_NORMAL, minimize_button()->state()); in TEST_F()
341 EXPECT_EQ(views::Button::STATE_NORMAL, close_button()->state()); in TEST_F()
[all …]
/external/chromium_org/apps/ui/views/
Dapp_window_frame_view.cc66 views::CustomButton::STATE_NORMAL, in Init()
279 maximize_button_->SetState(views::CustomButton::STATE_NORMAL); in Layout()
281 restore_button_->SetState(views::CustomButton::STATE_NORMAL); in Layout()
284 minimize_button_->SetState(views::CustomButton::STATE_NORMAL); in Layout()
299 views::CustomButton::STATE_NORMAL, in OnPaint()
303 views::CustomButton::STATE_NORMAL, in OnPaint()
386 views::CustomButton::STATE_NORMAL, in SetButtonImagesForFrame()
389 views::CustomButton::STATE_NORMAL, in SetButtonImagesForFrame()
392 views::CustomButton::STATE_NORMAL, in SetButtonImagesForFrame()
396 views::CustomButton::STATE_NORMAL, in SetButtonImagesForFrame()
[all …]
/external/chromium_org/chrome/browser/ui/fullscreen/
Dfullscreen_controller_state_test.cc39 : state_(STATE_NORMAL), in FullscreenControllerStateTest()
40 last_notification_received_state_(STATE_NORMAL) { in FullscreenControllerStateTest()
48 STATE_NORMAL, // Event TAB_FULLSCREEN_FALSE in FullscreenControllerStateTest()
50 STATE_NORMAL, // Event METRO_SNAP_FALSE in FullscreenControllerStateTest()
51 STATE_NORMAL, // Event BUBBLE_EXIT_LINK in FullscreenControllerStateTest()
52 STATE_NORMAL, // Event BUBBLE_ALLOW in FullscreenControllerStateTest()
53 STATE_NORMAL, // Event BUBBLE_DENY in FullscreenControllerStateTest()
54 STATE_NORMAL, // Event WINDOW_CHANGE in FullscreenControllerStateTest()
86 STATE_NORMAL, // Event METRO_SNAP_FALSE in FullscreenControllerStateTest()
139 STATE_NORMAL, // Event WINDOW_CHANGE in FullscreenControllerStateTest()
[all …]
/external/chromium_org/media/filters/
Ddecoder_stream.cc141 if (state_ == STATE_NORMAL && CanDecodeMore()) in Read()
237 state_ = STATE_NORMAL; in OnDecoderSelected()
264 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER) << state_; in Decode()
294 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER || in OnDecodeDone()
335 if (state_ == STATE_NORMAL) { in OnDecodeDone()
360 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER || in OnDecodeOutputReady()
391 DCHECK_EQ(state_, STATE_NORMAL) << state_; in ReadFromDemuxerStream()
420 state_ = STATE_NORMAL; in OnBufferReady()
503 state_ = (status == PIPELINE_OK) ? STATE_NORMAL : STATE_ERROR; in OnDecoderReinitialized()
525 DCHECK(state_ == STATE_NORMAL || state_ == STATE_FLUSHING_DECODER || in ResetDecoder()
[all …]
/external/chromium_org/chrome/browser/ui/views/profiles/
Dnew_avatar_button.cc27 border->SetPainter(false, views::Button::STATE_NORMAL, in CreateBorder()
53 SetTextColor(views::Button::STATE_NORMAL, SK_ColorWHITE); in NewAvatarButton()
186 SetImage(views::Button::STATE_NORMAL, generic_avatar_); in UpdateAvatarButtonAndRelayoutParent()
188 SetImage(views::Button::STATE_NORMAL, in UpdateAvatarButtonAndRelayoutParent()
192 SetImage(views::Button::STATE_NORMAL, gfx::ImageSkia()); in UpdateAvatarButtonAndRelayoutParent()
/external/chromium_org/chrome/browser/ui/views/location_bar/
Dsearch_button.cc24 false, views::Button::STATE_NORMAL, in SearchButton()
37 border->SetPainter(true, views::Button::STATE_NORMAL, NULL); in SearchButton()
51 views::Button::STATE_NORMAL, in UpdateIcon()
/external/chromium_org/chrome/browser/ui/views/tabs/
Dmedia_indicator_button.cc64 SetImage(views::CustomButton::STATE_NORMAL, indicator_image); in TransitionToMediaState()
100 SetState(enabled() ? views::CustomButton::STATE_NORMAL : in TransitionToMediaState()
122 if (previous_state != views::CustomButton::STATE_NORMAL && in OnMouseDragged()
123 state() == views::CustomButton::STATE_NORMAL) in OnMouseDragged()
/external/chromium_org/ui/views/controls/scrollbar/
Dbase_scroll_bar.cc45 thumb_track_state_(CustomButton::STATE_NORMAL), in BaseScrollBar()
122 new_state == CustomButton::STATE_NORMAL && in OnThumbStateChanged()
124 SetThumbTrackState(CustomButton::STATE_NORMAL); in OnThumbStateChanged()
139 CustomButton::STATE_HOVERED : CustomButton::STATE_NORMAL); in OnMouseReleased()
143 SetState(CustomButton::STATE_NORMAL); in OnMouseCaptureLost()
152 SetState(CustomButton::STATE_NORMAL); in OnMouseExited()
223 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/ui/views/
Dbutton_drag_utils.cc49 button.SetTextColor(views::Button::STATE_NORMAL, in SetDragImage()
56 button.SetImage(views::Button::STATE_NORMAL, in SetDragImage()
60 button.SetImage(views::Button::STATE_NORMAL, icon); in SetDragImage()
/external/chromium_org/ui/views/examples/
Dbutton_example.cc63 image_button_->SetImage(ImageButton::STATE_NORMAL, in CreateExampleView()
86 label_button_->SetImage(Button::STATE_NORMAL, in LabelButtonPressed()
87 label_button_->GetImage(Button::STATE_NORMAL).isNull() ? in LabelButtonPressed()
/external/chromium_org/mojo/system/
Dchannel.cc76 if (it->second->state_ == ChannelEndpoint::STATE_NORMAL) { in Shutdown()
144 if (state != ChannelEndpoint::STATE_NORMAL) { in RunMessagePipeEndpoint()
216 case ChannelEndpoint::STATE_NORMAL: in DetachMessagePipeEndpoint()
324 ChannelEndpoint::State state = ChannelEndpoint::STATE_NORMAL; in OnReadMessageForDownstream()
359 if (state != ChannelEndpoint::STATE_NORMAL) { in OnReadMessageForDownstream()
463 case ChannelEndpoint::STATE_NORMAL: in RemoveMessagePipeEndpoint()
/external/chromium_org/ash/system/tray/
Dtray_popup_header_button.cc27 SetImage(views::Button::STATE_NORMAL, in TrayPopupHeaderButton()
29 SetToggledImage(views::Button::STATE_NORMAL, in TrayPopupHeaderButton()
/external/chromium_org/ash/system/chromeos/virtual_keyboard/
Dvirtual_keyboard_tray.cc29 button_->SetImage(views::CustomButton::STATE_NORMAL, in VirtualKeyboardTray()
58 views::CustomButton::STATE_NORMAL); in SetShelfAlignment()
/external/chromium_org/ui/app_list/views/
Dsearch_box_view.cc116 menu_button_->SetImage(views::Button::STATE_NORMAL, in SearchBoxView()
236 views::Button::STATE_NORMAL, &speech_button_prop->on_icon); in SpeechRecognitionButtonPropChanged()
240 views::Button::STATE_NORMAL, &speech_button_prop->off_icon); in SpeechRecognitionButtonPropChanged()

12345