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

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

Issue 2312093003: Generated bindings for IDL callback functions (Closed)
Patch Set: Changed BUILD.gn Created 4 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
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #include "core/loader/FrameLoader.h" 109 #include "core/loader/FrameLoader.h"
110 #include "core/loader/HistoryItem.h" 110 #include "core/loader/HistoryItem.h"
111 #include "core/page/ChromeClient.h" 111 #include "core/page/ChromeClient.h"
112 #include "core/page/FocusController.h" 112 #include "core/page/FocusController.h"
113 #include "core/page/NetworkStateNotifier.h" 113 #include "core/page/NetworkStateNotifier.h"
114 #include "core/page/Page.h" 114 #include "core/page/Page.h"
115 #include "core/page/PrintContext.h" 115 #include "core/page/PrintContext.h"
116 #include "core/page/scrolling/ScrollState.h" 116 #include "core/page/scrolling/ScrollState.h"
117 #include "core/paint/PaintLayer.h" 117 #include "core/paint/PaintLayer.h"
118 #include "core/svg/SVGImageElement.h" 118 #include "core/svg/SVGImageElement.h"
119 #include "core/testing/CallbackFunctionTest.h"
119 #include "core/testing/DictionaryTest.h" 120 #include "core/testing/DictionaryTest.h"
120 #include "core/testing/GCObservation.h" 121 #include "core/testing/GCObservation.h"
121 #include "core/testing/InternalRuntimeFlags.h" 122 #include "core/testing/InternalRuntimeFlags.h"
122 #include "core/testing/InternalSettings.h" 123 #include "core/testing/InternalSettings.h"
123 #include "core/testing/LayerRect.h" 124 #include "core/testing/LayerRect.h"
124 #include "core/testing/LayerRectList.h" 125 #include "core/testing/LayerRectList.h"
125 #include "core/testing/MockHyphenation.h" 126 #include "core/testing/MockHyphenation.h"
126 #include "core/testing/PrivateScriptTest.h" 127 #include "core/testing/PrivateScriptTest.h"
127 #include "core/testing/TypeConversions.h" 128 #include "core/testing/TypeConversions.h"
128 #include "core/testing/UnionTypesTest.h" 129 #include "core/testing/UnionTypesTest.h"
(...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 DictionaryTest* Internals::dictionaryTest() const 1951 DictionaryTest* Internals::dictionaryTest() const
1951 { 1952 {
1952 return DictionaryTest::create(); 1953 return DictionaryTest::create();
1953 } 1954 }
1954 1955
1955 UnionTypesTest* Internals::unionTypesTest() const 1956 UnionTypesTest* Internals::unionTypesTest() const
1956 { 1957 {
1957 return UnionTypesTest::create(); 1958 return UnionTypesTest::create();
1958 } 1959 }
1959 1960
1961 CallbackFunctionTest* Internals::callbackFunctionTest() const
1962 {
1963 return CallbackFunctionTest::create();
1964 }
1965
1960 Vector<String> Internals::getReferencedFilePaths() const 1966 Vector<String> Internals::getReferencedFilePaths() const
1961 { 1967 {
1962 if (!frame()) 1968 if (!frame())
1963 return Vector<String>(); 1969 return Vector<String>();
1964 1970
1965 return frame()->loader().currentItem()->getReferencedFilePaths(); 1971 return frame()->loader().currentItem()->getReferencedFilePaths();
1966 } 1972 }
1967 1973
1968 void Internals::startTrackingRepaints(Document* document, ExceptionState& except ionState) 1974 void Internals::startTrackingRepaints(Document* document, ExceptionState& except ionState)
1969 { 1975 {
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 2632
2627 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); 2633 return ClientRect::create(FloatRect(node->layoutObject()->visualRect()));
2628 } 2634 }
2629 2635
2630 void Internals::crash() 2636 void Internals::crash()
2631 { 2637 {
2632 CHECK(false) << "Intentional crash"; 2638 CHECK(false) << "Intentional crash";
2633 } 2639 }
2634 2640
2635 } // namespace blink 2641 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698