| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2183 kV8TypeError, "Page width and height must be larger than 0."); | 2183 kV8TypeError, "Page width and height must be larger than 0."); |
| 2184 return 0; | 2184 return 0; |
| 2185 } | 2185 } |
| 2186 | 2186 |
| 2187 return PrintContext::PageNumberForElement(element, | 2187 return PrintContext::PageNumberForElement(element, |
| 2188 FloatSize(page_width, page_height)); | 2188 FloatSize(page_width, page_height)); |
| 2189 } | 2189 } |
| 2190 | 2190 |
| 2191 Vector<String> Internals::IconURLs(Document* document, | 2191 Vector<String> Internals::IconURLs(Document* document, |
| 2192 int icon_types_mask) const { | 2192 int icon_types_mask) const { |
| 2193 Vector<IconURL> icon_ur_ls = document->IconURLs(icon_types_mask); | 2193 Vector<IconURL> icon_urls = document->IconURLs(icon_types_mask); |
| 2194 Vector<String> array; | 2194 Vector<String> array; |
| 2195 | 2195 |
| 2196 for (auto& icon_url : icon_ur_ls) | 2196 for (auto& icon_url : icon_urls) |
| 2197 array.push_back(icon_url.icon_url_.GetString()); | 2197 array.push_back(icon_url.icon_url_.GetString()); |
| 2198 | 2198 |
| 2199 return array; | 2199 return array; |
| 2200 } | 2200 } |
| 2201 | 2201 |
| 2202 Vector<String> Internals::shortcutIconURLs(Document* document) const { | 2202 Vector<String> Internals::shortcutIconURLs(Document* document) const { |
| 2203 return IconURLs(document, kFavicon); | 2203 return IconURLs(document, kFavicon); |
| 2204 } | 2204 } |
| 2205 | 2205 |
| 2206 Vector<String> Internals::allIconURLs(Document* document) const { | 2206 Vector<String> Internals::allIconURLs(Document* document) const { |
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3275 | 3275 |
| 3276 void Internals::crash() { | 3276 void Internals::crash() { |
| 3277 CHECK(false) << "Intentional crash"; | 3277 CHECK(false) << "Intentional crash"; |
| 3278 } | 3278 } |
| 3279 | 3279 |
| 3280 void Internals::setIsLowEndDevice(bool is_low_end_device) { | 3280 void Internals::setIsLowEndDevice(bool is_low_end_device) { |
| 3281 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); | 3281 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); |
| 3282 } | 3282 } |
| 3283 | 3283 |
| 3284 } // namespace blink | 3284 } // namespace blink |
| OLD | NEW |