OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #include "platform/UserGestureIndicator.h" | 62 #include "platform/UserGestureIndicator.h" |
63 #include "platform/geometry/IntRect.h" | 63 #include "platform/geometry/IntRect.h" |
64 #include "platform/geometry/IntSize.h" | 64 #include "platform/geometry/IntSize.h" |
65 #include "platform/graphics/Color.h" | 65 #include "platform/graphics/Color.h" |
66 #include "platform/graphics/GraphicsContext.h" | 66 #include "platform/graphics/GraphicsContext.h" |
67 #include "platform/graphics/paint/PaintRecordBuilder.h" | 67 #include "platform/graphics/paint/PaintRecordBuilder.h" |
68 #include "platform/scroll/ScrollTypes.h" | 68 #include "platform/scroll/ScrollTypes.h" |
69 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" | 69 #include "platform/testing/RuntimeEnabledFeaturesTestHelpers.h" |
70 #include "platform/testing/URLTestHelpers.h" | 70 #include "platform/testing/URLTestHelpers.h" |
71 #include "platform/testing/UnitTestHelpers.h" | 71 #include "platform/testing/UnitTestHelpers.h" |
| 72 #include "platform/wtf/PtrUtil.h" |
72 #include "public/platform/Platform.h" | 73 #include "public/platform/Platform.h" |
73 #include "public/platform/WebDisplayMode.h" | 74 #include "public/platform/WebDisplayMode.h" |
74 #include "public/platform/WebDragData.h" | 75 #include "public/platform/WebDragData.h" |
75 #include "public/platform/WebDragOperation.h" | 76 #include "public/platform/WebDragOperation.h" |
76 #include "public/platform/WebFloatPoint.h" | 77 #include "public/platform/WebFloatPoint.h" |
77 #include "public/platform/WebInputEvent.h" | 78 #include "public/platform/WebInputEvent.h" |
78 #include "public/platform/WebKeyboardEvent.h" | 79 #include "public/platform/WebKeyboardEvent.h" |
79 #include "public/platform/WebLayerTreeView.h" | 80 #include "public/platform/WebLayerTreeView.h" |
80 #include "public/platform/WebMockClipboard.h" | 81 #include "public/platform/WebMockClipboard.h" |
81 #include "public/platform/WebSize.h" | 82 #include "public/platform/WebSize.h" |
(...skipping 18 matching lines...) Expand all Loading... |
100 #include "public/web/WebWidgetClient.h" | 101 #include "public/web/WebWidgetClient.h" |
101 #include "testing/gtest/include/gtest/gtest.h" | 102 #include "testing/gtest/include/gtest/gtest.h" |
102 #include "third_party/skia/include/core/SkBitmap.h" | 103 #include "third_party/skia/include/core/SkBitmap.h" |
103 #include "third_party/skia/include/core/SkCanvas.h" | 104 #include "third_party/skia/include/core/SkCanvas.h" |
104 #include "web/DevToolsEmulator.h" | 105 #include "web/DevToolsEmulator.h" |
105 #include "web/WebInputMethodControllerImpl.h" | 106 #include "web/WebInputMethodControllerImpl.h" |
106 #include "web/WebLocalFrameImpl.h" | 107 #include "web/WebLocalFrameImpl.h" |
107 #include "web/WebSettingsImpl.h" | 108 #include "web/WebSettingsImpl.h" |
108 #include "web/WebViewImpl.h" | 109 #include "web/WebViewImpl.h" |
109 #include "web/tests/FrameTestHelpers.h" | 110 #include "web/tests/FrameTestHelpers.h" |
110 #include "wtf/PtrUtil.h" | |
111 | 111 |
112 #if OS(MACOSX) | 112 #if OS(MACOSX) |
113 #include "public/web/mac/WebSubstringUtil.h" | 113 #include "public/web/mac/WebSubstringUtil.h" |
114 #endif | 114 #endif |
115 | 115 |
116 using blink::FrameTestHelpers::loadFrame; | 116 using blink::FrameTestHelpers::loadFrame; |
117 using blink::URLTestHelpers::toKURL; | 117 using blink::URLTestHelpers::toKURL; |
118 using blink::URLTestHelpers::registerMockedURLLoad; | 118 using blink::URLTestHelpers::registerMockedURLLoad; |
119 using blink::testing::runPendingTasks; | 119 using blink::testing::runPendingTasks; |
120 | 120 |
(...skipping 4198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4319 EXPECT_FALSE(frameView->visualViewportSuppliesScrollbars()); | 4319 EXPECT_FALSE(frameView->visualViewportSuppliesScrollbars()); |
4320 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) { | 4320 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) { |
4321 EXPECT_NE(nullptr, | 4321 EXPECT_NE(nullptr, |
4322 frameView->layoutViewportScrollableArea()->verticalScrollbar()); | 4322 frameView->layoutViewportScrollableArea()->verticalScrollbar()); |
4323 } else { | 4323 } else { |
4324 EXPECT_NE(nullptr, frameView->verticalScrollbar()); | 4324 EXPECT_NE(nullptr, frameView->verticalScrollbar()); |
4325 } | 4325 } |
4326 } | 4326 } |
4327 | 4327 |
4328 } // namespace blink | 4328 } // namespace blink |
OLD | NEW |