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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLAreaElement.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2004, 2008, 2009, 2011 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2008, 2009, 2011 Apple Inc. All rights reserved.
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 22
23 #ifndef HTMLAreaElement_h 23 #ifndef HTMLAreaElement_h
24 #define HTMLAreaElement_h 24 #define HTMLAreaElement_h
25 25
26 #include "core/CoreExport.h" 26 #include "core/CoreExport.h"
27 #include "core/html/HTMLAnchorElement.h" 27 #include "core/html/HTMLAnchorElement.h"
28 #include "platform/geometry/LayoutRect.h" 28 #include "platform/geometry/LayoutRect.h"
29 #include <memory>
30 29
31 namespace blink { 30 namespace blink {
32 31
33 class HitTestResult; 32 class HitTestResult;
34 class HTMLImageElement; 33 class HTMLImageElement;
35 class Path; 34 class Path;
36 35
37 class CORE_EXPORT HTMLAreaElement final : public HTMLAnchorElement { 36 class CORE_EXPORT HTMLAreaElement final : public HTMLAnchorElement {
38 DEFINE_WRAPPERTYPEINFO(); 37 DEFINE_WRAPPERTYPEINFO();
39 public: 38 public:
(...skipping 21 matching lines...) Expand all
61 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; 60 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override;
62 bool isKeyboardFocusable() const override; 61 bool isKeyboardFocusable() const override;
63 bool isMouseFocusable() const override; 62 bool isMouseFocusable() const override;
64 bool layoutObjectIsFocusable() const override; 63 bool layoutObjectIsFocusable() const override;
65 void updateFocusAppearance(SelectionBehaviorOnFocus) override; 64 void updateFocusAppearance(SelectionBehaviorOnFocus) override;
66 void setFocus(bool) override; 65 void setFocus(bool) override;
67 66
68 enum Shape { Default, Poly, Rect, Circle }; 67 enum Shape { Default, Poly, Rect, Circle };
69 void invalidateCachedPath(); 68 void invalidateCachedPath();
70 69
71 mutable std::unique_ptr<Path> m_path; 70 mutable OwnPtr<Path> m_path;
72 Vector<double> m_coords; 71 Vector<double> m_coords;
73 Shape m_shape; 72 Shape m_shape;
74 }; 73 };
75 74
76 } // namespace blink 75 } // namespace blink
77 76
78 #endif // HTMLAreaElement_h 77 #endif // HTMLAreaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/ClassList.cpp ('k') | third_party/WebKit/Source/core/html/HTMLAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698