Home
last modified time | relevance | path

Searched refs:selection (Results 1 – 25 of 375) sorted by relevance

12345678910>>...15

/external/webkit/Source/WebCore/page/
DDOMSelection.cpp46 Node* node = frame->selection()->selection().base().anchorNode(); in selectionShadowAncestor()
73 return m_frame->selection()->selection(); in visibleSelection()
76 static Position anchorPosition(const VisibleSelection& selection) in anchorPosition() argument
78 Position anchor = selection.isBaseFirst() ? selection.start() : selection.end(); in anchorPosition()
82 static Position focusPosition(const VisibleSelection& selection) in focusPosition() argument
84 Position focus = selection.isBaseFirst() ? selection.end() : selection.start(); in focusPosition()
88 static Position basePosition(const VisibleSelection& selection) in basePosition() argument
90 return selection.base().parentAnchoredEquivalent(); in basePosition()
93 static Position extentPosition(const VisibleSelection& selection) in extentPosition() argument
95 return selection.extent().parentAnchoredEquivalent(); in extentPosition()
[all …]
DDragController.cpp144 bool DragController::dragIsMove(SelectionController* selection, DragData* dragData) in dragIsMove() argument
146 …return m_documentUnderMouse == m_dragInitiator && selection->isContentEditable() && !isCopyKeyDown… in dragIsMove()
338 … operation = dragIsMove(innerFrame->selection(), dragData) ? DragOperationMove : DragOperationCopy; in tryDocumentDrag()
363 frame->selection()->setSelection(dragCaret); in setSelectionToDragCaret()
364 if (frame->selection()->isNone()) { in setSelectionToDragCaret()
366 frame->selection()->setSelection(dragCaret); in setSelectionToDragCaret()
369 return !frame->selection()->isNone() && frame->selection()->isContentEditable(); in setSelectionToDragCaret()
375 VisibleSelection dragCaret(m_page->dragCaretController()->selection()); in dispatchTextInputEventFor()
404 RefPtr<Range> innerRange = innerFrame->selection()->toNormalizedRange(); in concludeEditDrag()
443 VisibleSelection dragCaret(m_page->dragCaretController()->selection()); in concludeEditDrag()
[all …]
DEventHandler.cpp269 static void setSelectionIfNeeded(SelectionController* selection, const VisibleSelection& newSelecti… in setSelectionIfNeeded() argument
271 ASSERT(selection); in setSelectionIfNeeded()
272 if (selection->selection() != newSelection && selection->shouldChangeSelection(newSelection)) in setSelectionIfNeeded()
273 selection->setSelection(newSelection); in setSelectionIfNeeded()
276 static void setNonDirectionalSelectionIfNeeded(SelectionController* selection, const VisibleSelecti… in setNonDirectionalSelectionIfNeeded() argument
278 ASSERT(selection); in setNonDirectionalSelectionIfNeeded()
279 if (selection->selection() != newSelection && selection->shouldChangeSelection(newSelection)) in setNonDirectionalSelectionIfNeeded()
280 selection->setSelection(newSelection, granularity, MakeNonDirectionalSelection); in setNonDirectionalSelectionIfNeeded()
303 setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, granularity); in selectClosestWordFromMouseEvent()
327 setNonDirectionalSelectionIfNeeded(m_frame->selection(), newSelection, granularity); in selectClosestWordOrLinkFromMouseEvent()
[all …]
/external/webkit/Source/WebCore/inspector/front-end/
DTextPrompt.js143 var selection = window.getSelection();
144 selection.removeAllRanges();
145 selection.addRange(finalSelectionRange);
177 var selection = window.getSelection();
178 selection.removeAllRanges();
179 selection.addRange(selectionRange);
194 var selection = window.getSelection();
195 if (!selection.rangeCount)
198 var selectionRange = selection.getRangeAt(0);
209 …this.completions(wordPrefixRange, auto, this._completionsReady.bind(this, selection, auto, wordPre…
[all …]
/external/webkit/Source/WebCore/editing/
DEditor.cpp101 VisibleSelection selection = m_frame->selection()->selection(); in selectionForCommand() local
103 return selection; in selectionForCommand()
107 Node* selectionStart = selection.start().deprecatedNode(); in selectionForCommand()
111 range = static_cast<HTMLInputElement*>(target)->selection(); in selectionForCommand()
113 range = static_cast<HTMLTextAreaElement*>(target)->selection(); in selectionForCommand()
118 return selection; in selectionForCommand()
184 return m_frame->selection()->rootEditableElement(); in canEdit()
189 return m_frame->selection()->isContentRichlyEditable(); in canEditRichly()
199 …return !m_frame->selection()->isInPasswordField() && !dispatchCPPEvent(eventNames().beforecutEvent… in canDHTMLCut()
204 …return !m_frame->selection()->isInPasswordField() && !dispatchCPPEvent(eventNames().beforecopyEven… in canDHTMLCopy()
[all …]
DEditorCommand.cpp210 VisibleSelection selection = frame->selection()->selection(); in expandSelectionToGranularity() local
211 selection.expandUsingGranularity(granularity); in expandSelectionToGranularity()
212 RefPtr<Range> newRange = selection.toNormalizedRange(); in expandSelectionToGranularity()
218 RefPtr<Range> oldRange = frame->selection()->selection().toNormalizedRange(); in expandSelectionToGranularity()
219 EAffinity affinity = frame->selection()->affinity(); in expandSelectionToGranularity()
222 frame->selection()->setSelectedRange(newRange.get(), affinity, true); in expandSelectionToGranularity()
321 …TypingCommand::deleteKeyPressed(frame->document(), frame->selection()->granularity() == WordGranul… in executeDelete()
379 SelectionController* selection = frame->selection(); in executeDeleteToMark() local
380 …bool selected = selection->setSelectedRange(unionDOMRanges(mark.get(), frame->editor()->selectedRa… in executeDeleteToMark()
386 frame->editor()->setMark(frame->selection()->selection()); in executeDeleteToMark()
[all …]
DTypingCommand.cpp51 static bool canAppendNewLineFeed(const VisibleSelection& selection) in canAppendNewLineFeed() argument
53 Node* node = selection.rootEditableElement(); in canAppendNewLineFeed()
87 if (!frame->selection()->isRange()) in deleteSelection()
143 VisibleSelection currentSelection = frame->selection()->selection(); in updateSelectionIfDifferentFromCurrentSelection()
161 insertText(document, text, frame->selection()->selection(), options, composition); in insertText()
172 VisibleSelection currentSelection = frame->selection()->selection(); in insertText()
214 frame->selection()->setSelection(currentSelection); in insertText()
398 if (!document()->frame()->selection()->typingStyle() && !m_commands.isEmpty()) { in insertTextRunWithoutNewlines()
488 SelectionController selection; in deleteKeyPressed() local
489 selection.setSelection(endingSelection()); in deleteKeyPressed()
[all …]
DModifySelectionListLevel.cpp49 static bool getStartEndListChildren(const VisibleSelection& selection, Node*& start, Node*& end) in getStartEndListChildren() argument
51 if (selection.isNone()) in getStartEndListChildren()
55 Node* startListChild = enclosingListChild(selection.start().anchorNode()); in getStartEndListChildren()
60 …Node* endListChild = selection.isRange() ? enclosingListChild(selection.end().anchorNode()) : star… in getStartEndListChildren()
144 static bool canIncreaseListLevel(const VisibleSelection& selection, Node*& start, Node*& end) in canIncreaseListLevel() argument
146 if (!getStartEndListChildren(selection, start, end)) in canIncreaseListLevel()
209 …return canIncreaseListLevel(document->frame()->selection()->selection(), startListChild, endListCh… in canIncreaseSelectionListLevel()
242 static bool canDecreaseListLevel(const VisibleSelection& selection, Node*& start, Node*& end) in canDecreaseListLevel() argument
244 if (!getStartEndListChildren(selection, start, end)) in canDecreaseListLevel()
285 …return canDecreaseListLevel(document->frame()->selection()->selection(), startListChild, endListCh… in canDecreaseSelectionListLevel()
DSetSelectionCommand.cpp33 SetSelectionCommand::SetSelectionCommand(const VisibleSelection& selection, SelectionController::Se… in SetSelectionCommand() argument
34 : SimpleEditCommand(selection.base().anchorNode()->document()) in SetSelectionCommand()
36 , m_selectionToSet(selection) in SetSelectionCommand()
42 SelectionController* selectionController = document()->frame()->selection(); in doApply()
53 SelectionController* selectionController = document()->frame()->selection(); in doUnapply()
DSpellingCorrectionController.cpp119 VisibleSelection currentSelection(m_frame->selection()->selection()); in stopPendingCorrection()
229 setEnd(paragraphRangeContainingCorrection.get(), m_frame->selection()->selection().start()); in applyCorrectionPanelInfo()
256 Position caretPosition = m_frame->selection()->selection().start(); in applyAutocorrectionBeforeTypingIfAppropriate()
273 …m_frame->selection()->setSelection(selectionOfCorrected, SelectionController::CloseTyping | Select… in respondToUnappliedSpellCorrection()
274 …Range::create(m_frame->document(), m_frame->selection()->selection().start(), m_frame->selection()… in respondToUnappliedSpellCorrection()
287 VisibleSelection selection(m_frame->selection()->selection()); in correctionPanelTimerFired() local
288 VisiblePosition start(selection.start(), selection.affinity()); in correctionPanelTimerFired()
369 VisibleSelection currentSelection(m_frame->selection()->selection()); in respondToChangedSelection()
DDeleteButtonController.cpp147 static HTMLElement* enclosingDeletableElement(const VisibleSelection& selection) in enclosingDeletableElement() argument
149 if (!selection.isContentEditable()) in enclosingDeletableElement()
152 RefPtr<Range> range = selection.toNormalizedRange(); in enclosingDeletableElement()
176 HTMLElement* newElement = enclosingDeletableElement(m_frame->selection()->selection()); in respondToChangedSelection()
331 show(enclosingDeletableElement(m_frame->selection()->selection())); in enable()
355 m_frame->selection()->setSelection(VisiblePosition(pos)); in deleteTarget()
DReplaceSelectionCommand.cpp127 …Document* document, DocumentFragment* fragment, bool matchStyle, const VisibleSelection& selection) in ReplacementFragment() argument
141 Element* editableRoot = selection.rootEditableElement(); in ReplacementFragment()
156 Node* styleNode = selection.base().deprecatedNode(); in ReplacementFragment()
170 m_fragment = createFragmentFromText(selection.toNormalizedRange().get(), evt->text()); in ReplacementFragment()
810 VisibleSelection selection = endingSelection(); in doApply() local
811 ASSERT(selection.isCaretOrRange()); in doApply()
812 ASSERT(selection.start().deprecatedNode()); in doApply()
813 if (!selection.isNonOrphanedCaretOrRange() || !selection.start().deprecatedNode()) in doApply()
816 bool selectionIsPlainText = !selection.isContentRichlyEditable(); in doApply()
818 Element* currentRoot = selection.rootEditableElement(); in doApply()
[all …]
DInsertListCommand.cpp83 bool InsertListCommand::selectionHasListOfType(const VisibleSelection& selection, const QualifiedNa… in selectionHasListOfType() argument
85 VisiblePosition start = selection.visibleStart(); in selectionHasListOfType()
90 VisiblePosition end = selection.visibleEnd(); in selectionHasListOfType()
129 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); in doApply() local
130 ASSERT(selection.isRange()); in doApply()
131 VisiblePosition startOfSelection = selection.visibleStart(); in doApply()
132 VisiblePosition endOfSelection = selection.visibleEnd(); in doApply()
136 bool forceCreateList = !selectionHasListOfType(selection, listTag); in doApply()
DRemoveFormatCommand.cpp82 if (!frame->selection()->selection().isNonOrphanedCaretOrRange()) in doApply()
87 Node* root = frame->selection()->rootEditableElement(); in doApply()
DInsertLineBreakCommand.cpp91 VisibleSelection selection = endingSelection(); in doApply() local
92 if (!selection.isNonOrphanedCaretOrRange()) in doApply()
95 VisiblePosition caret(selection.visibleStart()); in doApply()
167 RefPtr<EditingStyle> typingStyle = document()->frame()->selection()->typingStyle(); in doApply()
DSetSelectionCommand.h36 …static PassRefPtr<SetSelectionCommand> create(const VisibleSelection& selection, SelectionControll… in create() argument
38 return adoptRef(new SetSelectionCommand(selection, options)); in create()
/external/chromium/chrome/browser/resources/file_manager/js/
Dfile_manager.js575 this.selection.totalCount == 1);
710 this.deleteEntries(this.selection.entries);
892 if (this.selection && this.selection.entries.indexOf(entry) != -1) {
1051 var selection = this.selection = {
1066 if (!selection.indexes.length) {
1075 for (var i = 0; i < selection.indexes.length; i++) {
1076 var entry = this.dataModel_.item(selection.indexes[i]);
1078 selection.entries.push(entry);
1079 selection.urls.push(entry.toURL());
1081 if (selection.iconType == null) {
[all …]
/external/chromium/chrome/browser/resources/gpu_internals/
Dtimeline_view.js90 var selection = timeline.selection;
92 if (!selection.length) {
98 if (selection.length == 1) {
100 var slice = selection[0].slice;
124 var tsLo = Math.min.apply(Math, selection.map(
126 var tsHi = Math.max.apply(Math, selection.map(
130 var titles = selection.map(function(i) { return i.slice.title; });
133 for (var i = 0; i < selection.length; i++) {
134 var slice = selection[i].slice;
158 rightAlign(String(selection.length), c2Width) + ' occurrences' +
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit_view_win.cc515 CHARRANGE selection; in WidthOfTextAfterCursor() local
516 GetSelection(selection); in WidthOfTextAfterCursor()
517 const int start = std::max(0, static_cast<int>(selection.cpMax - 1)); in WidthOfTextAfterCursor()
531 CHARRANGE selection; in SaveStateToTab() local
532 GetSelection(selection); in SaveStateToTab()
536 State(selection, saved_selection_for_focus_change_))); in SaveStateToTab()
573 SetSelectionRange(state->view_state.selection); in Update()
675 CHARRANGE selection; in IsSelectAll() local
676 GetSel(selection); in IsSelectAll()
677 return IsSelectAllForRange(selection); in IsSelectAll()
[all …]
/external/webkit/Source/WebKit/chromium/src/
DWebFrameImpl.cpp1113 frame()->selection()->toNormalizedRange().get(), text); in replaceSelection()
1157 Element* selectionRoot = frame()->selection()->rootEditableElement(); in firstRectForCharacterRange()
1272 return (frame()->selection()->start() != frame()->selection()->end()); in hasSelection()
1277 return frame()->selection()->toNormalizedRange(); in selectionRange()
1286 RefPtr<Range> range = frame()->selection()->toNormalizedRange(); in selectionAsText()
1304 RefPtr<Range> range = frame()->selection()->toNormalizedRange(); in selectionAsMarkup()
1313 VisibleSelection selection(pos); in selectWordAroundPosition() local
1314 selection.expandUsingGranularity(WordGranularity); in selectWordAroundPosition()
1316 if (frame->selection()->shouldChangeSelection(selection)) { in selectWordAroundPosition()
1317 TextGranularity granularity = selection.isRange() ? WordGranularity : CharacterGranularity; in selectWordAroundPosition()
[all …]
/external/chromium/chrome/browser/ui/find_bar/
Dfind_tab_helper.cc123 gfx::Rect selection = selection_rect; in OnFindReply() local
124 if (selection.IsEmpty()) in OnFindReply()
125 selection = last_search_result_.selection_rect(); in OnFindReply()
130 request_id, number_of_matches, selection, active_match_ordinal, in OnFindReply()
/external/webkit/Source/WebCore/accessibility/gtk/
DAccessibilityObjectWrapperAtk.cpp122 static AccessibilityObject* core(AtkSelection* selection) in core() argument
124 return core(ATK_OBJECT(selection)); in core()
511 static bool selectionBelongsToObject(AccessibilityObject* coreObject, VisibleSelection& selection) in selectionBelongsToObject() argument
516 if (selection.isNone()) in selectionBelongsToObject()
519 RefPtr<Range> range = selection.toNormalizedRange(); in selectionBelongsToObject()
559 VisibleSelection selection = coreObject->selection(); in isTextWithCaret() local
560 if (!selection.isCaret()) in isTextWithCaret()
563 return selectionBelongsToObject(coreObject, selection); in isTextWithCaret()
794 static AccessibilityObject* listObjectForSelection(AtkSelection* selection) in listObjectForSelection() argument
796 AccessibilityObject* coreSelection = core(selection); in listObjectForSelection()
[all …]
/external/svox/pico/src/com/svox/pico/providers/
DSettingsProvider.java61 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
81 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
90 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
/external/webkit/Source/WebKit2/WebProcess/WebPage/mac/
DWebPageMac.mm228 if (frame->selection()->isContentEditable()) {
232 … frame->selection()->setSelection(VisibleSelection(replacementRange.get(), SEL_DEFAULT_AFFINITY));
257 … frame->selection()->setSelection(VisibleSelection(replacementRange.get(), SEL_DEFAULT_AFFINITY));
299 RefPtr<Range> range = frame->selection()->toNormalizedRange();
314 …if (frame->selection()->isNone() || !frame->selection()->isContentEditable() || frame->selection()…
362 // concentrate on a given area containing the selection
365 // to use the root editable element of the selection start as the positional base.
367 Element* selectionRoot = frame->selection()->rootEditableElement();
412 static bool shouldUseSelection(const VisiblePosition& position, const VisibleSelection& selection)
414 RefPtr<Range> selectedRange = selection.toNormalizedRange();
[all …]
/external/chromium/chrome/browser/ui/gtk/
Dcollected_cookies_gtk.h45 bool SelectionContainsOriginNode(GtkTreeSelection* selection,
52 void AddExceptions(GtkTreeSelection* selection,
67 void ShowSelectionInfo(GtkTreeSelection* selection,

12345678910>>...15