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

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

Issue 1236913004: Expose scroll customization for touch to JS (behind REF). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add to leak expectations. Created 5 years, 3 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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 #include "core/layout/LayoutView.h" 105 #include "core/layout/LayoutView.h"
106 #include "core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h" 106 #include "core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h"
107 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" 107 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h"
108 #include "core/loader/FrameLoader.h" 108 #include "core/loader/FrameLoader.h"
109 #include "core/loader/HistoryItem.h" 109 #include "core/loader/HistoryItem.h"
110 #include "core/page/ChromeClient.h" 110 #include "core/page/ChromeClient.h"
111 #include "core/page/FocusController.h" 111 #include "core/page/FocusController.h"
112 #include "core/page/NetworkStateNotifier.h" 112 #include "core/page/NetworkStateNotifier.h"
113 #include "core/page/Page.h" 113 #include "core/page/Page.h"
114 #include "core/page/PrintContext.h" 114 #include "core/page/PrintContext.h"
115 #include "core/page/scrolling/ScrollState.h"
115 #include "core/paint/DeprecatedPaintLayer.h" 116 #include "core/paint/DeprecatedPaintLayer.h"
116 #include "core/svg/SVGImageElement.h" 117 #include "core/svg/SVGImageElement.h"
117 #include "core/testing/DictionaryTest.h" 118 #include "core/testing/DictionaryTest.h"
118 #include "core/testing/GCObservation.h" 119 #include "core/testing/GCObservation.h"
119 #include "core/testing/InternalRuntimeFlags.h" 120 #include "core/testing/InternalRuntimeFlags.h"
120 #include "core/testing/InternalSettings.h" 121 #include "core/testing/InternalSettings.h"
121 #include "core/testing/LayerRect.h" 122 #include "core/testing/LayerRect.h"
122 #include "core/testing/LayerRectList.h" 123 #include "core/testing/LayerRectList.h"
123 #include "core/testing/PrivateScriptTest.h" 124 #include "core/testing/PrivateScriptTest.h"
124 #include "core/testing/TypeConversions.h" 125 #include "core/testing/TypeConversions.h"
(...skipping 2277 matching lines...) Expand 10 before | Expand all | Expand 10 after
2402 { 2403 {
2403 return CanvasFontCache::maxFonts(); 2404 return CanvasFontCache::maxFonts();
2404 } 2405 }
2405 2406
2406 ClientRect* Internals::boundsInViewportSpace(Element* element) 2407 ClientRect* Internals::boundsInViewportSpace(Element* element)
2407 { 2408 {
2408 ASSERT(element); 2409 ASSERT(element);
2409 return ClientRect::create(element->boundsInViewportSpace()); 2410 return ClientRect::create(element->boundsInViewportSpace());
2410 } 2411 }
2411 2412
2413 void Internals::setScrollChain(
2414 ScrollState* scrollState, const WillBeHeapVector<RefPtrWillBeMember<Element> >& elements, ExceptionState&)
2415 {
2416 WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain;
2417 for (size_t i = 0; i < elements.size(); ++i)
2418 scrollChain.append(elements[i]);
2419 scrollState->setScrollChain(scrollChain);
2420 }
2421
2412 void Internals::forceBlinkGCWithoutV8GC() 2422 void Internals::forceBlinkGCWithoutV8GC()
2413 { 2423 {
2414 ThreadState::current()->setGCState(ThreadState::FullGCScheduled); 2424 ThreadState::current()->setGCState(ThreadState::FullGCScheduled);
2415 } 2425 }
2416 2426
2417 String Internals::selectedHTMLForClipboard() 2427 String Internals::selectedHTMLForClipboard()
2418 { 2428 {
2419 return frame()->selection().selectedHTMLForClipboard(); 2429 return frame()->selection().selectedHTMLForClipboard();
2420 } 2430 }
2421 2431
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 2492
2483 return animator->setScrollbarsVisibleForTesting(visible); 2493 return animator->setScrollbarsVisibleForTesting(visible);
2484 } 2494 }
2485 2495
2486 void Internals::forceRestrictIFramePermissions() 2496 void Internals::forceRestrictIFramePermissions()
2487 { 2497 {
2488 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); 2498 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true);
2489 } 2499 }
2490 2500
2491 } // namespace blink 2501 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698