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

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

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/core/events/MouseEvent.h ('k') | Source/core/events/MutationEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 MouseRelatedEvent(); 67 MouseRelatedEvent();
68 // TODO(lanwei): Will make this argument non-optional and all the caller s need to provide 68 // TODO(lanwei): Will make this argument non-optional and all the caller s need to provide
69 // sourceDevice even when it is null, see https://crbug.com/476530. 69 // sourceDevice even when it is null, see https://crbug.com/476530.
70 MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancela ble, 70 MouseRelatedEvent(const AtomicString& type, bool canBubble, bool cancela ble,
71 PassRefPtrWillBeRawPtr<AbstractView>, int detail, const IntPoint& sc reenLocation, 71 PassRefPtrWillBeRawPtr<AbstractView>, int detail, const IntPoint& sc reenLocation,
72 const IntPoint& rootFrameLocation, const IntPoint& movementDelta, bo ol ctrlKey, bool altKey, 72 const IntPoint& rootFrameLocation, const IntPoint& movementDelta, bo ol ctrlKey, bool altKey,
73 bool shiftKey, bool metaKey, bool isSimulated = false, InputDevice* sourceDevice = nullptr); 73 bool shiftKey, bool metaKey, bool isSimulated = false, InputDevice* sourceDevice = nullptr);
74 74
75 void initCoordinates(); 75 void initCoordinates();
76 void initCoordinates(const LayoutPoint& clientLocation); 76 void initCoordinates(const LayoutPoint& clientLocation);
77 virtual void receivedTarget() override final; 77 void receivedTarget() final;
78 78
79 void computePageLocation(); 79 void computePageLocation();
80 void computeRelativePosition(); 80 void computeRelativePosition();
81 81
82 // Expose these so MouseEvent::initMouseEvent can set them. 82 // Expose these so MouseEvent::initMouseEvent can set them.
83 IntPoint m_screenLocation; 83 IntPoint m_screenLocation;
84 LayoutPoint m_clientLocation; 84 LayoutPoint m_clientLocation;
85 LayoutPoint m_movementDelta; 85 LayoutPoint m_movementDelta;
86 86
87 private: 87 private:
88 LayoutPoint m_pageLocation; 88 LayoutPoint m_pageLocation;
89 LayoutPoint m_layerLocation; 89 LayoutPoint m_layerLocation;
90 LayoutPoint m_offsetLocation; 90 LayoutPoint m_offsetLocation;
91 LayoutPoint m_absoluteLocation; 91 LayoutPoint m_absoluteLocation;
92 bool m_isSimulated; 92 bool m_isSimulated;
93 bool m_hasCachedRelativePosition; 93 bool m_hasCachedRelativePosition;
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // MouseRelatedEvent_h 98 #endif // MouseRelatedEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/MouseEvent.h ('k') | Source/core/events/MutationEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698