/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
D | IntPoint.h | 44 class PLATFORM_EXPORT IntPoint { 46 IntPoint() : m_x(0), m_y(0) { } in IntPoint() function 47 IntPoint(int x, int y) : m_x(x), m_y(y) { } in IntPoint() function 48 explicit IntPoint(const IntSize& size) : m_x(size.width()), m_y(size.height()) { } in IntPoint() function 50 static IntPoint zero() { return IntPoint(); } in zero() 59 void moveBy(const IntPoint& offset) { move(offset.x(), offset.y()); } in moveBy() 67 IntPoint expandedTo(const IntPoint& other) const in expandedTo() 69 return IntPoint(m_x > other.m_x ? m_x : other.m_x, in expandedTo() 73 IntPoint shrunkTo(const IntPoint& other) const in shrunkTo() 75 return IntPoint(m_x < other.m_x ? m_x : other.m_x, in shrunkTo() [all …]
|
D | IntRect.h | 55 IntRect(const IntPoint& location, const IntSize& size) in IntRect() 58 : m_location(IntPoint(x, y)), m_size(IntSize(width, height)) { } in IntRect() 63 IntPoint location() const { return m_location; } in location() 66 void setLocation(const IntPoint& location) { m_location = location; } in setLocation() 85 IntPoint center() const { return IntPoint(x() + width() / 2, y() + height() / 2); } in center() 88 void moveBy(const IntPoint& offset) { m_location.move(offset.x(), offset.y()); } in moveBy() 119 IntPoint minXMinYCorner() const { return m_location; } // typically topLeft in minXMinYCorner() 120 …IntPoint maxXMinYCorner() const { return IntPoint(m_location.x() + m_size.width(), m_location.y())… in maxXMinYCorner() 121 …IntPoint minXMaxYCorner() const { return IntPoint(m_location.x(), m_location.y() + m_size.height()… in minXMaxYCorner() 122 …IntPoint maxXMaxYCorner() const { return IntPoint(m_location.x() + m_size.width(), m_location.y() … in maxXMaxYCorner() [all …]
|
D | RegionTest.cpp | 36 EXPECT_TRUE(r.contains(IntPoint(x, y))); \ 37 EXPECT_TRUE(r.contains(IntPoint(x + w - 1, y))); \ 38 EXPECT_TRUE(r.contains(IntPoint(x, y + h - 1))); \ 39 EXPECT_TRUE(r.contains(IntPoint(x + w - 1, y + h - 1))); \ 40 EXPECT_TRUE(r.contains(IntPoint(x, y + h / 2))); \ 41 EXPECT_TRUE(r.contains(IntPoint(x + w - 1, y + h / 2))); \ 42 EXPECT_TRUE(r.contains(IntPoint(x + w / 2, y))); \ 43 EXPECT_TRUE(r.contains(IntPoint(x + w / 2, y + h - 1))); \ 44 EXPECT_TRUE(r.contains(IntPoint(x + w / 2, y + h / 2))); \ 47 EXPECT_FALSE(r.contains(IntPoint(x - 1, y))); \ [all …]
|
D | LayoutPoint.h | 44 LayoutPoint(const IntPoint& point) : m_x(point.x()), m_y(point.y()) { } in LayoutPoint() 151 inline IntPoint flooredIntPoint(const LayoutPoint& point) in flooredIntPoint() 153 return IntPoint(point.x().floor(), point.y().floor()); in flooredIntPoint() 156 inline IntPoint roundedIntPoint(const LayoutPoint& point) in roundedIntPoint() 158 return IntPoint(point.x().round(), point.y().round()); in roundedIntPoint() 161 inline IntPoint roundedIntPoint(const LayoutSize& size) in roundedIntPoint() 163 return IntPoint(size.width().round(), size.height().round()); in roundedIntPoint() 166 inline IntPoint ceiledIntPoint(const LayoutPoint& point) in ceiledIntPoint() 168 return IntPoint(point.x().ceil(), point.y().ceil()); in ceiledIntPoint()
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
D | Widget.cpp | 85 IntPoint Widget::convertFromRootView(const IntPoint& rootPoint) const in convertFromRootView() 88 IntPoint parentPoint = parentWidget->convertFromRootView(rootPoint); in convertFromRootView() 94 IntPoint Widget::convertToRootView(const IntPoint& localPoint) const in convertToRootView() 97 IntPoint parentPoint = convertToContainingView(localPoint); in convertToRootView() 121 IntPoint Widget::convertFromContainingWindow(const IntPoint& windowPoint) const in convertFromContainingWindow() 124 IntPoint parentPoint = parentWidget->convertFromContainingWindow(windowPoint); in convertFromContainingWindow() 130 IntPoint Widget::convertToContainingWindow(const IntPoint& localPoint) const in convertToContainingWindow() 133 IntPoint parentPoint = convertToContainingView(localPoint); in convertToContainingWindow() 160 IntPoint Widget::convertToContainingView(const IntPoint& localPoint) const in convertToContainingView() 168 IntPoint Widget::convertFromContainingView(const IntPoint& parentPoint) const in convertFromContainingView() [all …]
|
D | Widget.h | 60 IntPoint location() const { return frameRect().location(); } in location() 69 void move(const IntPoint& p) { setFrameRect(IntRect(p, size())); } in move() 101 IntPoint convertToRootView(const IntPoint&) const; 102 IntPoint convertFromRootView(const IntPoint&) const; 111 IntPoint convertToContainingWindow(const IntPoint&) const; 112 IntPoint convertFromContainingWindow(const IntPoint&) const; 125 virtual IntPoint convertToContainingView(const IntPoint&) const; 126 virtual IntPoint convertFromContainingView(const IntPoint&) const; 129 virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const; 130 virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const;
|
D | PlatformMouseEvent.h | 53 …PlatformMouseEvent(const IntPoint& position, const IntPoint& globalPosition, MouseButton button, P… in PlatformMouseEvent() 64 …PlatformMouseEvent(const IntPoint& position, const IntPoint& globalPosition, MouseButton button, P… in PlatformMouseEvent() 75 …PlatformMouseEvent(const IntPoint& position, const IntPoint& globalPosition, MouseButton button, P… in PlatformMouseEvent() 86 const IntPoint& position() const { return m_position; } in position() 87 const IntPoint& globalPosition() const { return m_globalPosition; } in globalPosition() 88 const IntPoint& movementDelta() const { return m_movementDelta; } in movementDelta() 96 IntPoint m_position; 97 IntPoint m_globalPosition; 98 IntPoint m_movementDelta;
|
D | PlatformGestureEvent.h | 46 …PlatformGestureEvent(Type type, const IntPoint& position, const IntPoint& globalPosition, const In… in PlatformGestureEvent() 63 const IntPoint& position() const { return m_position; } // PlatformWindow coordinates. in position() 64 const IntPoint& globalPosition() const { return m_globalPosition; } // Screen coordinates. in globalPosition() 109 IntPoint m_position; 110 IntPoint m_globalPosition;
|
D | PlatformWheelEvent.h | 80 …PlatformWheelEvent(IntPoint position, IntPoint globalPosition, float deltaX, float deltaY, float w… in PlatformWheelEvent() 113 const IntPoint& position() const { return m_position; } // PlatformWindow coordinates. in position() 114 const IntPoint& globalPosition() const { return m_globalPosition; } // Screen coordinates. in globalPosition() 140 IntPoint m_position; 141 IntPoint m_globalPosition;
|
D | PlatformTouchPoint.h | 53 IntPoint screenPos() const { return m_screenPos; } in screenPos() 54 IntPoint pos() const { return m_pos; } in pos() 63 IntPoint m_screenPos; 64 IntPoint m_pos;
|
/external/chromium_org/third_party/WebKit/Source/platform/scroll/ |
D | ScrollView.h | 50 virtual void setScrollOffset(const IntPoint&) OVERRIDE; 148 virtual IntPoint scrollPosition() const OVERRIDE { return visibleContentRect().location(); } in scrollPosition() 150 …virtual IntPoint maximumScrollPosition() const OVERRIDE; // The maximum position we can be scrolle… 151 …virtual IntPoint minimumScrollPosition() const OVERRIDE; // The minimum position we can be scrolle… 153 IntPoint adjustScrollPositionWithinRange(const IntPoint&) const; 160 IntPoint cachedScrollPosition() const { return m_cachedScrollPosition; } in cachedScrollPosition() 163 virtual void setScrollPosition(const IntPoint&); 175 IntPoint rootViewToContents(const IntPoint&) const; 176 IntPoint contentsToRootView(const IntPoint&) const; 183 IntPoint windowToContents(const IntPoint&) const; [all …]
|
D | ScrollableArea.h | 57 void notifyScrollPositionChanged(const IntPoint&); 101 const IntPoint& scrollOrigin() const { return m_scrollOrigin; } in scrollOrigin() 123 …virtual IntPoint convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntPoint& … in convertFromScrollbarToContainingView() 127 …virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& … in convertFromContainingViewToScrollbar() 137 virtual IntPoint scrollPosition() const = 0; 138 virtual IntPoint minimumScrollPosition() const = 0; 139 virtual IntPoint maximumScrollPosition() const = 0; 147 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } in lastKnownMousePosition() 166 void setScrollOffsetFromInternals(const IntPoint&); 168 IntPoint clampScrollPosition(const IntPoint&) const; [all …]
|
D | ScrollView.cpp | 211 return IntRect(IntPoint(m_scrollOffset), expandedIntSize(visibleContentSize)); in visibleContentRect() 228 IntPoint ScrollView::maximumScrollPosition() const in maximumScrollPosition() 230 …IntPoint maximumOffset(contentsWidth() - visibleWidth() - scrollOrigin().x(), contentsHeight() - v… in maximumScrollPosition() 235 IntPoint ScrollView::minimumScrollPosition() const in minimumScrollPosition() 237 return IntPoint(-scrollOrigin().x(), -scrollOrigin().y()); in minimumScrollPosition() 240 IntPoint ScrollView::adjustScrollPositionWithinRange(const IntPoint& scrollPoint) const in adjustScrollPositionWithinRange() 245 IntPoint newScrollPosition = scrollPoint.shrunkTo(maximumScrollPosition()); in adjustScrollPositionWithinRange() 268 void ScrollView::setScrollOffset(const IntPoint& offset) in setScrollOffset() 288 void ScrollView::setScrollPosition(const IntPoint& scrollPoint) in setScrollPosition() 290 IntPoint newScrollPosition = adjustScrollPositionWithinRange(scrollPoint); in setScrollPosition() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
D | FELighting.h | 67 inline void topLeft(int offset, IntPoint& normalVector); 68 inline void topRow(int offset, IntPoint& normalVector); 69 inline void topRight(int offset, IntPoint& normalVector); 70 inline void leftColumn(int offset, IntPoint& normalVector); 71 inline void interior(int offset, IntPoint& normalVector); 72 inline void rightColumn(int offset, IntPoint& normalVector); 73 inline void bottomLeft(int offset, IntPoint& normalVector); 74 inline void bottomRow(int offset, IntPoint& normalVector); 75 inline void bottomRight(int offset, IntPoint& normalVector); 96 … int lightX, int lightY, float factorX, float factorY, IntPoint& normalVector); [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | RenderLayerScrollableArea.h | 93 …virtual IntPoint convertFromScrollbarToContainingView(const Scrollbar*, const IntPoint&) const OVE… 94 …virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, const IntPoint&) const OVE… 96 virtual void setScrollOffset(const IntPoint&) OVERRIDE; 97 virtual IntPoint scrollPosition() const OVERRIDE; 98 virtual IntPoint minimumScrollPosition() const OVERRIDE; 99 virtual IntPoint maximumScrollPosition() const OVERRIDE; 105 virtual IntPoint lastKnownMousePosition() const OVERRIDE; 134 IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const; 152 void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRect& damageRect); 153 …void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, const IntRect& damageRec… [all …]
|
D | RenderListBox.h | 56 int scrollToward(const IntPoint&); // Returns the new index or -1 if no scroll occurred 88 virtual void autoscroll(const IntPoint&); 92 virtual void panScroll(const IntPoint&); 106 virtual IntPoint scrollPosition() const OVERRIDE; 107 virtual void setScrollOffset(const IntPoint&) OVERRIDE; 115 …virtual IntPoint convertFromScrollbarToContainingView(const Scrollbar*, const IntPoint&) const OVE… 116 …virtual IntPoint convertFromContainingViewToScrollbar(const Scrollbar*, const IntPoint&) const OVE… 121 virtual IntPoint lastKnownMousePosition() const OVERRIDE; 124 virtual IntPoint minimumScrollPosition() const OVERRIDE; 125 virtual IntPoint maximumScrollPosition() const OVERRIDE;
|
/external/chromium_org/third_party/WebKit/Source/core/frame/ |
D | ImageBitmap.cpp | 31 IntRect intersectRect = intersection(IntRect(IntPoint(), image->size()), cropRect); in cropImage() 46 m_bitmapRect = IntRect(IntPoint(max(0, -cropRect.x()), max(0, -cropRect.y())), srcRect.size()); in ImageBitmap() 60 , m_bitmapOffset(IntPoint()) in ImageBitmap() 62 IntRect videoRect = IntRect(IntPoint(), video->player()->naturalSize()); in ImageBitmap() 64 IntRect dstRect(IntPoint(), srcRect.size()); in ImageBitmap() 74 m_bitmapRect = IntRect(IntPoint(max(0, -cropRect.x()), max(0, -cropRect.y())), srcRect.size()); in ImageBitmap() 82 , m_bitmapOffset(IntPoint()) in ImageBitmap() 88 IntRect srcRect = intersection(cropRect, IntRect(IntPoint(), canvas->size())); in ImageBitmap() 89 m_bitmapRect = IntRect(IntPoint(max(0, -cropRect.x()), max(0, -cropRect.y())), srcRect.size()); in ImageBitmap() 98 , m_bitmapOffset(IntPoint()) in ImageBitmap() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
D | DragData.h | 57 …DragData(ChromiumDataObject*, const IntPoint& clientPosition, const IntPoint& globalPosition, Drag… 58 …DragData(const String& dragStorageName, const IntPoint& clientPosition, const IntPoint& globalPosi… 59 const IntPoint& clientPosition() const { return m_clientPosition; } in clientPosition() 60 const IntPoint& globalPosition() const { return m_globalPosition; } in globalPosition() 79 IntPoint m_clientPosition; 80 IntPoint m_globalPosition;
|
D | EventHandler.h | 129 IntPoint lastKnownMousePosition() const; 147 …bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPo… 148 …bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, Int… 149 …bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntRec… 151 bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPoint); 201 bool handleGestureTap(const PlatformGestureEvent&, const IntPoint& adjustedPoint); 202 bool handleGestureLongPress(const PlatformGestureEvent&, const IntPoint& adjustedPoint); 203 bool handleGestureLongTap(const PlatformGestureEvent&, const IntPoint& adjustedPoint); 204 bool handleGestureTwoFingerTap(const PlatformGestureEvent&, const IntPoint& adjustedPoint); 226 bool isInsideScrollbar(const IntPoint&) const; [all …]
|
D | TouchAdjustment.h | 32 bool findBestClickableCandidate(Node*& targetNode, IntPoint& targetPoint, const IntPoint& touchHots… 33 bool findBestContextMenuCandidate(Node*& targetNode, IntPoint& targetPoint, const IntPoint& touchHo… 34 bool findBestZoomableArea(Node*& targetNode, IntRect& targetArea, const IntPoint& touchHotspot, con…
|
D | AutoscrollController.h | 66 void updateDragAndDrop(Node* targetNode, const IntPoint& eventPosition, double eventTime); 69 void startPanScrolling(RenderBox*, const IntPoint&); 78 void updatePanScrollState(FrameView*, const IntPoint& lastKnownMousePosition); 84 IntPoint m_dragAndDropAutoscrollReferencePosition; 87 IntPoint m_panScrollStartPos;
|
/external/chromium_org/third_party/WebKit/Source/web/ |
D | ScrollbarGroup.h | 48 void setLastMousePosition(const WebCore::IntPoint&); 53 virtual void setScrollOffset(const WebCore::IntPoint&) OVERRIDE; 61 …virtual WebCore::IntPoint convertFromContainingViewToScrollbar(const WebCore::Scrollbar*, const We… 64 virtual WebCore::IntPoint scrollPosition() const OVERRIDE; 65 virtual WebCore::IntPoint minimumScrollPosition() const OVERRIDE; 66 virtual WebCore::IntPoint maximumScrollPosition() const OVERRIDE; 71 virtual WebCore::IntPoint lastKnownMousePosition() const OVERRIDE; 82 WebCore::IntPoint m_lastMousePosition;
|
D | ScrollbarGroup.cpp | 89 void ScrollbarGroup::setLastMousePosition(const IntPoint& point) in setLastMousePosition() 103 void ScrollbarGroup::setScrollOffset(const IntPoint& offset) in setScrollOffset() 155 IntPoint ScrollbarGroup::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const Int… in convertFromContainingViewToScrollbar() 162 return IntPoint(); in convertFromContainingViewToScrollbar() 175 IntPoint ScrollbarGroup::scrollPosition() const in scrollPosition() 179 return IntPoint(x, y); in scrollPosition() 182 IntPoint ScrollbarGroup::minimumScrollPosition() const in minimumScrollPosition() 184 return IntPoint(); in minimumScrollPosition() 187 IntPoint ScrollbarGroup::maximumScrollPosition() const in maximumScrollPosition() 189 …return IntPoint(contentsSize().width() - visibleWidth(), contentsSize().height() - visibleHeight()… in maximumScrollPosition() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
D | CSSCursorImageValue.h | 35 …CursorImageValue> create(PassRefPtr<CSSValue> imageValue, bool hasHotSpot, const IntPoint& hotSpot) in create() 44 IntPoint hotSpot() const in hotSpot() 48 return IntPoint(-1, -1); in hotSpot() 62 CSSCursorImageValue(PassRefPtr<CSSValue> imageValue, bool hasHotSpot, const IntPoint& hotSpot); 71 IntPoint m_hotSpot;
|
/external/chromium_org/third_party/WebKit/Source/core/events/ |
D | MouseRelatedEvent.h | 39 const IntPoint& screenLocation() const { return m_screenLocation; } in screenLocation() 64 … int detail, const IntPoint& screenLocation, const IntPoint& windowLocation, 65 const IntPoint& movementDelta, 76 IntPoint m_screenLocation;
|