Home
last modified time | relevance | path

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

/external/chromium_org/ui/views/controls/textfield/
Dtextfield_views_model_unittest.cc89 EXPECT_EQ(5U, model.GetCursorPosition()); in TEST_F()
93 EXPECT_EQ(4U, model.GetCursorPosition()); in TEST_F()
134 EXPECT_EQ(3U, model.GetCursorPosition()); in TEST_F()
139 EXPECT_EQ(2U, model.GetCursorPosition()); in TEST_F()
167 EXPECT_EQ(0U, model.GetCursorPosition()); in TEST_F()
170 EXPECT_EQ(2U, model.GetCursorPosition()); in TEST_F()
186 EXPECT_EQ(4U, model.GetCursorPosition()); in TEST_F()
199 EXPECT_EQ(model.GetText().length(), model.GetCursorPosition()); in TEST_F()
208 EXPECT_EQ(0U, model.GetCursorPosition()); in TEST_F()
214 EXPECT_EQ(0U, model.GetCursorPosition()); in TEST_F()
[all …]
Dtextfield_views_model.cc322 size_t old_cursor = GetCursorPosition(); in SetText()
343 size_t save = GetCursorPosition(); in Append()
362 if (GetText().length() > GetCursorPosition()) { in Delete()
363 size_t cursor_position = GetCursorPosition(); in Delete()
383 size_t cursor_position = GetCursorPosition(); in Backspace()
394 size_t TextfieldViewsModel::GetCursorPosition() const { in GetCursorPosition() function in views::TextfieldViewsModel
483 size_t old_cursor = GetCursorPosition(); in Undo()
491 return old != GetText() || old_cursor != GetCursorPosition(); in Undo()
506 size_t old_cursor = GetCursorPosition(); in Redo()
508 return old != GetText() || old_cursor != GetCursorPosition(); in Redo()
[all …]
Dnative_textfield_views_unittest.cc380 EXPECT_EQ(0U, textfield_->GetCursorPosition()); in TEST_F()
384 EXPECT_EQ(7U, textfield_->GetCursorPosition()); in TEST_F()
391 EXPECT_EQ(7U, textfield_->GetCursorPosition()); in TEST_F()
401 EXPECT_EQ(0U, textfield_->GetCursorPosition()); in TEST_F()
406 EXPECT_EQ(6U, textfield_->GetCursorPosition()); in TEST_F()
417 EXPECT_EQ(6U, textfield_->GetCursorPosition()); in TEST_F()
435 EXPECT_EQ(0U, textfield_->GetCursorPosition()); in TEST_F()
440 EXPECT_EQ(1U, textfield_->GetCursorPosition()); in TEST_F()
449 EXPECT_EQ(1U, textfield_->GetCursorPosition()); in TEST_F()
1128 EXPECT_EQ(0U, textfield_->GetCursorPosition()); in TEST_F()
[all …]
Dnative_textfield_wrapper.h122 virtual size_t GetCursorPosition() const = 0;
Dtextfield_views_model.h119 size_t GetCursorPosition() const;
Dtextfield.cc377 size_t Textfield::GetCursorPosition() const { in GetCursorPosition() function in views::Textfield
378 return native_wrapper_->GetCursorPosition(); in GetCursorPosition()
Dtextfield.h219 size_t GetCursorPosition() const;
Dnative_textfield_views.cc652 size_t NativeTextfieldViews::GetCursorPosition() const { in GetCursorPosition() function in views::NativeTextfieldViews
653 return model_->GetCursorPosition(); in GetCursorPosition()
953 const size_t change_offset = model_->GetCursorPosition(); in InsertChar()
Dnative_textfield_views.h131 virtual size_t GetCursorPosition() const OVERRIDE;
/external/chromium_org/ui/views/touchui/
Dtouch_selection_controller_impl_unittest.cc89 gfx::Point GetCursorPosition(const gfx::SelectionModel& sel) { in GetCursorPosition() function in views::TouchSelectionControllerImplTest
168 gfx::Point selection_start = GetCursorPosition(sel_start); \
169 gfx::Point selection_end = GetCursorPosition(sel); \
185 gfx::Point cursor_pos = GetCursorPosition(sel); \
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit_view_views.cc582 if (textfield_->GetCursorPosition()) in HandleKeyEvent()
591 textfield_->GetCursorPosition() == textfield_->text().length()); in HandleKeyEvent()
/external/chromium_org/chrome/browser/ui/views/omnibox/
Domnibox_view_views.cc710 HasSelection() || GetCursorPosition() != 0) in HandleKeyEvent()
718 (!HasSelection() && GetCursorPosition() == text().length()); in HandleKeyEvent()
723 if (GetCursorPosition() == text().length()) { in HandleKeyEvent()