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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 26 matching lines...) Expand all
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class ExceptionState; 40 class ExceptionState;
41 41
42 class CORE_EXPORT TimeRanges : public GarbageCollectedFinalized<TimeRanges>, pub lic ScriptWrappable { 42 class CORE_EXPORT TimeRanges : public GarbageCollectedFinalized<TimeRanges>, pub lic ScriptWrappable {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 public: 44 public:
45 // We consider all the Ranges to be semi-bounded as follow: [start, end[ 45 // We consider all the Ranges to be semi-bounded as follow: [start, end[
46 struct Range { 46 struct Range {
47 ALLOW_ONLY_INLINE_ALLOCATION(); 47 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
48 public: 48 public:
49 Range() { } 49 Range() { }
50 Range(double start, double end) 50 Range(double start, double end)
51 { 51 {
52 m_start = start; 52 m_start = start;
53 m_end = end; 53 m_end = end;
54 } 54 }
55 double m_start; 55 double m_start;
56 double m_end; 56 double m_end;
57 57
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 TimeRanges(double start, double end); 118 TimeRanges(double start, double end);
119 119
120 void invert(); 120 void invert();
121 121
122 Vector<Range> m_ranges; 122 Vector<Range> m_ranges;
123 }; 123 };
124 124
125 } // namespace blink 125 } // namespace blink
126 126
127 #endif // TimeRanges_h 127 #endif // TimeRanges_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/LinkRelAttribute.h ('k') | third_party/WebKit/Source/core/html/forms/DateTimeChooser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698