OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 | 32 |
33 #include "public/web/WebFrame.h" | 33 #include "public/web/WebFrame.h" |
34 | 34 |
35 #include "RuntimeEnabledFeatures.h" | |
36 #include "SkBitmap.h" | 35 #include "SkBitmap.h" |
37 #include "SkCanvas.h" | 36 #include "SkCanvas.h" |
38 #include "UserAgentStyleSheets.h" | 37 #include "UserAgentStyleSheets.h" |
39 #include "core/clipboard/Clipboard.h" | 38 #include "core/clipboard/Clipboard.h" |
40 #include "core/css/StyleSheetContents.h" | 39 #include "core/css/StyleSheetContents.h" |
41 #include "core/css/resolver/ViewportStyleResolver.h" | 40 #include "core/css/resolver/ViewportStyleResolver.h" |
42 #include "core/dom/DocumentMarkerController.h" | 41 #include "core/dom/DocumentMarkerController.h" |
43 #include "core/dom/FullscreenElementStack.h" | 42 #include "core/dom/FullscreenElementStack.h" |
44 #include "core/dom/Range.h" | 43 #include "core/dom/Range.h" |
45 #include "core/editing/Editor.h" | 44 #include "core/editing/Editor.h" |
46 #include "core/editing/FrameSelection.h" | 45 #include "core/editing/FrameSelection.h" |
47 #include "core/editing/SpellChecker.h" | 46 #include "core/editing/SpellChecker.h" |
48 #include "core/editing/VisiblePosition.h" | 47 #include "core/editing/VisiblePosition.h" |
49 #include "core/events/MouseEvent.h" | 48 #include "core/events/MouseEvent.h" |
50 #include "core/frame/FrameView.h" | 49 #include "core/frame/FrameView.h" |
51 #include "core/frame/LocalFrame.h" | 50 #include "core/frame/LocalFrame.h" |
52 #include "core/frame/Settings.h" | 51 #include "core/frame/Settings.h" |
53 #include "core/html/HTMLFormElement.h" | 52 #include "core/html/HTMLFormElement.h" |
54 #include "core/loader/FrameLoadRequest.h" | 53 #include "core/loader/FrameLoadRequest.h" |
55 #include "core/page/EventHandler.h" | 54 #include "core/page/EventHandler.h" |
56 #include "core/rendering/HitTestResult.h" | 55 #include "core/rendering/HitTestResult.h" |
57 #include "core/rendering/RenderView.h" | 56 #include "core/rendering/RenderView.h" |
58 #include "core/rendering/TextAutosizer.h" | 57 #include "core/rendering/TextAutosizer.h" |
59 #include "core/rendering/compositing/RenderLayerCompositor.h" | 58 #include "core/rendering/compositing/RenderLayerCompositor.h" |
60 #include "platform/DragImage.h" | 59 #include "platform/DragImage.h" |
| 60 #include "platform/RuntimeEnabledFeatures.h" |
61 #include "platform/UserGestureIndicator.h" | 61 #include "platform/UserGestureIndicator.h" |
62 #include "platform/geometry/FloatRect.h" | 62 #include "platform/geometry/FloatRect.h" |
63 #include "platform/network/ResourceError.h" | 63 #include "platform/network/ResourceError.h" |
64 #include "platform/scroll/ScrollbarTheme.h" | 64 #include "platform/scroll/ScrollbarTheme.h" |
65 #include "public/platform/Platform.h" | 65 #include "public/platform/Platform.h" |
66 #include "public/platform/WebFloatRect.h" | 66 #include "public/platform/WebFloatRect.h" |
67 #include "public/platform/WebThread.h" | 67 #include "public/platform/WebThread.h" |
68 #include "public/platform/WebURL.h" | 68 #include "public/platform/WebURL.h" |
69 #include "public/platform/WebURLResponse.h" | 69 #include "public/platform/WebURLResponse.h" |
70 #include "public/platform/WebUnitTestSupport.h" | 70 #include "public/platform/WebUnitTestSupport.h" |
(...skipping 5506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5577 { | 5577 { |
5578 registerMockedHttpURLLoad("brand_color_test.html"); | 5578 registerMockedHttpURLLoad("brand_color_test.html"); |
5579 FrameTestHelpers::WebViewHelper webViewHelper; | 5579 FrameTestHelpers::WebViewHelper webViewHelper; |
5580 BrandColorTestWebFrameClient client; | 5580 BrandColorTestWebFrameClient client; |
5581 webViewHelper.initializeAndLoad(m_baseURL + "brand_color_test.html", false,
&client); | 5581 webViewHelper.initializeAndLoad(m_baseURL + "brand_color_test.html", false,
&client); |
5582 EXPECT_TRUE(client.didNotify()); | 5582 EXPECT_TRUE(client.didNotify()); |
5583 EXPECT_EQ(0xff0000ff, client.brandColor()); | 5583 EXPECT_EQ(0xff0000ff, client.brandColor()); |
5584 } | 5584 } |
5585 | 5585 |
5586 } // namespace | 5586 } // namespace |
OLD | NEW |