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

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

Issue 2113933003: Add mojo interface to load hyphenation dictionaries on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng review Created 4 years, 5 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 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 1550
1551 void Internals::setContinuousSpellCheckingEnabled(bool enabled) 1551 void Internals::setContinuousSpellCheckingEnabled(bool enabled)
1552 { 1552 {
1553 if (!contextDocument() || !contextDocument()->frame()) 1553 if (!contextDocument() || !contextDocument()->frame())
1554 return; 1554 return;
1555 1555
1556 if (enabled != contextDocument()->frame()->spellChecker().isContinuousSpellC heckingEnabled()) 1556 if (enabled != contextDocument()->frame()->spellChecker().isContinuousSpellC heckingEnabled())
1557 contextDocument()->frame()->spellChecker().toggleContinuousSpellChecking (); 1557 contextDocument()->frame()->spellChecker().toggleContinuousSpellChecking ();
1558 } 1558 }
1559 1559
1560 bool Internals::canHyphenate(const AtomicString& locale)
1561 {
1562 return Hyphenation::get(locale);
1563 }
1564
1560 void Internals::setMockHyphenation(const AtomicString& locale) 1565 void Internals::setMockHyphenation(const AtomicString& locale)
1561 { 1566 {
1562 Hyphenation::setForTesting(locale, adoptRef(new MockHyphenation)); 1567 Hyphenation::setForTesting(locale, adoptRef(new MockHyphenation));
1563 } 1568 }
1564 1569
1565 bool Internals::isOverwriteModeEnabled(Document* document) 1570 bool Internals::isOverwriteModeEnabled(Document* document)
1566 { 1571 {
1567 ASSERT(document); 1572 ASSERT(document);
1568 if (!document->frame()) 1573 if (!document->frame())
1569 return false; 1574 return false;
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 } 2635 }
2631 2636
2632 String Internals::getProgrammaticScrollAnimationState(Node* node) const 2637 String Internals::getProgrammaticScrollAnimationState(Node* node) const
2633 { 2638 {
2634 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) 2639 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node))
2635 return scrollableArea->programmaticScrollAnimator().runStateAsText(); 2640 return scrollableArea->programmaticScrollAnimator().runStateAsText();
2636 return String(); 2641 return String();
2637 } 2642 }
2638 2643
2639 } // namespace blink 2644 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698