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

  /external/chromium_org/ui/gfx/
selection_model.cc 12 SelectionModel::SelectionModel()
16 SelectionModel::SelectionModel(size_t position, LogicalCursorDirection affinity)
20 SelectionModel::SelectionModel(const Range& selection,
25 bool SelectionModel::operator==(const SelectionModel& sel) const {
30 std::string SelectionModel::ToString() const {
selection_model.h 33 // SelectionModel is used to represent the logical selection and visual
59 class GFX_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(const Range& selection, LogicalCursorDirection affinity);
80 bool operator==(const SelectionModel& sel) const;
81 bool operator!=(const SelectionModel& sel) const { return !(*this == sel);
    [all...]
render_text_pango.h 23 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_harfbuzz.h 85 virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
92 virtual SelectionModel AdjacentCharSelectionModel(
93 const SelectionModel& selection,
95 virtual SelectionModel AdjacentWordSelectionModel(
96 const SelectionModel& selection,
116 size_t GetRunContainingCaret(const SelectionModel& caret) const;
119 // Given a |run|, returns the SelectionModel that contains the logical first
122 SelectionModel FirstSelectionModelInsideRun(
124 SelectionModel LastSelectionModelInsideRun(
render_text_win.h 67 virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
73 virtual SelectionModel AdjacentCharSelectionModel(
74 const SelectionModel& selection,
76 virtual SelectionModel AdjacentWordSelectionModel(
77 const SelectionModel& selection,
108 size_t GetRunContainingCaret(const SelectionModel& caret) const;
111 // Given a |run|, returns the SelectionModel that contains the logical first
114 SelectionModel FirstSelectionModelInsideRun(const internal::TextRun* run);
115 SelectionModel LastSelectionModelInsideRun(const internal::TextRun* run);
render_text_mac.h 31 virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
37 virtual SelectionModel AdjacentCharSelectionModel(
38 const SelectionModel& selection,
40 virtual SelectionModel AdjacentWordSelectionModel(
41 const SelectionModel& selection,
render_text.h 274 const SelectionModel& selection_model() const { return selection_model_; }
293 bool MoveCursorTo(const SelectionModel& selection_model);
373 void DrawCursor(Canvas* canvas, const SelectionModel& position);
375 // Gets the SelectionModel from a visual point in local coordinates.
376 virtual SelectionModel FindCursorPosition(const Point& point) = 0;
393 Rect GetCursorBounds(const SelectionModel& caret, bool insert_mode);
408 // Return a SelectionModel with the cursor at the current selection's start.
410 SelectionModel GetSelectionModelForSelectionStart();
471 SelectionModel GetAdjacentSelectionModel(const SelectionModel& current
    [all...]
render_text_unittest.cc 69 const std::vector<SelectionModel>& expected,
263 EXPECT_EQ(SelectionModel(Range(select ? 0 : len, len), CURSOR_FORWARD),
266 EXPECT_EQ(SelectionModel(0, CURSOR_BACKWARD), render_text->selection_model());
269 EXPECT_EQ(SelectionModel(Range(select ? 0 : j, j), CURSOR_BACKWARD),
274 EXPECT_EQ(SelectionModel(Range(select ? 0 : j, j), CURSOR_FORWARD),
278 EXPECT_EQ(SelectionModel(Range(select ? 0 : len, len), CURSOR_FORWARD),
281 EXPECT_EQ(SelectionModel(0, CURSOR_BACKWARD), render_text->selection_model());
326 SelectionModel selection = render_text->FindCursorPosition(Point(x, 0));
568 EXPECT_EQ(SelectionModel(0, CURSOR_BACKWARD), render_text->selection_model());
570 EXPECT_EQ(SelectionModel(4, CURSOR_FORWARD), render_text->selection_model())
    [all...]
render_text_pango.cc 113 SelectionModel RenderTextPango::FindCursorPosition(const Point& point) {
117 return SelectionModel(0, CURSOR_FORWARD);
138 return SelectionModel(LayoutIndexToTextIndex(caret_pos),
164 SelectionModel RenderTextPango::AdjacentCharSelectionModel(
165 const SelectionModel& selection,
170 SelectionModel edge = EdgeSelectionModel(direction);
184 return SelectionModel(caret, CURSOR_BACKWARD);
189 return SelectionModel(caret, CURSOR_FORWARD);
204 SelectionModel RenderTextPango::AdjacentWordSelectionModel(
205 const SelectionModel& selection
    [all...]
render_text_mac.cc 36 SelectionModel RenderTextMac::FindCursorPosition(const Point& point) {
38 return SelectionModel();
62 SelectionModel RenderTextMac::AdjacentCharSelectionModel(
63 const SelectionModel& selection,
66 return SelectionModel();
69 SelectionModel RenderTextMac::AdjacentWordSelectionModel(
70 const SelectionModel& selection,
73 return SelectionModel();
render_text_harfbuzz.cc 594 SelectionModel RenderTextHarfBuzz::FindCursorPosition(const Point& point) {
610 return SelectionModel(LayoutIndexToTextIndex(
615 return SelectionModel(LayoutIndexToTextIndex(
642 GetRunContainingCaret(SelectionModel(index, CURSOR_FORWARD));
657 SelectionModel RenderTextHarfBuzz::AdjacentCharSelectionModel(
658 const SelectionModel& selection,
665 SelectionModel edge = EdgeSelectionModel(direction);
679 return SelectionModel(caret, CURSOR_BACKWARD);
684 return SelectionModel(caret, CURSOR_FORWARD);
699 SelectionModel RenderTextHarfBuzz::AdjacentWordSelectionModel
    [all...]
render_text_win.cc 543 SelectionModel RenderTextWin::FindCursorPosition(const Point& point) {
545 return SelectionModel();
570 return SelectionModel(cursor, trailing ? CURSOR_BACKWARD : CURSOR_FORWARD);
591 SelectionModel RenderTextWin::AdjacentCharSelectionModel(
592 const SelectionModel& selection,
599 SelectionModel edge = EdgeSelectionModel(direction);
614 return SelectionModel(caret, CURSOR_BACKWARD);
619 return SelectionModel(caret, CURSOR_FORWARD);
635 SelectionModel RenderTextWin::AdjacentWordSelectionModel(
636 const SelectionModel& selection
    [all...]
render_text.cc 428 SetSelectionModel(SelectionModel());
525 SelectionModel cursor(cursor_position(), selection_model_.caret_affinity());
528 SelectionModel selection_start = GetSelectionModelForSelectionStart();
549 bool RenderText::MoveCursorTo(const SelectionModel& model) {
557 SelectionModel sel(range, model.caret_affinity());
571 SetSelectionModel(SelectionModel(sel, affinity));
578 SelectionModel cursor = FindCursorPosition(point);
584 SetSelectionModel(SelectionModel(cursor_position(),
757 void RenderText::DrawCursor(Canvas* canvas, const SelectionModel& position) {
778 Rect RenderText::GetCursorBounds(const SelectionModel& caret
    [all...]
  /external/chromium_org/ui/app_list/
search_box_model.h 62 void SetSelectionModel(const gfx::SelectionModel& sel);
63 const gfx::SelectionModel& selection_model() const {
78 gfx::SelectionModel selection_model_;
search_box_model.cc 53 void SearchBoxModel::SetSelectionModel(const gfx::SelectionModel& sel) {
  /external/chromium_org/ui/views/controls/textfield/
textfield_model.h 118 bool MoveCursorTo(const gfx::SelectionModel& cursor);
135 void SelectSelectionModel(const gfx::SelectionModel& sel);
textfield.h 174 const gfx::SelectionModel& GetSelectionModel() const;
177 void SelectSelectionModel(const gfx::SelectionModel& sel);
445 gfx::SelectionModel drop_cursor_position_;
textfield_model.cc 378 bool TextfieldModel::MoveCursorTo(const gfx::SelectionModel& cursor) {
382 // the SelectionModel parameter of MoveCursorTo().
387 gfx::SelectionModel(cursor.caret_pos(), cursor.caret_affinity()));
395 gfx::SelectionModel cursor = render_text_->FindCursorPosition(point);
412 void TextfieldModel::SelectSelectionModel(const gfx::SelectionModel& sel) {
653 const gfx::SelectionModel& model = render_text_->selection_model();
textfield.cc 496 const gfx::SelectionModel& Textfield::GetSelectionModel() const {
500 void Textfield::SelectSelectionModel(const gfx::SelectionModel& sel) {
878 gfx::SelectionModel drop_destination_model =
    [all...]
textfield_unittest.cc 280 gfx::SelectionModel(cursor_pos, gfx::CURSOR_FORWARD), false).x();
289 gfx::Rect GetCursorBounds(const gfx::SelectionModel& sel) {
    [all...]
textfield_model_unittest.cc 38 model.MoveCursorTo(gfx::SelectionModel(pos, gfx::CURSOR_FORWARD));
783 model.SelectSelectionModel(gfx::SelectionModel(gfx::Range(0, 6),
787 model.SelectSelectionModel(gfx::SelectionModel(gfx::Range(6, 1),
791 model.SelectSelectionModel(gfx::SelectionModel(gfx::Range(2, 1000),
795 model.SelectSelectionModel(gfx::SelectionModel(gfx::Range(1000, 3),
799 model.SelectSelectionModel(gfx::SelectionModel(0, gfx::CURSOR_FORWARD));
802 model.SelectSelectionModel(gfx::SelectionModel(3, gfx::CURSOR_FORWARD));
805 model.SelectSelectionModel(gfx::SelectionModel(gfx::Range(1000, 100),
809 model.SelectSelectionModel(gfx::SelectionModel(1000, gfx::CURSOR_BACKWARD));
    [all...]
  /external/chromium_org/ui/views/touchui/
touch_selection_controller_impl_unittest.cc 121 gfx::Rect GetCursorRect(const gfx::SelectionModel& sel) {
125 gfx::Point GetCursorPosition(const gfx::SelectionModel& sel) {
194 const gfx::SelectionModel& sel = textfield_->GetSelectionModel();
218 gfx::SelectionModel sel = textfield_->GetSelectionModel(); \
223 gfx::SelectionModel sel_start = GetRenderText()-> \
295 gfx::SelectionModel(3, gfx::CURSOR_BACKWARD));
  /external/chromium_org/chrome/browser/ui/views/
edit_search_engine_dialog.cc 109 const gfx::SelectionModel selection_model = sender->GetSelectionModel();

Completed in 666 milliseconds