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

Side by Side Diff: third_party/WebKit/Source/core/html/track/vtt/VTTParser.h

Issue 2393633005: reflow comments in core/imagebitmap,core/html/track (Closed)
Patch Set: Created 4 years, 2 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 tagName == HTMLNames::uTag || tagName == HTMLNames::rubyTag || 74 tagName == HTMLNames::uTag || tagName == HTMLNames::rubyTag ||
75 tagName == HTMLNames::rtTag; 75 tagName == HTMLNames::rtTag;
76 } 76 }
77 static inline bool isASpace(UChar c) { 77 static inline bool isASpace(UChar c) {
78 // WebVTT space characters are U+0020 SPACE, U+0009 CHARACTER 78 // WebVTT space characters are U+0020 SPACE, U+0009 CHARACTER
79 // TABULATION (tab), U+000A LINE FEED (LF), U+000C FORM FEED (FF), and 79 // TABULATION (tab), U+000A LINE FEED (LF), U+000C FORM FEED (FF), and
80 // U+000D CARRIAGE RETURN (CR). 80 // U+000D CARRIAGE RETURN (CR).
81 return c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r'; 81 return c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r';
82 } 82 }
83 static inline bool isValidSettingDelimiter(UChar c) { 83 static inline bool isValidSettingDelimiter(UChar c) {
84 // ... a WebVTT cue consists of zero or more of the following components, in any order, separated from each other by one or more 84 // ... a WebVTT cue consists of zero or more of the following components, in
85 // U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters. 85 // any order, separated from each other by one or more U+0020 SPACE
86 // characters or U+0009 CHARACTER TABULATION (tab) characters.
86 return c == ' ' || c == '\t'; 87 return c == ' ' || c == '\t';
87 } 88 }
88 static bool collectTimeStamp(const String&, double& timeStamp); 89 static bool collectTimeStamp(const String&, double& timeStamp);
89 90
90 // Useful functions for parsing percentage settings. 91 // Useful functions for parsing percentage settings.
91 static bool parseFloatPercentageValue(VTTScanner& valueScanner, 92 static bool parseFloatPercentageValue(VTTScanner& valueScanner,
92 float& percentage); 93 float& percentage);
93 static bool parseFloatPercentageValuePair(VTTScanner&, char, FloatPoint&); 94 static bool parseFloatPercentageValuePair(VTTScanner&, char, FloatPoint&);
94 95
95 // Create the DocumentFragment representation of the WebVTT cue text. 96 // Create the DocumentFragment representation of the WebVTT cue text.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 Member<VTTParserClient> m_client; 141 Member<VTTParserClient> m_client;
141 142
142 HeapVector<Member<TextTrackCue>> m_cueList; 143 HeapVector<Member<TextTrackCue>> m_cueList;
143 144
144 HeapVector<Member<VTTRegion>> m_regionList; 145 HeapVector<Member<VTTRegion>> m_regionList;
145 }; 146 };
146 147
147 } // namespace blink 148 } // namespace blink
148 149
149 #endif 150 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp ('k') | third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698