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

Side by Side Diff: third_party/WebKit/Source/core/style/CounterDirectives.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 13 matching lines...) Expand all
24 24
25 #ifndef CounterDirectives_h 25 #ifndef CounterDirectives_h
26 #define CounterDirectives_h 26 #define CounterDirectives_h
27 27
28 #include "wtf/Allocator.h" 28 #include "wtf/Allocator.h"
29 #include "wtf/HashMap.h" 29 #include "wtf/HashMap.h"
30 #include "wtf/MathExtras.h" 30 #include "wtf/MathExtras.h"
31 #include "wtf/RefPtr.h" 31 #include "wtf/RefPtr.h"
32 #include "wtf/text/AtomicString.h" 32 #include "wtf/text/AtomicString.h"
33 #include "wtf/text/AtomicStringHash.h" 33 #include "wtf/text/AtomicStringHash.h"
34 #include <memory>
35 34
36 namespace blink { 35 namespace blink {
37 36
38 class CounterDirectives { 37 class CounterDirectives {
39 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 38 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
40 public: 39 public:
41 CounterDirectives() 40 CounterDirectives()
42 : m_isResetSet(false) 41 : m_isResetSet(false)
43 , m_isIncrementSet(false) 42 , m_isIncrementSet(false)
44 , m_resetValue(0) 43 , m_resetValue(0)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 bool m_isIncrementSet; 99 bool m_isIncrementSet;
101 int m_resetValue; 100 int m_resetValue;
102 int m_incrementValue; 101 int m_incrementValue;
103 }; 102 };
104 103
105 bool operator==(const CounterDirectives&, const CounterDirectives&); 104 bool operator==(const CounterDirectives&, const CounterDirectives&);
106 inline bool operator!=(const CounterDirectives& a, const CounterDirectives& b) { return !(a == b); } 105 inline bool operator!=(const CounterDirectives& a, const CounterDirectives& b) { return !(a == b); }
107 106
108 typedef HashMap<AtomicString, CounterDirectives> CounterDirectiveMap; 107 typedef HashMap<AtomicString, CounterDirectives> CounterDirectiveMap;
109 108
110 std::unique_ptr<CounterDirectiveMap> clone(const CounterDirectiveMap&); 109 PassOwnPtr<CounterDirectiveMap> clone(const CounterDirectiveMap&);
111 110
112 } // namespace blink 111 } // namespace blink
113 112
114 #endif // CounterDirectives_h 113 #endif // CounterDirectives_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ContentData.cpp ('k') | third_party/WebKit/Source/core/style/CounterDirectives.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698