Searched refs:affinity (Results 1 - 25 of 52) sorted by relevance

123

/external/webkit/Source/WebCore/editing/
H A DTextAffinity.h45 inline NSSelectionAffinity kit(WebCore::EAffinity affinity) argument
47 return static_cast<NSSelectionAffinity>(affinity);
50 inline WebCore::EAffinity core(NSSelectionAffinity affinity) argument
52 return static_cast<WebCore::EAffinity>(affinity);
H A DVisibleSelection.h57 void setAffinity(EAffinity affinity) { m_affinity = affinity; } argument
58 EAffinity affinity() const { return m_affinity; } function in class:WebCore::VisibleSelection
70 VisiblePosition visibleStart() const { return VisiblePosition(m_start, isRange() ? DOWNSTREAM : affinity()); }
71 VisiblePosition visibleEnd() const { return VisiblePosition(m_end, isRange() ? UPSTREAM : affinity()); }
128 EAffinity m_affinity; // the upstream/downstream affinity of the caret
137 return a.start() == b.start() && a.end() == b.end() && a.affinity() == b.affinity() && a.isBaseFirst() == b.isBaseFirst();
H A DVisiblePosition.h36 // VisiblePosition default affinity is downstream because
53 // NOTE: UPSTREAM affinity will be used only if pos is at end of a wrapped line,
65 EAffinity affinity() const { ASSERT(m_affinity == UPSTREAM || m_affinity == DOWNSTREAM); return m_affinity; } function in class:WebCore::VisiblePosition
66 void setAffinity(EAffinity affinity) { m_affinity = affinity; } argument
119 // FIXME: This shouldn't ignore affinity.
H A DSelectionController.cpp97 setSelection(VisibleSelection(pos.deepEquivalent(), pos.deepEquivalent(), pos.affinity()), options, align);
105 setSelection(VisibleSelection(base.deepEquivalent(), extent.deepEquivalent(), base.affinity()), options);
108 void SelectionController::moveTo(const Position &pos, EAffinity affinity, bool userTriggered) argument
113 setSelection(VisibleSelection(pos, affinity), options);
116 void SelectionController::moveTo(const Range *r, EAffinity affinity, bool userTriggered) argument
121 VisibleSelection selection = r ? VisibleSelection(r->startPosition(), r->endPosition(), affinity) : VisibleSelection(Position(), Position(), affinity);
125 void SelectionController::moveTo(const Position &base, const Position &extent, EAffinity affinity, bool userTriggered) argument
130 setSelection(VisibleSelection(base, extent, affinity), options);
419 VisiblePosition pos(m_selection.extent(), m_selection.affinity());
1016 setBase(const Position &pos, EAffinity affinity, bool userTriggered) argument
1024 setExtent(const Position &pos, EAffinity affinity, bool userTriggered) argument
1424 setSelectedRange(Range* range, EAffinity affinity, bool closeTyping) argument
[all...]
H A DMoveSelectionCommand.cpp68 setEndingSelection(VisibleSelection(pos, endingSelection().affinity()));
H A DInsertParagraphSeparatorCommand.cpp154 EAffinity affinity = endingSelection().affinity(); local
161 affinity = endingSelection().affinity();
187 VisiblePosition visiblePos(insertionPosition, affinity);
308 // FIXME: We need the affinity for pos, but pos.downstream() does not give it
H A DVisiblePosition.cpp47 VisiblePosition::VisiblePosition(const Position &pos, EAffinity affinity) argument
49 init(pos, affinity);
52 void VisiblePosition::init(const Position& position, EAffinity affinity) argument
54 m_affinity = affinity;
58 // When not at a line wrap, make sure to end up with DOWNSTREAM affinity.
90 // we should always be able to make the affinity DOWNSTREAM, because going previous from an
482 // unless the affinity is upstream.
638 VisiblePosition startVisiblePosition(const Range *r, EAffinity affinity) argument
641 return VisiblePosition(Position(r->startContainer(exception), r->startOffset(exception), Position::PositionIsOffsetInAnchor), affinity);
644 VisiblePosition endVisiblePosition(const Range *r, EAffinity affinity) argument
[all...]
H A DVisibleSelection.cpp50 VisibleSelection::VisibleSelection(const Position& pos, EAffinity affinity) argument
53 , m_affinity(affinity)
58 VisibleSelection::VisibleSelection(const Position& base, const Position& extent, EAffinity affinity) argument
61 , m_affinity(affinity)
69 , m_affinity(pos.affinity())
77 , m_affinity(base.affinity())
82 VisibleSelection::VisibleSelection(const Range* range, EAffinity affinity) argument
85 , m_affinity(affinity)
H A DDeleteSelectionCommand.cpp222 m_leadingWhitespace = m_upstreamStart.leadingWhitespacePosition(m_selectionToDelete.affinity());
228 Position pos = VisiblePosition(m_upstreamStart, m_selectionToDelete.affinity()).deepEquivalent();
234 bool hasLeadingWhitespaceBeforeAdjustment = m_upstreamStart.leadingWhitespacePosition(m_selectionToDelete.affinity(), true).isNotNull();
242 m_leadingWhitespace = m_upstreamStart.leadingWhitespacePosition(visiblePos.affinity());
768 EAffinity affinity = m_selectionToDelete.affinity(); local
796 setEndingSelection(VisibleSelection(m_endingPosition, affinity));
819 setEndingSelection(VisibleSelection(m_endingPosition, affinity));
H A DSelectionController.h92 EAffinity affinity() const { return m_selection.affinity(); } function in class:WebCore::SelectionController
/external/kernel-headers/original/asm-mips/
H A Dirq.h52 extern void plat_set_irq_affinity(unsigned int irq, cpumask_t affinity);
56 * IRQ affinity hook invoked at the beginning of interrupt dispatch
60 * inefficient on MIPS. Initial prototypes of SMTC IRQ affinity
61 * used a "fast path" per-IRQ-descriptor cache of affinity information
68 if (!cpu_isset(smp_processor_id(), irq_desc[irq].affinity)) { \
75 #else /* Not doing SMTC affinity */
133 * IRQ affinity, we have this variant that skips the affinity check.
/external/webkit/Tools/DumpRenderTree/gtk/
H A DEditingCallbacks.cpp88 static const char* selectionAffinityString(WebKitSelectionAffinity affinity) argument
90 switch (affinity) {
145 gboolean shouldChangeSelectedRange(WebKitWebView* webView, WebKitDOMRange* fromRange, WebKitDOMRange* toRange, WebKitSelectionAffinity affinity, gboolean stillSelecting) argument
148 printf("EDITING DELEGATE: shouldChangeSelectedDOMRange:%s toDOMRange:%s affinity:%s stillSelecting:%s\n",
149 dumpRange(fromRange).data(), dumpRange(toRange).data(), selectionAffinityString(affinity),
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/API/c/
H A DWKBundleAPICast.h90 inline WKAffinityType toAPI(WebCore::EAffinity affinity) argument
92 switch (affinity) {
/external/clang/test/CodeGen/
H A Ddecl.c71 unsigned char affinity; member in struct:SelectDest
/external/webkit/Source/WebKit/mac/WebView/
H A DWebEditingDelegate.h47 - (BOOL)webView:(WebView *)webView shouldChangeSelectedDOMRange:(DOMRange *)currentRange toDOMRange:(DOMRange *)proposedRange affinity:(NSSelectionAffinity)selectionAffinity stillSelecting:(BOOL)flag;
H A DWebFrameInternal.h137 - (NSRect)_caretRectAtPosition:(const WebCore::Position&)pos affinity:(NSSelectionAffinity)affinity;
/external/webkit/Source/WebKit2/WebProcess/InjectedBundle/
H A DInjectedBundlePageEditorClient.h53 bool shouldChangeSelectedRange(WebPage*, WebCore::Range* fromRange, WebCore::Range* toRange, WebCore::EAffinity affinity, bool stillSelecting);
H A DInjectedBundlePageEditorClient.cpp85 bool InjectedBundlePageEditorClient::shouldChangeSelectedRange(WebPage* page, Range* fromRange, Range* toRange, EAffinity affinity, bool stillSelecting) argument
90 return m_client.shouldChangeSelectedRange(toAPI(page), toAPI(fromRangeHandle.get()), toAPI(toRangeHandle.get()), toAPI(affinity), stillSelecting, m_client.clientInfo);
/external/webkit/Source/WebCore/dom/
H A DPosition.cpp415 Position Position::previousCharacterPosition(EAffinity affinity) const
422 bool atStartOfLine = isStartOfLine(VisiblePosition(*this, affinity));
443 Position Position::nextCharacterPosition(EAffinity affinity) const
450 bool atEndOfLine = isEndOfLine(VisiblePosition(*this, affinity));
957 Position Position::leadingWhitespacePosition(EAffinity affinity, bool considerNonCollapsibleWhitespace) const argument
966 Position prev = previousCharacterPosition(affinity);
995 void Position::getInlineBoxAndOffset(EAffinity affinity, InlineBox*& inlineBox, int& caretOffset) const argument
997 getInlineBoxAndOffset(affinity, primaryDirection(), inlineBox, caretOffset);
1057 void Position::getInlineBoxAndOffset(EAffinity affinity, TextDirection primaryDirection, InlineBox*& inlineBox, int& caretOffset) const argument
1101 if (((caretOffset == caretMaxOffset) ^ (affinity
[all...]
/external/kernel-headers/original/linux/
H A Dirq.h79 * @set_affinity: set the CPU affinity on SMP machines
132 * @affinity: IRQ affinity on SMP
157 cpumask_t affinity; member in struct:irq_desc
195 irq_desc[irq].affinity = mask;
/external/webkit/Source/WebKit/mac/DefaultDelegates/
H A DWebDefaultEditingDelegate.m80 - (BOOL)webView:(WebView *)webView shouldChangeSelectedDOMRange:(DOMRange *)currentRange toDOMRange:(DOMRange *)proposedRange affinity:(NSSelectionAffinity)selectionAffinity stillSelecting:(BOOL)flag
/external/webkit/Source/WebKit/gtk/WebCoreSupport/
H A DEditorClientGtk.cpp350 static WebKitSelectionAffinity kit(EAffinity affinity) argument
352 switch (affinity) {
362 bool EditorClient::shouldChangeSelectedRange(Range* fromRange, Range* toRange, EAffinity affinity, bool stillSelecting) argument
368 kit(affinity), stillSelecting, &accept);
411 frame->selection()->setBase(frame->selection()->extent(), frame->selection()->affinity());
/external/webkit/Source/WebCore/accessibility/
H A DAXObjectCache.h52 EAffinity affinity; member in struct:WebCore::TextMarkerData
H A DAXObjectCache.cpp584 VisiblePosition visiblePos = VisiblePosition(Position(textMarkerData.node, textMarkerData.offset), textMarkerData.affinity);
635 textMarkerData.affinity = visiblePos.affinity();
/external/webkit/Tools/DumpRenderTree/mac/
H A DEditingDelegate.mm127 - (BOOL)webView:(WebView *)webView shouldChangeSelectedDOMRange:(DOMRange *)currentRange toDOMRange:(DOMRange *)proposedRange affinity:(NSSelectionAffinity)selectionAffinity stillSelecting:(BOOL)flag
139 printf("EDITING DELEGATE: shouldChangeSelectedDOMRange:%s toDOMRange:%s affinity:%s stillSelecting:%s\n", [[currentRange dump] UTF8String], [[proposedRange dump] UTF8String], affinitystring[selectionAffinity], boolstring[flag]);

Completed in 825 milliseconds

123