| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef HTMLSrcsetParser_h | 32 #ifndef HTMLSrcsetParser_h |
| 33 #define HTMLSrcsetParser_h | 33 #define HTMLSrcsetParser_h |
| 34 | 34 |
| 35 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
| 36 #include "wtf/Allocator.h" | 36 #include "platform/wtf/Allocator.h" |
| 37 #include "wtf/text/StringView.h" | 37 #include "platform/wtf/text/StringView.h" |
| 38 #include "wtf/text/WTFString.h" | 38 #include "platform/wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Document; | 42 class Document; |
| 43 | 43 |
| 44 enum { kUninitializedDescriptor = -1 }; | 44 enum { kUninitializedDescriptor = -1 }; |
| 45 | 45 |
| 46 class DescriptorParsingResult { | 46 class DescriptorParsingResult { |
| 47 STACK_ALLOCATED(); | 47 STACK_ALLOCATED(); |
| 48 | 48 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 Document* = nullptr); | 147 Document* = nullptr); |
| 148 | 148 |
| 149 String BestFitSourceForImageAttributes(float device_scale_factor, | 149 String BestFitSourceForImageAttributes(float device_scale_factor, |
| 150 float source_size, | 150 float source_size, |
| 151 const String& src_attribute, | 151 const String& src_attribute, |
| 152 ImageCandidate& srcset_image_candidate); | 152 ImageCandidate& srcset_image_candidate); |
| 153 | 153 |
| 154 } // namespace blink | 154 } // namespace blink |
| 155 | 155 |
| 156 #endif | 156 #endif |
| OLD | NEW |