Home
last modified time | relevance | path

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

/external/chromium_org/ui/views/controls/textfield/
Dtextfield_model.cc331 if (HasSelection()) { in Delete()
352 if (HasSelection()) { in Backspace()
486 if (!HasCompositionText() && HasSelection() && !render_text_->obscured()) { in Cut()
503 if (!HasCompositionText() && HasSelection() && !render_text_->obscured()) { in Copy()
522 bool TextfieldModel::HasSelection() const { in HasSelection() function in views::TextfieldModel
528 DCHECK(HasSelection()); in DeleteSelection()
558 else if (HasSelection()) in SetCompositionText()
639 } else if (HasSelection()) { in InsertTextInternal()
651 } else if (!HasSelection()) { in ReplaceTextInternal()
Dtextfield.cc357 bool Textfield::HasSelection() const { in HasSelection() function in views::Textfield
693 const int command = GetCommandForKeyEvent(event, HasSelection()); in OnKeyPressed()
1159 return editable && readable && model_->HasSelection(); in IsCommandIdEnabled()
1161 return readable && model_->HasSelection(); in IsCommandIdEnabled()
1167 return editable && model_->HasSelection(); in IsCommandIdEnabled()
1495 if (model_->HasSelection()) { in DeleteRange()
1639 !HasSelection()); in PaintTextAndCursor()
1791 if (performing_user_action_ && HasSelection()) { in UpdateSelectionClipboard()
Dtextfield_model.h179 bool HasSelection() const;
Dtextfield_model_unittest.cc817 EXPECT_FALSE(model.HasSelection()); in TEST_F()
832 EXPECT_FALSE(model.HasSelection()); in TEST_F()
845 EXPECT_TRUE(model.HasSelection()); in TEST_F()
863 EXPECT_FALSE(model.HasSelection()); in TEST_F()
881 EXPECT_FALSE(model.HasSelection()); in TEST_F()
893 EXPECT_FALSE(model.HasSelection()); in TEST_F()
1421 EXPECT_TRUE(model.HasSelection()); in TEST_F()
Dtextfield.h102 bool HasSelection() const;
/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.cc219 if (textfield_->HasSelection()) { \
543 EXPECT_FALSE(textfield_->HasSelection()); in TEST_F()
553 EXPECT_TRUE(textfield_->HasSelection()); in TEST_F()
/external/chromium_org/android_webview/renderer/
Dprint_web_view_helper.h400 bool HasSelection();
Dprint_web_view_helper.cc1682 const bool has_selection = print_preview_context_.HasSelection(); in RequestPrintPreview()
1945 bool PrintWebViewHelper::PrintPreviewContext::HasSelection() { in HasSelection() function in printing::PrintWebViewHelper::PrintPreviewContext
/external/chromium_org/chrome/renderer/printing/
Dprint_web_view_helper.h366 bool HasSelection();
Dprint_web_view_helper.cc1618 const bool has_selection = print_preview_context_.HasSelection(); in RequestPrintPreview()
1904 bool PrintWebViewHelper::PrintPreviewContext::HasSelection() { in HasSelection() function in printing::PrintWebViewHelper::PrintPreviewContext
/external/chromium_org/chrome/browser/ui/views/omnibox/
Domnibox_view_views.cc906 HasSelection() || GetCursorPosition() != 0) in HandleKeyEvent()
914 (!HasSelection() && GetCursorPosition() == text().length()); in HandleKeyEvent()