/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
PositionProvider.java | 19 import com.android.gallery3d.ui.PositionRepository.Position; 22 public Position getPosition(long identity, Position target);
|
PositionRepository.java | 29 public static class Position implements Cloneable { 36 public Position() { 39 public Position(float x, float y, float z) { 43 public Position(float x, float y, float z, float ftheta, float alpha) { 52 public Position clone() { 54 return (Position) super.clone(); 60 public void set(Position another) { 78 if (!(object instanceof Position)) return false; 79 Position position = (Position) object 115 Position position = mData.get(identity); local [all...] |
/external/webkit/Source/WebCore/editing/ |
ApplyBlockElementCommand.h | 49 virtual void formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtr<Element>&) = 0; 50 void rangeForParagraphSplittingTextNodesIfNeeded(const VisiblePosition&, Position&, Position&); 51 VisiblePosition endOfNextParagrahSplittingTextNodesIfNeeded(VisiblePosition&, Position&, Position&); 56 Position m_endOfLastParagraph;
|
InsertTextCommand.h | 56 Position positionInsideTextNode(const Position&); 57 Position insertTab(const Position&);
|
InsertLineBreakCommand.h | 47 void insertNodeAfterPosition(Node*, const Position&); 48 void insertNodeBeforePosition(Node*, const Position&); 49 bool shouldUseBreakElement(const Position&);
|
DeleteSelectionCommand.h | 55 void initializeStartEnd(Position&, Position&); 56 void setStartingSelectionOnSmartDelete(const Position&, const Position&); 82 Position m_upstreamStart; 83 Position m_downstreamStart; 84 Position m_upstreamEnd; 85 Position m_downstreamEnd; 86 Position m_endingPosition; 87 Position m_leadingWhitespace [all...] |
IndentOutdentCommand.h | 52 bool tryIndentingAsListItem(const Position&, const Position&); 53 void indentIntoBlockquote(const Position&, const Position&, RefPtr<Element>&); 56 void formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtr<Element>& blockquoteForNextIndent);
|
htmlediting.h | 32 #include "Position.h" 43 class Position; 58 Node* highestEditableRoot(const Position&); 59 Node* highestEnclosingNodeOfType(const Position&, bool (*nodeIsOfType)(const Node*), EditingBoundaryCrossingRule = CannotCrossEditingBoundary); 63 Node* enclosingTableCell(const Position&); 65 Node* enclosingAnchorElement(const Position&); 66 Node* enclosingNodeWithTag(const Position&, const QualifiedName&); 67 Node* enclosingNodeOfType(const Position&, bool (*nodeIsOfType)(const Node*), EditingBoundaryCrossingRule = CannotCrossEditingBoundary); 100 TextDirection directionOfEnclosingBlock(const Position&); 103 // Position [all...] |
MoveSelectionCommand.h | 37 static PassRefPtr<MoveSelectionCommand> create(PassRefPtr<DocumentFragment> fragment, const Position& position, bool smartInsert = false, bool smartDelete = false) 39 return adoptRef(new MoveSelectionCommand(fragment, position, smartInsert, smartDelete)); 43 MoveSelectionCommand(PassRefPtr<DocumentFragment>, const Position&, bool smartInsert, bool smartDelete); 49 Position m_position;
|
VisibleSelection.h | 34 class Position; 45 VisibleSelection(const Position&, EAffinity); 46 VisibleSelection(const Position&, const Position&, EAffinity = SEL_DEFAULT_AFFINITY); 60 void setBase(const Position&); 62 void setExtent(const Position&); 65 Position base() const { return m_base; } 66 Position extent() const { return m_extent; } 67 Position start() const { return m_start; } 68 Position end() const { return m_end; [all...] |
ApplyStyleCommand.h | 55 static PassRefPtr<ApplyStyleCommand> create(Document* document, const EditingStyle* style, const Position& start, const Position& end, EditAction action = EditActionChangeAttributes, EPropertyLevel level = PropertyDefault) 70 ApplyStyleCommand(Document*, const EditingStyle*, const Position& start, const Position& end, EditAction, EPropertyLevel); 88 void removeInlineStyle(EditingStyle* , const Position& start, const Position& end); 89 bool nodeFullySelected(Node*, const Position& start, const Position& end) const; 90 bool nodeFullyUnselected(Node*, const Position& start, const Position& end) const [all...] |
CompositeEditCommand.h | 55 void applyStyle(const EditingStyle*, const Position& start, const Position& end, EditAction = EditActionChangeAttributes); 63 void insertNodeAt(PassRefPtr<Node>, const Position&); 64 void insertNodeAtTabSpanPosition(PassRefPtr<Node>, const Position&); 72 void rebalanceWhitespaceAt(const Position&); 74 void prepareWhitespaceAtPositionForSplit(Position&); 75 bool canRebalance(const Position&) const; 86 Position positionOutsideTabSpan(const Position&); 94 void deleteInsignificantText(const Position& start, const Position& end) [all...] |
MoveSelectionCommand.cpp | 34 MoveSelectionCommand::MoveSelectionCommand(PassRefPtr<DocumentFragment> fragment, const Position& position, bool smartInsert, bool smartDelete) 35 : CompositeEditCommand(position.anchorNode()->document()), m_fragment(fragment), m_position(position), m_smartInsert(smartInsert), m_smartDelete(smartDelete) 44 Position pos = m_position; 48 // Update the position otherwise it may become invalid after the selection is deleted. 49 Position selectionEnd = endingSelection().end(); 50 if (pos.anchorType() == Position::PositionIsOffsetInAnchor && selectionEnd.anchorType() == Position::PositionIsOffsetInAnchor 54 Position selectionStart = endingSelection().start() [all...] |
FormatBlockCommand.h | 50 void formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtr<Element>&);
|
ApplyBlockElementCommand.cpp | 99 Position start = startOfSelection.deepEquivalent().downstream(); 115 Position end; 123 Position afterEnd = end.next(); 135 // is in a list item or a table. As a result, endAfterSelection could refer to a position 149 static bool isNewLineAtPosition(const Position& position) 151 if (position.anchorType() != Position::PositionIsOffsetInAnchor) 154 Node* textNode = position.containerNode(); 155 int offset = position.offsetInContainerNode() 243 Position position = endOfNextParagraph.deepEquivalent(); local [all...] |
InsertTextCommand.cpp | 50 Position InsertTextCommand::positionInsideTextNode(const Position& p) 52 Position pos = p; 59 // Prepare for text input by looking at the specified position. 80 Position start = endingSelection().start().parentAnchoredEquivalent(); 81 Position end = endingSelection().end().parentAnchoredEquivalent(); 82 ASSERT(start.anchorType() == Position::PositionIsOffsetInAnchor); 83 ASSERT(end.anchorType() == Position::PositionIsOffsetInAnchor); 90 Position endPosition(start.containerNode(), start.offsetInContainerNode() + text.length()); 121 Position startPosition(endingSelection().start()) [all...] |
/external/webkit/Source/WebCore/dom/ |
Position.h | 52 class Position { 60 Position() 68 Position(PassRefPtr<Node> anchorNode, int offset); 71 Position(PassRefPtr<Node> anchorNode, AnchorType); 73 Position(PassRefPtr<Node> anchorNode, int offset, AnchorType); 81 Node* containerNode() const; // NULL for a before/after position anchored to a node with no parent 83 Position parentAnchoredEquivalent() const; // Convenience method for DOM positions that also fixes up some positions for editing 100 // These are convenience methods which are smart about whether the position is neighbor anchored or parent anchored 106 // FIXME: Callers should be moved off of node(), node() is not always the container for this position. 108 // will be treated as before ignoredNode (thus node() is really after the position, not containing it) [all...] |
PositionIterator.cpp | 37 PositionIterator::operator Position() const 48 return Position(m_anchorNode, m_offsetInAnchor); 64 m_offsetInAnchor = Position::uncheckedNextOffset(m_anchorNode, m_offsetInAnchor); 96 m_offsetInAnchor = Position::uncheckedPreviousOffset(m_anchorNode, m_offsetInAnchor); 160 return !m_offsetInAnchor && !Position::nodeIsUserSelectNone(m_anchorNode->parentNode()); 163 return !Position::nodeIsUserSelectNone(m_anchorNode) && Position(*this).inRenderedText(); 166 return (atStartOfNode() || atEndOfNode()) && !Position::nodeIsUserSelectNone(m_anchorNode->parentNode()); 170 if (!Position::hasRenderedNonAnonymousDescendantsWithHeight(renderer)) 171 return atStartOfNode() && !Position::nodeIsUserSelectNone(m_anchorNode) [all...] |
Position.cpp | 27 #include "Position.h" 74 Position::Position(PassRefPtr<Node> anchorNode, int offset) 82 Position::Position(PassRefPtr<Node> anchorNode, AnchorType anchorType) 91 Position::Position(PassRefPtr<Node> anchorNode, int offset, AnchorType anchorType) 101 void Position::moveToPosition(PassRefPtr<Node> node, int offset) 110 void Position::moveToOffset(int offset) 118 Node* Position::containerNode() cons [all...] |
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/ |
Location.java | 29 private final Position mStart; 30 private final Position mEnd; 40 * @param start the starting position, never null 41 * @param end the ending position, or null 43 public Location(File file, Position start, Position end) { 65 * The start position of the range 67 * @return the start position of the range, never null 69 public Position getStart() { 74 * The end position of the rang [all...] |
Position.java | 20 * Information about a position in a file/document. 25 public abstract class Position {
|
/external/clang/include/clang/AST/ |
ExternalASTSource.h | 307 /// \brief Position within the vector.. 309 /// In a complete iteration, the Position field walks the range [-M, N), 315 /// values (corresponding to loaded entities), so that position -M 316 /// corresponds to element 0 in the loaded entities vector, position -M+1 319 int Position; 330 iterator() : Self(0), Position(0) { } 332 iterator(LazyVector *Self, int Position) 333 : Self(Self), Position(Position) { } 336 if (Position < 0 [all...] |
/sdk/lint/libs/lint_api/src/com/android/tools/lint/api/ |
IDomParser.java | 20 import com.android.tools.lint.detector.api.Position; 46 * Returns the starting position of the given DOM node (which may not be 52 * @param node the node to look up a starting position for 53 * @return the position of the beginning of the node 55 public Position getStartPosition(Context context, Node node); 58 * Returns the ending position of the given DOM node. 61 * @param node the node to look up a ending position for 62 * @return the position of the end of the node 64 public Position getEndPosition(Context context, Node node);
|
/external/clang/include/clang/Lex/ |
PreprocessingRecord.h | 303 /// corresponds to element 0 in the loaded entities vector, position -M+1 366 /// \brief Position within the preprocessed entity sequence. 368 /// In a complete iteration, the Position field walks the range [-M, N), 374 /// values (corresponding to loaded entities), so that position -M 375 /// corresponds to element 0 in the loaded entities vector, position -M+1 378 PPEntityID Position; 387 iterator() : Self(0), Position(0) { } 389 iterator(PreprocessingRecord *Self, int Position) 390 : Self(Self), Position(Position) { } [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SelectionHandle.java | 42 /** The position of the handle in the selection rectangle */ 43 enum Position { 56 private Position(int swtCursor) { 89 /** The position of the handle in the selection rectangle */ 90 private final Position mPosition; 94 * corresponding to a handle at the given {@link Position}. 98 * @param position the position of the handle in the selection rectangle 100 public SelectionHandle(int centerX, int centerY, Position position) { [all...] |