Searched refs:HasSelection (Results 1 – 14 of 14) sorted by relevance
358 if (HasSelection()) { in Delete()379 if (HasSelection()) { in Backspace()512 if (!HasCompositionText() && HasSelection() && !render_text_->obscured()) { in Cut()530 if (!HasCompositionText() && HasSelection() && !render_text_->obscured()) { in Copy()550 bool TextfieldViewsModel::HasSelection() const { in HasSelection() function in views::TextfieldViewsModel556 DCHECK(HasSelection()); in DeleteSelection()585 else if (HasSelection()) in SetCompositionText()662 } else if (HasSelection()) { in InsertTextInternal()674 } else if (!HasSelection()) { in ReplaceTextInternal()
757 return editable && model_->HasSelection() && !textfield_->IsObscured(); in IsCommandIdEnabled()759 return model_->HasSelection() && !textfield_->IsObscured(); in IsCommandIdEnabled()765 return editable && model_->HasSelection(); in IsCommandIdEnabled()1063 if (model_->HasSelection()) { in DeleteRange()1179 is_cursor_visible_ && !model_->HasSelection()); in PaintTextAndCursor()1271 if (!model_->HasSelection()) { in HandleKeyEvent()1289 else if (shift && model_->HasSelection() && readable) in HandleKeyEvent()
192 bool HasSelection() const;
820 EXPECT_FALSE(model.HasSelection()); in TEST_F()835 EXPECT_FALSE(model.HasSelection()); in TEST_F()848 EXPECT_TRUE(model.HasSelection()); in TEST_F()866 EXPECT_FALSE(model.HasSelection()); in TEST_F()884 EXPECT_FALSE(model.HasSelection()); in TEST_F()896 EXPECT_FALSE(model.HasSelection()); in TEST_F()1454 EXPECT_TRUE(model.HasSelection()); in TEST_F()
122 bool HasSelection() const;
204 bool Textfield::HasSelection() const { in HasSelection() function in views::Textfield
148 if (composition_.empty() && HasSelection()) { in PaintOn()238 if (HasSelection() && !text.empty()) in SetComposition()310 if (!shift && HasSelection()) in KeyLeft()324 if (!shift && HasSelection()) in KeyRight()337 if (HasSelection()) { in KeyDelete()349 if (HasSelection()) { in KeyBackspace()380 bool HasSelection() const { in HasSelection() function in MyTextField
162 if (textfield_->HasSelection()) { \482 EXPECT_FALSE(textfield_->HasSelection()); in TEST_F()492 EXPECT_TRUE(textfield_->HasSelection()); in TEST_F()
579 if (textfield_->HasSelection()) in HandleKeyEvent()590 (!textfield_->HasSelection() && in HandleKeyEvent()
413 bool HasSelection();
1652 const bool has_selection = print_preview_context_.HasSelection(); in RequestPrintPreview()1915 bool PrintWebViewHelper::PrintPreviewContext::HasSelection() { in HasSelection() function in printing::PrintWebViewHelper::PrintPreviewContext
411 bool HasSelection();
1633 const bool has_selection = print_preview_context_.HasSelection(); in RequestPrintPreview()1896 bool PrintWebViewHelper::PrintPreviewContext::HasSelection() { in HasSelection() function in printing::PrintWebViewHelper::PrintPreviewContext
710 HasSelection() || GetCursorPosition() != 0) in HandleKeyEvent()718 (!HasSelection() && GetCursorPosition() == text().length()); in HandleKeyEvent()