/external/webkit/WebCore/editing/ |
H A D | MoveSelectionCommand.cpp | 42 VisibleSelection selection = endingSelection(); local 43 ASSERT(selection.isRange()); 49 // Update the position otherwise it may become invalid after the selection is deleted. 52 Position selectionEnd = selection.end(); 56 Position selectionStart = selection.start(); 68 // selection is empty, leading to null deref
|
H A D | InsertLineBreakCommand.cpp | 92 VisibleSelection selection = endingSelection(); local 93 if (selection.isNone()) 96 VisiblePosition caret(selection.visibleStart()); 166 // Apply the typing style to the inserted line break, so that if the selection
|
H A D | DeleteButtonController.cpp | 143 static HTMLElement* enclosingDeletableElement(const VisibleSelection& selection) argument 145 if (!selection.isContentEditable()) 148 RefPtr<Range> range = selection.toNormalizedRange(); 176 HTMLElement* newElement = enclosingDeletableElement(m_frame->selection()->selection()); 331 show(enclosingDeletableElement(m_frame->selection()->selection())); 350 // Because the deletion UI only appears when the selection is entirely 351 // within the target, we unconditionally update the selection to be 355 m_frame->selection() [all...] |
H A D | DeleteSelectionCommand.h | 39 static PassRefPtr<DeleteSelectionCommand> create(const VisibleSelection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool replace = false, bool expandForSpecialElements = false) argument 41 return adoptRef(new DeleteSelectionCommand(selection, smartDelete, mergeBlocksAfterDelete, replace, expandForSpecialElements));
|
H A D | InsertListCommand.cpp | 64 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); local 65 ASSERT(selection.isRange()); 66 VisiblePosition startOfSelection = selection.visibleStart(); 67 VisiblePosition endOfSelection = selection.visibleEnd(); 80 // Fetch the start of the selection after moving the first paragraph, 82 // We'll use the new start to restore the original selection after 87 // doApply() may operate on and remove the last paragraph of the selection from the document 91 // the new location of endOfSelection and use it as the end of the new selection. 100 // Fetch the end of the selection, for the reason mentioned above. 117 // When a selection end [all...] |
H A D | ModifySelectionListLevel.cpp | 49 static bool getStartEndListChildren(const VisibleSelection& selection, Node*& start, Node*& end) argument 51 if (selection.isNone()) 55 Node* startListChild = enclosingListChild(selection.start().node()); 60 Node* endListChild = selection.isRange() ? enclosingListChild(selection.end().node()) : startListChild; 64 // For a range selection we want the following behavior: 79 // if the selection ends on a list item with a sublist, include the entire sublist 144 static bool canIncreaseListLevel(const VisibleSelection& selection, Node*& start, Node*& end) argument 146 if (!getStartEndListChildren(selection, start, end)) 209 return canIncreaseListLevel(document->frame()->selection() 242 canDecreaseListLevel(const VisibleSelection& selection, Node*& start, Node*& end) argument [all...] |
H A D | IndentOutdentCommand.cpp | 72 // If our selection is not inside a list, bail out. 186 // Use InsertListCommand to remove the selection from the list 196 // The selection is inside a blockquote i.e. enclosingNode is a blockquote 286 // When a selection ends at the start of a paragraph, we rarely paint 287 // the selection gap before that paragraph, because there often is no gap. 288 // In a case like this, it's not obvious to the user that the selection 297 VisibleSelection selection = selectionForParagraphIteration(endingSelection()); local 298 VisiblePosition startOfSelection = selection.visibleStart(); 299 VisiblePosition endOfSelection = selection.visibleEnd();
|
H A D | SelectionController.h | 60 const VisibleSelection& selection() const { return m_selection; } function in class:WebCore::SelectionController 89 // Return the renderer that is responsible for painting the caret (in the selection start node)
|
H A D | TypingCommand.cpp | 71 if (!frame->selection()->isRange()) 129 insertText(document, text, frame->selection()->selection(), selectInsertedText, insertedTextIsComposition); 139 VisibleSelection currentSelection = frame->selection()->selection(); 156 // Set the starting and ending selection appropriately if we are using a selection 157 // that is different from the current selection. In the future, we should change EditCommand 169 frame->selection()->setSelection(currentSelection); 182 frame->selection() 433 SelectionController selection; local 527 SelectionController selection; local [all...] |
H A D | DeleteSelectionCommand.cpp | 92 DeleteSelectionCommand::DeleteSelectionCommand(const VisibleSelection& selection, bool smartDelete, bool mergeBlocksAfterDelete, bool replace, bool expandForSpecialElements) argument 93 : CompositeEditCommand(selection.start().node()->document()), 101 m_selectionToDelete(selection), 118 // but in these cases, we want to delete it, so manually expand the selection 189 // Usually the start and the end of the selection to delete are pulled together as a result of the deletion. 200 // that such a selection actually ends at the start of the next paragraph. This matches TextEdit behavior 202 // Only apply this rule if the endingSelection is a range selection. If it is a caret, then other operations have created 203 // the selection we're deleting (like the process of creating a selection to delete during a backspace), and the user isn't in the situation described above. 211 // Handle leading and trailing whitespace, as well as smart delete adjustments to the selection [all...] |
H A D | ReplaceSelectionCommand.cpp | 107 ReplacementFragment::ReplacementFragment(Document* document, DocumentFragment* fragment, bool matchStyle, const VisibleSelection& selection) argument 121 Element* editableRoot = selection.rootEditableElement(); 136 Node* styleNode = selection.base().node(); 150 m_fragment = createFragmentFromText(selection.toNormalizedRange().get(), evt->text()); 359 // And we should only merge here if the selection start was inside a mail blockquote. This prevents against removing a 692 // include the what was the start of the selection that was pasted into, so that we preserve that paragraph's 726 VisibleSelection selection = endingSelection(); local 727 ASSERT(selection.isCaretOrRange()); 728 ASSERT(selection.start().node()); 729 if (selection 735 ReplacementFragment fragment(document(), m_documentFragment.get(), m_matchStyle, selection); local [all...] |
H A D | SelectionController.cpp | 97 VisibleSelection selection = r ? VisibleSelection(r->startPosition(), r->endPosition(), affinity) : VisibleSelection(Position(), Position(), affinity); local 98 setSelection(selection, true, true, userTriggered); 130 document->frame()->selection()->setSelection(s, closeTyping, clearTypingStyle, userTriggered); 186 // There can't be a selection inside a fragment, so if a fragment's node is being removed, 187 // the selection in the document that created the fragment needs no adjustment. 200 // FIXME: When endpoints are removed, we should just alter the selection, instead of blowing it away. 206 // selection, since doing so could move the start and end into the node 215 // occupied would be invalidated, but, selection gaps that change as a result of 386 // down-arrowing from a range selection that ends at the start of a line needs 387 // to leave the selection a [all...] |
H A D | htmlediting.cpp | 1055 // If the end of the selection to modify is just after a table, and 1056 // if the start of the selection is inside that table, then the last paragraph 1063 // If the start of the selection to modify is just before a table, 1064 // and if the end of the selection is inside that table, then the first paragraph 1146 VisibleSelection avoidIntersectionWithNode(const VisibleSelection& selection, Node* node) argument 1148 if (selection.isNone()) 1149 return VisibleSelection(selection); 1151 VisibleSelection updatedSelection(selection); 1152 Node* base = selection.base().node(); 1153 Node* extent = selection [all...] |
/external/webkit/WebCore/inspector/front-end/ |
H A D | TextPrompt.js | 48 // Append a break element instead of setting textContent to make sure the selection is inside the prompt. 127 var selection = window.getSelection(); variable 128 selection.removeAllRanges(); 129 selection.addRange(finalSelectionRange); 160 var selection = window.getSelection(); variable 161 selection.removeAllRanges(); 162 selection.addRange(selectionRange); 177 var selection = window.getSelection(); variable 178 if (!selection.rangeCount) 181 var selectionRange = selection [all...] |
H A D | TextViewer.js | 275 var selection = this._getSelection(); 286 this._restoreSelection(selection); 294 var selection; variable 299 if (!selection) 300 selection = this._getSelection(); 303 this._restoreSelection(selection); 359 var selection = window.getSelection(); 360 if (selection.isCollapsed) 362 var selectionRange = selection.getRangeAt(0); 406 var selection variable [all...] |
/external/svox/pico/src/com/svox/pico/providers/ |
H A D | SettingsProvider.java | 61 public int delete(Uri uri, String selection, String[] selectionArgs) {
argument 81 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
argument 90 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
argument
|
/external/webkit/WebCore/page/ |
H A D | DOMSelection.cpp | 46 Node* node = frame->selection()->selection().base().anchorNode(); 73 return m_frame->selection()->selection(); 76 static Position anchorPosition(const VisibleSelection& selection) argument 78 Position anchor = selection.isBaseFirst() ? selection.start() : selection.end(); 82 static Position focusPosition(const VisibleSelection& selection) argument 84 Position focus = selection 88 basePosition(const VisibleSelection& selection) argument 93 extentPosition(const VisibleSelection& selection) argument 218 const VisibleSelection& selection = m_frame->selection()->selection(); local 227 const VisibleSelection& selection = m_frame->selection()->selection(); local 328 SelectionController* selection = m_frame->selection(); local 352 const VisibleSelection& selection = m_frame->selection()->selection(); local [all...] |
H A D | DragController.cpp | 132 bool DragController::dragIsMove(SelectionController* selection) argument 134 return m_documentUnderMouse == m_dragInitiator && selection->isContentEditable() && !isCopyKeyDown(); 137 // FIXME: This method is poorly named. We're just clearing the selection from the document this drag is exiting. 214 // If we were over another document clear the selection 320 operation = dragIsMove(innerFrame->selection()) ? DragOperationMove : DragOperationCopy; 345 frame->selection()->setSelection(dragCaret); 346 if (frame->selection()->isNone()) { 348 frame->selection()->setSelection(dragCaret); 351 return !frame->selection()->isNone() && frame->selection() [all...] |
H A D | Page.cpp | 455 startFrame->selection()->clear(); 462 // Search contents of startFrame, on the other side of the selection that we did earlier. 464 if (shouldWrap && !startFrame->selection()->isNone()) { 502 const VisibleSelection& Page::selection() const function in class:WebCore::Page 504 return focusController()->focusedOrMainFrame()->selection()->selection();
|
/external/webkit/WebCore/platform/ |
H A D | ContextMenu.cpp | 248 for (TextIterator it(frame->selection()->toNormalizedRange().get()); !it.atEnd(); it.advance()) { 388 SelectionController* selection = frame->selection(); local 389 bool inPasswordField = selection->isInPasswordField(); 615 shouldEnable = frame->selection()->isRange(); 639 shouldEnable = frame->selection()->isRange();
|
/external/skia/src/views/ |
H A D | SkListWidget.cpp | 84 if (index < 0) // no selection 103 if (index < 0) // no selection 172 int selection = this->logicalToVisualIndex(fCurrIndex); local 174 SkScalar height = fHeights[index == selection ? kSelected_Height : kNormal_Height]; 177 if (index > selection && selection >= 0)
|
/external/webkit/WebCore/html/ |
H A D | HTMLFormControlElement.cpp | 258 // updateFromElement() can cause the selection to change, and in turn 512 VisibleSelection HTMLTextFormControlElement::selection() const function in class:WebCore::HTMLTextFormControlElement 516 return toRenderTextControl(renderer())->selection(cachedSelectionStart(), cachedSelectionEnd());
|
/external/webkit/WebCore/rendering/ |
H A D | RenderTextControl.cpp | 216 return indexForVisiblePosition(frame->selection()->start()); 224 return indexForVisiblePosition(frame->selection()->end()); 268 frame->selection()->setSelection(newSelection); 270 // FIXME: Granularity is stored separately on the frame, but also in the selection controller. 271 // The granularity in the selection controller should be used, and then this line of code would not be needed. 276 VisibleSelection RenderTextControl::selection(int start, int end) const function in class:WebCore::RenderTextControl 503 if (frame->selection()->isRange() && userTriggered)
|
/external/webkit/WebKit/chromium/public/ |
H A D | WebFrameClient.h | 284 // to other things. The selection rect is expected to have coordinates 286 // where on the screen the selection rect is currently located. 288 int identifier, int activeMatchOrdinal, const WebRect& selection) { } 287 reportFindInPageSelection( int identifier, int activeMatchOrdinal, const WebRect& selection) argument
|
/external/webkit/WebCore/accessibility/gtk/ |
H A D | AccessibilityObjectWrapperAtk.cpp | 111 static AccessibilityObject* core(AtkSelection* selection) argument 113 return core(ATK_OBJECT(selection)); 679 static AccessibilityObject* optionFromList(AtkSelection* selection, gint i) argument 681 AccessibilityObject* coreSelection = core(selection); 685 AccessibilityRenderObject::AccessibilityChildrenVector options = core(selection)->children(); 692 static AccessibilityObject* optionFromSelection(AtkSelection* selection, gint i) argument 694 // i is the ith selection as opposed to the ith child. 696 AccessibilityObject* coreSelection = core(selection); 712 static gboolean webkit_accessible_selection_add_selection(AtkSelection* selection, gint i) argument 714 AccessibilityObject* option = optionFromList(selection, 724 webkit_accessible_selection_clear_selection(AtkSelection* selection) argument 741 webkit_accessible_selection_ref_selection(AtkSelection* selection, gint i) argument 753 webkit_accessible_selection_get_selection_count(AtkSelection* selection) argument 765 webkit_accessible_selection_is_child_selected(AtkSelection* selection, gint i) argument 774 webkit_accessible_selection_remove_selection(AtkSelection* selection, gint i) argument 787 webkit_accessible_selection_select_all_selection(AtkSelection* selection) argument 1064 selectionBelongsToObject(AccessibilityObject* coreObject, VisibleSelection& selection) argument 1076 VisibleSelection selection = coreObject->selection(); local 1090 VisibleSelection selection = coreObject->selection(); local [all...] |