HomeSort by relevance Sort by last modified time
    Searched refs:SelectionModel (Results 1 - 25 of 26) sorted by null

1 2

  /external/chromium_org/ui/gfx/
selection_model.cc 12 SelectionModel::SelectionModel()
15 SelectionModel::SelectionModel(size_t position, LogicalCursorDirection affinity)
18 SelectionModel::SelectionModel(ui::Range selection,
22 bool SelectionModel::operator==(const SelectionModel& sel) const {
27 std::string SelectionModel::ToString() const {
selection_model.h 33 // SelectionModel is used to represent the logical selection and visual
59 class UI_EXPORT SelectionModel {
61 // Create a default SelectionModel to be overwritten later.
62 SelectionModel();
63 // Create a SelectionModel representing a caret |position| without a
67 SelectionModel(size_t position, LogicalCursorDirection affinity);
68 // Create a SelectionModel representing a selection (which may be empty).
70 SelectionModel(ui::Range selection, LogicalCursorDirection affinity);
76 bool operator==(const SelectionModel& sel) const;
77 bool operator!=(const SelectionModel& sel) const { return !(*this == sel);
    [all...]
render_text_linux.h 24 virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
29 virtual SelectionModel AdjacentCharSelectionModel(
30 const SelectionModel& selection,
32 virtual SelectionModel AdjacentWordSelectionModel(
33 const SelectionModel& selection,
50 GSList* GetRunContainingCaret(const SelectionModel& caret) const;
52 // Given a |run|, returns the SelectionModel that contains the logical first
55 SelectionModel FirstSelectionModelInsideRun(const PangoItem* run);
56 SelectionModel LastSelectionModelInsideRun(const PangoItem* run);
render_text_win.h 68 virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
73 virtual SelectionModel AdjacentCharSelectionModel(
74 const SelectionModel& selection,
76 virtual SelectionModel AdjacentWordSelectionModel(
77 const SelectionModel& selection,
104 size_t GetRunContainingCaret(const SelectionModel& caret) const;
107 // Given a |run|, returns the SelectionModel that contains the logical first
110 SelectionModel FirstSelectionModelInsideRun(const internal::TextRun* run);
111 SelectionModel LastSelectionModelInsideRun(const internal::TextRun* run);
render_text_mac.h 31 virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
36 virtual SelectionModel AdjacentCharSelectionModel(
37 const SelectionModel& selection,
39 virtual SelectionModel AdjacentWordSelectionModel(
40 const SelectionModel& selection,
render_text_unittest.cc 67 const std::vector<SelectionModel>& expected,
242 EXPECT_EQ(SelectionModel(ui::Range(select ? 0 : len, len), CURSOR_FORWARD),
245 EXPECT_EQ(SelectionModel(0, CURSOR_BACKWARD), render_text->selection_model());
248 EXPECT_EQ(SelectionModel(ui::Range(select ? 0 : j, j), CURSOR_BACKWARD),
253 EXPECT_EQ(SelectionModel(ui::Range(select ? 0 : j, j), CURSOR_FORWARD),
257 EXPECT_EQ(SelectionModel(ui::Range(select ? 0 : len, len), CURSOR_FORWARD),
260 EXPECT_EQ(SelectionModel(0, CURSOR_BACKWARD), render_text->selection_model());
305 SelectionModel selection = render_text->FindCursorPosition(Point(x, 0));
457 EXPECT_EQ(SelectionModel(0, CURSOR_BACKWARD), render_text->selection_model());
459 EXPECT_EQ(SelectionModel(4, CURSOR_FORWARD), render_text->selection_model())
    [all...]
render_text.h 208 const SelectionModel& selection_model() const { return selection_model_; }
227 bool MoveCursorTo(const SelectionModel& selection_model);
301 void DrawCursor(Canvas* canvas, const SelectionModel& position);
307 // Gets the SelectionModel from a visual point in local coordinates.
308 virtual SelectionModel FindCursorPosition(const Point& point) = 0;
315 Rect GetCursorBounds(const SelectionModel& selection, bool insert_mode);
331 // Return a SelectionModel with the cursor at the current selection's start.
333 SelectionModel GetSelectionModelForSelectionStart();
359 SelectionModel GetAdjacentSelectionModel(const SelectionModel& current
    [all...]
render_text_linux.cc 103 SelectionModel RenderTextLinux::FindCursorPosition(const Point& point) {
107 return SelectionModel(0, CURSOR_FORWARD);
128 return SelectionModel(LayoutIndexToTextIndex(caret_pos),
149 SelectionModel RenderTextLinux::AdjacentCharSelectionModel(
150 const SelectionModel& selection,
155 SelectionModel edge = EdgeSelectionModel(direction);
169 return SelectionModel(caret, CURSOR_BACKWARD);
174 return SelectionModel(caret, CURSOR_FORWARD);
189 SelectionModel RenderTextLinux::AdjacentWordSelectionModel(
190 const SelectionModel& selection
    [all...]
render_text.cc 322 SetSelectionModel(SelectionModel());
409 SelectionModel position(cursor_position(), selection_model_.caret_affinity());
412 SelectionModel selection_start = GetSelectionModelForSelectionStart();
431 bool RenderText::MoveCursorTo(const SelectionModel& model) {
440 SelectionModel sel(range, model.caret_affinity());
447 SelectionModel position = FindCursorPosition(point);
460 SetSelectionModel(SelectionModel(sel, affinity));
467 SelectionModel cursor = FindCursorPosition(point);
473 SetSelectionModel(SelectionModel(cursor_position(),
658 void RenderText::DrawCursor(Canvas* canvas, const SelectionModel& position)
    [all...]
render_text_mac.cc 36 SelectionModel RenderTextMac::FindCursorPosition(const Point& point) {
38 return SelectionModel();
58 SelectionModel RenderTextMac::AdjacentCharSelectionModel(
59 const SelectionModel& selection,
62 return SelectionModel();
65 SelectionModel RenderTextMac::AdjacentWordSelectionModel(
66 const SelectionModel& selection,
69 return SelectionModel();
render_text_win.cc 233 SelectionModel RenderTextWin::FindCursorPosition(const Point& point) {
235 return SelectionModel();
260 return SelectionModel(cursor, trailing ? CURSOR_BACKWARD : CURSOR_FORWARD);
276 SelectionModel RenderTextWin::AdjacentCharSelectionModel(
277 const SelectionModel& selection,
284 SelectionModel edge = EdgeSelectionModel(direction);
299 return SelectionModel(caret, CURSOR_BACKWARD);
304 return SelectionModel(caret, CURSOR_FORWARD);
320 SelectionModel RenderTextWin::AdjacentWordSelectionModel(
321 const SelectionModel& selection
    [all...]
  /external/chromium_org/ui/app_list/
search_box_model.h 38 void SetSelectionModel(const gfx::SelectionModel& sel);
39 const gfx::SelectionModel& selection_model() const {
53 gfx::SelectionModel selection_model_;
search_box_model.cc 31 void SearchBoxModel::SetSelectionModel(const gfx::SelectionModel& sel) {
  /external/chromium_org/ui/views/controls/textfield/
native_textfield_wrapper.h 118 virtual gfx::SelectionModel GetSelectionModel() const = 0;
121 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) = 0;
textfield_views_model.h 134 bool MoveCursorTo(const gfx::SelectionModel& selection);
151 void SelectSelectionModel(const gfx::SelectionModel& sel);
textfield.h 221 gfx::SelectionModel GetSelectionModel() const;
225 void SelectSelectionModel(const gfx::SelectionModel& sel);
native_textfield_views.h 135 virtual gfx::SelectionModel GetSelectionModel() const OVERRIDE;
136 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE;
313 gfx::SelectionModel drop_cursor_position_;
native_textfield_views.cc 316 gfx::SelectionModel drop_destination_model =
371 gfx::SelectionModel start_caret = GetRenderText()->FindCursorPosition(start);
372 gfx::SelectionModel end_caret = GetRenderText()->FindCursorPosition(end);
373 gfx::SelectionModel selection(
391 const gfx::SelectionModel& sel = render_text->selection_model();
392 gfx::SelectionModel start_sel =
644 gfx::SelectionModel NativeTextfieldViews::GetSelectionModel() const {
649 const gfx::SelectionModel& sel) {
992 const gfx::SelectionModel start_position(left_cursor_pos,
994 const gfx::SelectionModel end_position(right_cursor_pos
    [all...]
textfield_views_model.cc 406 bool TextfieldViewsModel::MoveCursorTo(const gfx::SelectionModel& model) {
410 // the SelectionModel parameter of MoveCursorTo().
415 gfx::SelectionModel(model.caret_pos(), model.caret_affinity()));
437 void TextfieldViewsModel::SelectSelectionModel(const gfx::SelectionModel& sel) {
676 const gfx::SelectionModel& model = render_text_->selection_model();
native_textfield_win.h 84 virtual gfx::SelectionModel GetSelectionModel() const OVERRIDE;
85 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE;
textfield.cc 378 gfx::SelectionModel Textfield::GetSelectionModel() const {
382 void Textfield::SelectSelectionModel(const gfx::SelectionModel& sel) {
native_textfield_views_unittest.cc 268 gfx::SelectionModel(cursor_pos, gfx::CURSOR_FORWARD), false).x();
279 gfx::Rect GetCursorBounds(const gfx::SelectionModel& sel) {
    [all...]
textfield_views_model_unittest.cc 38 model.MoveCursorTo(gfx::SelectionModel(pos, gfx::CURSOR_FORWARD));
786 model.SelectSelectionModel(gfx::SelectionModel(ui::Range(0, 6),
790 model.SelectSelectionModel(gfx::SelectionModel(ui::Range(6, 1),
794 model.SelectSelectionModel(gfx::SelectionModel(ui::Range(2, 1000),
798 model.SelectSelectionModel(gfx::SelectionModel(ui::Range(1000, 3),
802 model.SelectSelectionModel(gfx::SelectionModel(0, gfx::CURSOR_FORWARD));
805 model.SelectSelectionModel(gfx::SelectionModel(3, gfx::CURSOR_FORWARD));
808 model.SelectSelectionModel(gfx::SelectionModel(ui::Range(1000, 100),
812 model.SelectSelectionModel(gfx::SelectionModel(1000, gfx::CURSOR_BACKWARD));
    [all...]
  /external/chromium_org/ui/views/touchui/
touch_selection_controller_impl_unittest.cc 89 gfx::Point GetCursorPosition(const gfx::SelectionModel& sel) {
161 gfx::SelectionModel sel = textfield_view_->GetSelectionModel(); \
166 gfx::SelectionModel sel_start = GetRenderText()-> \
236 gfx::SelectionModel(3, gfx::CURSOR_BACKWARD));
  /external/chromium_org/chrome/browser/ui/views/omnibox/
omnibox_view_views.cc 66 const gfx::SelectionModel& selection_model);
70 const gfx::SelectionModel selection_model;
77 const gfx::SelectionModel& selection_model)
359 const gfx::SelectionModel selection = GetSelectionModel();

Completed in 1089 milliseconds

1 2