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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/html/TextMetrics.h ('k') | Source/core/html/ValidityState.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) 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 21 matching lines...) Expand all
32 #include "wtf/RefCounted.h" 32 #include "wtf/RefCounted.h"
33 #include "wtf/Vector.h" 33 #include "wtf/Vector.h"
34 34
35 #include <algorithm> 35 #include <algorithm>
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class ExceptionState; 39 class ExceptionState;
40 40
41 class TimeRanges : public RefCountedWillBeGarbageCollected<TimeRanges>, public S criptWrappable { 41 class TimeRanges : public RefCountedWillBeGarbageCollected<TimeRanges>, public S criptWrappable {
42 DEFINE_WRAPPERTYPEINFO();
42 public: 43 public:
43 // We consider all the Ranges to be semi-bounded as follow: [start, end[ 44 // We consider all the Ranges to be semi-bounded as follow: [start, end[
44 struct Range { 45 struct Range {
45 ALLOW_ONLY_INLINE_ALLOCATION(); 46 ALLOW_ONLY_INLINE_ALLOCATION();
46 public: 47 public:
47 Range() { } 48 Range() { }
48 Range(double start, double end) 49 Range(double start, double end)
49 { 50 {
50 m_start = start; 51 m_start = start;
51 m_end = end; 52 m_end = end;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 void invert(); 124 void invert();
124 125
125 WillBeHeapVector<Range> m_ranges; 126 WillBeHeapVector<Range> m_ranges;
126 }; 127 };
127 128
128 } // namespace blink 129 } // namespace blink
129 130
130 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TimeRanges::Range); 131 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TimeRanges::Range);
131 132
132 #endif 133 #endif // TimeRanges_h
OLDNEW
« no previous file with comments | « Source/core/html/TextMetrics.h ('k') | Source/core/html/ValidityState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698