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 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2471 frame()->document()->clearFocusedElement(); | 2471 frame()->document()->clearFocusedElement(); |
2472 frame()->page()->focusController().setInitialFocus(reverse ? WebFocusTypeBac
kward : WebFocusTypeForward); | 2472 frame()->page()->focusController().setInitialFocus(reverse ? WebFocusTypeBac
kward : WebFocusTypeForward); |
2473 } | 2473 } |
2474 | 2474 |
2475 bool Internals::ignoreLayoutWithPendingStylesheets(Document* document) | 2475 bool Internals::ignoreLayoutWithPendingStylesheets(Document* document) |
2476 { | 2476 { |
2477 ASSERT(document); | 2477 ASSERT(document); |
2478 return document->ignoreLayoutWithPendingStylesheets(); | 2478 return document->ignoreLayoutWithPendingStylesheets(); |
2479 } | 2479 } |
2480 | 2480 |
| 2481 const String& Internals::systemFontFamily() const |
| 2482 { |
| 2483 return FontCache::systemFontFamily(); |
| 2484 } |
| 2485 |
2481 void Internals::setNetworkConnectionInfoOverride(bool onLine, const String& type
, double downlinkMaxMbps, ExceptionState& exceptionState) | 2486 void Internals::setNetworkConnectionInfoOverride(bool onLine, const String& type
, double downlinkMaxMbps, ExceptionState& exceptionState) |
2482 { | 2487 { |
2483 WebConnectionType webtype; | 2488 WebConnectionType webtype; |
2484 if (type == "cellular2g") { | 2489 if (type == "cellular2g") { |
2485 webtype = WebConnectionTypeCellular2G; | 2490 webtype = WebConnectionTypeCellular2G; |
2486 } else if (type == "cellular3g") { | 2491 } else if (type == "cellular3g") { |
2487 webtype = WebConnectionTypeCellular3G; | 2492 webtype = WebConnectionTypeCellular3G; |
2488 } else if (type == "cellular4g") { | 2493 } else if (type == "cellular4g") { |
2489 webtype = WebConnectionTypeCellular4G; | 2494 webtype = WebConnectionTypeCellular4G; |
2490 } else if (type == "bluetooth") { | 2495 } else if (type == "bluetooth") { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2702 | 2707 |
2703 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); | 2708 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); |
2704 } | 2709 } |
2705 | 2710 |
2706 void Internals::crash() | 2711 void Internals::crash() |
2707 { | 2712 { |
2708 CHECK(false) << "Intentional crash"; | 2713 CHECK(false) << "Intentional crash"; |
2709 } | 2714 } |
2710 | 2715 |
2711 } // namespace blink | 2716 } // namespace blink |
OLD | NEW |