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

Side by Side Diff: Source/core/svg/SVGZoomEvent.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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/svg/SVGViewSpec.cpp ('k') | Source/core/svg/SVGZoomEvent.cpp » ('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) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 */ 20 */
21 21
22 #ifndef SVGZoomEvent_h 22 #ifndef SVGZoomEvent_h
23 #define SVGZoomEvent_h 23 #define SVGZoomEvent_h
24 24
25 #include "core/events/UIEvent.h" 25 #include "core/events/UIEvent.h"
26 #include "core/svg/SVGPoint.h" 26 #include "core/svg/SVGPoint.h"
27 #include "core/svg/SVGRect.h" 27 #include "core/svg/SVGRect.h"
28 #include "platform/heap/Handle.h"
28 29
29 namespace blink { 30 namespace blink {
30 31
31 class SVGZoomEvent final : public UIEvent { 32 class SVGZoomEvent final : public UIEvent {
32 DEFINE_WRAPPERTYPEINFO(); 33 DEFINE_WRAPPERTYPEINFO();
33 public: 34 public:
34 static PassRefPtrWillBeRawPtr<SVGZoomEvent> create() 35 static PassRefPtrWillBeRawPtr<SVGZoomEvent> create()
35 { 36 {
36 return adoptRefWillBeNoop(new SVGZoomEvent); 37 return adoptRefWillBeNoop(new SVGZoomEvent);
37 } 38 }
38 39
39 // 'SVGZoomEvent' functions 40 // 'SVGZoomEvent' functions
40 PassRefPtr<SVGRectTearOff> zoomRectScreen() const; 41 PassRefPtrWillBeRawPtr<SVGRectTearOff> zoomRectScreen() const;
41 42
42 float previousScale() const; 43 float previousScale() const;
43 44
44 PassRefPtr<SVGPointTearOff> previousTranslate() const; 45 PassRefPtrWillBeRawPtr<SVGPointTearOff> previousTranslate() const;
45 46
46 float newScale() const; 47 float newScale() const;
47 48
48 PassRefPtr<SVGPointTearOff> newTranslate() const; 49 PassRefPtrWillBeRawPtr<SVGPointTearOff> newTranslate() const;
49 50
50 virtual const AtomicString& interfaceName() const override; 51 virtual const AtomicString& interfaceName() const override;
51 52
52 virtual void trace(Visitor*) override; 53 virtual void trace(Visitor*) override;
53 54
54 private: 55 private:
55 SVGZoomEvent(); 56 SVGZoomEvent();
56 57
57 float m_newScale; 58 float m_newScale;
58 float m_previousScale; 59 float m_previousScale;
59 60
60 FloatPoint m_newTranslate; 61 FloatPoint m_newTranslate;
61 FloatPoint m_previousTranslate; 62 FloatPoint m_previousTranslate;
62 }; 63 };
63 64
64 } // namespace blink 65 } // namespace blink
65 66
66 #endif // SVGZoomEvent_h 67 #endif // SVGZoomEvent_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGViewSpec.cpp ('k') | Source/core/svg/SVGZoomEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698