/external/chromium_org/third_party/WebKit/Source/core/editing/ |
SpellChecker.h | 32 #include "core/editing/VisibleSelection.h" 62 void markMisspellingsAfterTypingToWord(const VisiblePosition &wordStart, const VisibleSelection& selectionAfterTyping); 63 void markMisspellings(const VisibleSelection&, RefPtr<Range>& firstMisspellingRange); 64 void markBadGrammar(const VisibleSelection&); 65 void markMisspellingsAndBadGrammar(const VisibleSelection& spellingSelection, bool markGrammar, const VisibleSelection& grammarSelection); 71 void clearMisspellingsAndBadGrammar(const VisibleSelection&); 72 void markMisspellingsAndBadGrammar(const VisibleSelection&); 73 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSelection::SetSelectionOptions); 75 void spellCheckOldSelection(const VisibleSelection& oldSelection, const VisibleSelection& newAdjacentWords, const VisibleSelection& newSelectedSenten (…) [all...] |
EditCommand.h | 30 #include "core/editing/VisibleSelection.h" 50 const VisibleSelection& startingSelection() const { return m_startingSelection; } 51 const VisibleSelection& endingSelection() const { return m_endingSelection; } 62 EditCommand(Document*, const VisibleSelection&, const VisibleSelection&); 66 void setStartingSelection(const VisibleSelection&); 67 void setEndingSelection(const VisibleSelection&); 71 VisibleSelection m_startingSelection; 72 VisibleSelection m_endingSelection;
|
VisibleSelection.h | 41 class VisibleSelection { 43 VisibleSelection(); 45 VisibleSelection(const Position&, EAffinity, bool isDirectional = false); 46 VisibleSelection(const Position&, const Position&, EAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); 48 VisibleSelection(const Range*, EAffinity = SEL_DEFAULT_AFFINITY, bool isDirectional = false); 50 VisibleSelection(const VisiblePosition&, bool isDirectional = false); 51 VisibleSelection(const VisiblePosition&, const VisiblePosition&, bool isDirectional = false); 53 static VisibleSelection selectionFromContentsOfNode(Node*); 129 // We need to store these as Positions because VisibleSelection is 147 inline bool operator==(const VisibleSelection& a, const VisibleSelection& b [all...] |
CompositeEditCommand.h | 43 static PassRefPtr<EditCommandComposition> create(Document*, const VisibleSelection&, const VisibleSelection&, EditAction); 52 const VisibleSelection& startingSelection() const { return m_startingSelection; } 53 const VisibleSelection& endingSelection() const { return m_endingSelection; } 54 void setStartingSelection(const VisibleSelection&); 55 void setEndingSelection(const VisibleSelection&); 60 EditCommandComposition(Document*, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection, EditAction); 63 VisibleSelection m_startingSelection; 64 VisibleSelection m_endingSelection [all...] |
VisibleSelection.cpp | 27 #include "core/editing/VisibleSelection.h" 49 VisibleSelection::VisibleSelection() 57 VisibleSelection::VisibleSelection(const Position& pos, EAffinity affinity, bool isDirectional) 66 VisibleSelection::VisibleSelection(const Position& base, const Position& extent, EAffinity affinity, bool isDirectional) 75 VisibleSelection::VisibleSelection(const VisiblePosition& pos, bool isDirectional) 84 VisibleSelection::VisibleSelection(const VisiblePosition& base, const VisiblePosition& extent, bool isDirectional [all...] |
TextInsertionBaseCommand.h | 35 class VisibleSelection; 43 static void applyTextInsertionCommand(Frame*, PassRefPtr<TextInsertionBaseCommand>, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection); 46 String dispatchBeforeTextInsertedEvent(const String& text, const VisibleSelection& selectionForInsertion, bool insertionIsForUpdatingComposition); 47 bool canAppendNewLineFeedToSelection(const VisibleSelection&);
|
Editor.h | 36 #include "core/editing/VisibleSelection.h" 107 void respondToChangedContents(const VisibleSelection& endingSelection); 194 VisibleSelection selectionForCommand(Event*); 207 Node* findEventTargetFrom(const VisibleSelection&) const; 215 const VisibleSelection& mark() const; // Mark, to be used as emacs uses it. 216 void setMark(const VisibleSelection&); 222 void respondToChangedSelection(const VisibleSelection& oldSelection, FrameSelection::SetSelectionOptions); 253 VisibleSelection m_mark; 275 void changeSelectionAfterCommand(const VisibleSelection& newSelection, FrameSelection::SetSelectionOptions); 276 void notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection, FrameSelection::SetSelectionOptions) [all...] |
SetSelectionCommand.h | 36 static PassRefPtr<SetSelectionCommand> create(const VisibleSelection& selection, FrameSelection::SetSelectionOptions options) 42 SetSelectionCommand(const VisibleSelection&, FrameSelection::SetSelectionOptions); 48 VisibleSelection m_selectionToSet;
|
TextInsertionBaseCommand.cpp | 43 void TextInsertionBaseCommand::applyTextInsertionCommand(Frame* frame, PassRefPtr<TextInsertionBaseCommand> command, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection) 57 String dispatchBeforeTextInsertedEvent(const String& text, const VisibleSelection& selectionForInsertion, bool insertionIsForUpdatingComposition) 74 bool canAppendNewLineFeedToSelection(const VisibleSelection& selection)
|
SpellChecker.cpp | 55 bool isSelectionInTextField(const VisibleSelection& selection) 136 VisibleSelection selection = VisibleSelection::selectionFromContentsOfNode(element); 157 VisibleSelection selection(m_frame.selection().selection()); 290 m_frame.selection().setSelection(VisibleSelection(badGrammarRange.get(), SEL_DEFAULT_AFFINITY)); 299 m_frame.selection().setSelection(VisibleSelection(misspellingRange.get(), DOWNSTREAM)); 312 VisibleSelection selection = m_frame.selection().selection(); 316 VisibleSelection wordSelection(selection.base()); 348 void SpellChecker::clearMisspellingsAndBadGrammar(const VisibleSelection &movingSelection) 355 void SpellChecker::markMisspellingsAndBadGrammar(const VisibleSelection &movingSelection [all...] |
EditCommand.cpp | 47 EditCommand::EditCommand(Document* document, const VisibleSelection& startingSelection, const VisibleSelection& endingSelection) 73 void EditCommand::setStartingSelection(const VisibleSelection& s) 86 void EditCommand::setEndingSelection(const VisibleSelection &s)
|
InsertLineBreakCommand.cpp | 93 VisibleSelection selection = endingSelection(); 126 setEndingSelection(VisibleSelection(endingPosition, endingSelection().isDirectional())); 134 setEndingSelection(VisibleSelection(positionInParentAfterNode(nodeToInsert.get()), DOWNSTREAM, endingSelection().isDirectional())); 139 setEndingSelection(VisibleSelection(positionInParentAfterNode(nodeToInsert.get()), DOWNSTREAM, endingSelection().isDirectional())); 164 setEndingSelection(VisibleSelection(endingPosition, DOWNSTREAM, endingSelection().isDirectional())); 178 // It tries to set a VisibleSelection around the content it operated on. So, that VisibleSelection
|
DeleteSelectionCommand.h | 41 static PassRefPtr<DeleteSelectionCommand> create(const VisibleSelection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool replace = false, bool expandForSpecialElements = false, bool sanitizeMarkup = true) 48 DeleteSelectionCommand(const VisibleSelection&, bool smartDelete, bool mergeBlocksAfterDelete, bool replace, bool expandForSpecialElements, bool sanitizeMarkup); 84 VisibleSelection m_selectionToDelete;
|
FrameSelection.h | 32 #include "core/editing/VisibleSelection.h" 96 const VisibleSelection& selection() const { return m_selection; } 97 void setSelection(const VisibleSelection&, SetSelectionOptions = CloseTyping | ClearTypingStyle, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded, TextGranularity = CharacterGranularity); 98 void setSelection(const VisibleSelection& selection, TextGranularity granularity) { setSelection(selection, CloseTyping | ClearTypingStyle, AlignCursorOnScrollIfNeeded, granularity); } 185 void setNonDirectionalSelectionIfNeeded(const VisibleSelection&, TextGranularity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints); 251 VisibleSelection m_selection;
|
EditingStyle.h | 60 class VisibleSelection; 117 TriState triStateOfStyle(const VisibleSelection&) const; 147 static PassRefPtr<EditingStyle> styleAtSelectionStart(const VisibleSelection&, bool shouldUseBackgroundColorInEffect = false); 148 static WritingDirection textDirectionForSelection(const VisibleSelection&, EditingStyle* typingStyle, bool& hasNestedOrMultipleEmbeddings);
|
BreakBlockquoteCommand.cpp | 82 setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional())); 92 setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional())); 126 setEndingSelection(VisibleSelection(VisiblePosition(firstPositionInOrBeforeNode(startNode)), endingSelection().isDirectional())); 185 setEndingSelection(VisibleSelection(positionBeforeNode(breakNode.get()), DOWNSTREAM, endingSelection().isDirectional()));
|
CreateLinkCommand.cpp | 54 setEndingSelection(VisibleSelection(positionInParentBeforeNode(anchorElement.get()), positionInParentAfterNode(anchorElement.get()), DOWNSTREAM, endingSelection().isDirectional()));
|
InsertListCommand.h | 55 bool selectionHasListOfType(const VisibleSelection& selection, const QualifiedName&);
|
SetSelectionCommand.cpp | 34 SetSelectionCommand::SetSelectionCommand(const VisibleSelection& selection, FrameSelection::SetSelectionOptions options)
|
SpellingCorrectionCommand.h | 46 VisibleSelection m_selectionToBeCorrected;
|
TypingCommand.cpp | 148 VisibleSelection currentSelection = frame->selection().selection(); 168 void TypingCommand::insertText(Document& document, const String& text, const VisibleSelection& selectionForInsertion, Options options, TextCompositionType compositionType) 173 VisibleSelection currentSelection = frame->selection().selection(); 394 setEndingSelection(VisibleSelection(firstPositionInNode(root), DOWNSTREAM, endingSelection().isDirectional())); 407 VisibleSelection selectionToDelete; 408 VisibleSelection selectionAfterUndo; 457 setEndingSelection(VisibleSelection(positionBeforeNode(table), endingSelection().start(), DOWNSTREAM, endingSelection().isDirectional())); 474 // We can't let the VisibleSelection class's validation kick in or it'll adjust for us based on 511 VisibleSelection selectionToDelete; 512 VisibleSelection selectionAfterUndo [all...] |
FrameSelection.cpp | 124 setSelection(VisibleSelection(pos.deepEquivalent(), pos.deepEquivalent(), pos.affinity(), m_selection.isDirectional()), options, align); 131 setSelection(VisibleSelection(base.deepEquivalent(), extent.deepEquivalent(), base.affinity(), selectionHasDirection), options); 137 setSelection(VisibleSelection(pos, affinity, m_selection.isDirectional()), options); 143 VisibleSelection selection = r ? VisibleSelection(r->startPosition(), r->endPosition(), affinity) : VisibleSelection(Position(), Position(), affinity); 151 setSelection(VisibleSelection(base, extent, affinity, selectionHasDirection), options); 191 void FrameSelection::setNonDirectionalSelectionIfNeeded(const VisibleSelection& passedNewSelection, TextGranularity granularity, 194 VisibleSelection newSelection = passedNewSelection; 221 void FrameSelection::setSelection(const VisibleSelection& newSelection, SetSelectionOptions options, CursorAlignOnScroll align, TextGranularity granularity [all...] |
InsertTextCommand.cpp | 81 VisibleSelection forcedEndingSelection; 104 setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional())); 125 setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional())); 144 // a renderer (e.g. it is on a <frameset> in the DOM), the VisibleSelection cannot be canonicalized to 231 setEndingSelection(VisibleSelection(endingSelection().end(), endingSelection().affinity(), endingSelection().isDirectional()));
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
DOMSelection.cpp | 73 const VisibleSelection& DOMSelection::visibleSelection() const 79 static Position anchorPosition(const VisibleSelection& selection) 85 static Position focusPosition(const VisibleSelection& selection) 91 static Position basePosition(const VisibleSelection& selection) 96 static Position extentPosition(const VisibleSelection& selection) 106 return shadowAdjustedNode(anchorPosition(visibleSelection())); 114 return shadowAdjustedOffset(anchorPosition(visibleSelection())); 122 return shadowAdjustedNode(focusPosition(visibleSelection())); 130 return shadowAdjustedOffset(focusPosition(visibleSelection())); [all...] |
DOMSelection.h | 48 class VisibleSelection; 101 const VisibleSelection& visibleSelection() const;
|