Home
last modified time | relevance | path

Searched refs:HasSelection (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/ui/views/controls/textfield/
Dtextfield_views_model.cc358 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::TextfieldViewsModel
556 DCHECK(HasSelection()); in DeleteSelection()
585 else if (HasSelection()) in SetCompositionText()
662 } else if (HasSelection()) { in InsertTextInternal()
674 } else if (!HasSelection()) { in ReplaceTextInternal()
Dnative_textfield_views.cc757 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()
Dtextfield_views_model.h192 bool HasSelection() const;
Dtextfield_views_model_unittest.cc820 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()
Dtextfield.h122 bool HasSelection() const;
Dtextfield.cc204 bool Textfield::HasSelection() const { in HasSelection() function in views::Textfield
/external/chromium_org/ppapi/examples/ime/
Dime.cc148 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
/external/chromium_org/ui/views/touchui/
Dtouch_selection_controller_impl_unittest.cc162 if (textfield_->HasSelection()) { \
482 EXPECT_FALSE(textfield_->HasSelection()); in TEST_F()
492 EXPECT_TRUE(textfield_->HasSelection()); in TEST_F()
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit_view_views.cc579 if (textfield_->HasSelection()) in HandleKeyEvent()
590 (!textfield_->HasSelection() && in HandleKeyEvent()
/external/chromium_org/android_webview/renderer/
Dprint_web_view_helper.h413 bool HasSelection();
Dprint_web_view_helper.cc1652 const bool has_selection = print_preview_context_.HasSelection(); in RequestPrintPreview()
1915 bool PrintWebViewHelper::PrintPreviewContext::HasSelection() { in HasSelection() function in printing::PrintWebViewHelper::PrintPreviewContext
/external/chromium_org/chrome/renderer/printing/
Dprint_web_view_helper.h411 bool HasSelection();
Dprint_web_view_helper.cc1633 const bool has_selection = print_preview_context_.HasSelection(); in RequestPrintPreview()
1896 bool PrintWebViewHelper::PrintPreviewContext::HasSelection() { in HasSelection() function in printing::PrintWebViewHelper::PrintPreviewContext
/external/chromium_org/chrome/browser/ui/views/omnibox/
Domnibox_view_views.cc710 HasSelection() || GetCursorPosition() != 0) in HandleKeyEvent()
718 (!HasSelection() && GetCursorPosition() == text().length()); in HandleKeyEvent()