Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: Source/core/events/MouseRelatedEvent.h

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // FIXME: rename isSimulated to fromKeyboard() and replace m_isSimulated with a new value 49 // FIXME: rename isSimulated to fromKeyboard() and replace m_isSimulated with a new value
50 // in PlatformMouseEvent::SyntheticEventType. isSimulated() is only true for synthetic 50 // in PlatformMouseEvent::SyntheticEventType. isSimulated() is only true for synthetic
51 // mouse events that derive from keyboard input, which do not have a pos ition. 51 // mouse events that derive from keyboard input, which do not have a pos ition.
52 bool isSimulated() const { return m_isSimulated; } 52 bool isSimulated() const { return m_isSimulated; }
53 virtual int pageX() const override final; 53 virtual int pageX() const override final;
54 virtual int pageY() const override final; 54 virtual int pageY() const override final;
55 int x() const; 55 int x() const;
56 int y() const; 56 int y() const;
57 57
58 // Page point in "absolute" coordinates (i.e. post-zoomed, page-relative coords, 58 // Page point in "absolute" coordinates (i.e. post-zoomed, page-relative coords,
59 // usable with RenderObject::absoluteToLocal). 59 // usable with LayoutObject::absoluteToLocal).
60 const LayoutPoint& absoluteLocation() const { return m_absoluteLocation; } 60 const LayoutPoint& absoluteLocation() const { return m_absoluteLocation; }
61 void setAbsoluteLocation(const LayoutPoint& p) { m_absoluteLocation = p; } 61 void setAbsoluteLocation(const LayoutPoint& p) { m_absoluteLocation = p; }
62 62
63 virtual void trace(Visitor*) override; 63 virtual void trace(Visitor*) override;
64 64
65 protected: 65 protected:
66 MouseRelatedEvent(); 66 MouseRelatedEvent();
67 MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancela ble, 67 MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancela ble,
68 PassRefPtrWillBeRawPtr<AbstractView>, int detail, const IntPoint& sc reenLocation, 68 PassRefPtrWillBeRawPtr<AbstractView>, int detail, const IntPoint& sc reenLocation,
69 const IntPoint& windowLocation, const IntPoint& movementDelta, bool ctrlKey, bool altKey, 69 const IntPoint& windowLocation, const IntPoint& movementDelta, bool ctrlKey, bool altKey,
(...skipping 16 matching lines...) Expand all
86 LayoutPoint m_layerLocation; 86 LayoutPoint m_layerLocation;
87 LayoutPoint m_offsetLocation; 87 LayoutPoint m_offsetLocation;
88 LayoutPoint m_absoluteLocation; 88 LayoutPoint m_absoluteLocation;
89 bool m_isSimulated; 89 bool m_isSimulated;
90 bool m_hasCachedRelativePosition; 90 bool m_hasCachedRelativePosition;
91 }; 91 };
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif // MouseRelatedEvent_h 95 #endif // MouseRelatedEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698