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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2138613002: Set the font family for the "system-ui" generic font family on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP 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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698