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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 #include "bindings/core/v8/V8Document.h" | 35 #include "bindings/core/v8/V8Document.h" |
36 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
37 #include "core/dom/DocumentUserGestureToken.h" | 37 #include "core/dom/DocumentUserGestureToken.h" |
38 #include "core/dom/Element.h" | 38 #include "core/dom/Element.h" |
39 #include "core/dom/Fullscreen.h" | 39 #include "core/dom/Fullscreen.h" |
40 #include "core/dom/NodeComputedStyle.h" | 40 #include "core/dom/NodeComputedStyle.h" |
41 #include "core/editing/FrameSelection.h" | 41 #include "core/editing/FrameSelection.h" |
42 #include "core/editing/InputMethodController.h" | 42 #include "core/editing/InputMethodController.h" |
43 #include "core/editing/markers/DocumentMarkerController.h" | 43 #include "core/editing/markers/DocumentMarkerController.h" |
| 44 #include "core/exported/WebViewBase.h" |
44 #include "core/frame/EventHandlerRegistry.h" | 45 #include "core/frame/EventHandlerRegistry.h" |
45 #include "core/frame/FrameView.h" | 46 #include "core/frame/FrameView.h" |
46 #include "core/frame/LocalFrame.h" | 47 #include "core/frame/LocalFrame.h" |
47 #include "core/frame/Settings.h" | 48 #include "core/frame/Settings.h" |
48 #include "core/frame/VisualViewport.h" | 49 #include "core/frame/VisualViewport.h" |
49 #include "core/html/HTMLIFrameElement.h" | 50 #include "core/html/HTMLIFrameElement.h" |
50 #include "core/html/HTMLInputElement.h" | 51 #include "core/html/HTMLInputElement.h" |
51 #include "core/html/HTMLTextAreaElement.h" | 52 #include "core/html/HTMLTextAreaElement.h" |
52 #include "core/layout/api/LayoutViewItem.h" | 53 #include "core/layout/api/LayoutViewItem.h" |
53 #include "core/loader/DocumentLoader.h" | 54 #include "core/loader/DocumentLoader.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 #include "public/web/WebViewClient.h" | 100 #include "public/web/WebViewClient.h" |
100 #include "public/web/WebWidget.h" | 101 #include "public/web/WebWidget.h" |
101 #include "public/web/WebWidgetClient.h" | 102 #include "public/web/WebWidgetClient.h" |
102 #include "testing/gtest/include/gtest/gtest.h" | 103 #include "testing/gtest/include/gtest/gtest.h" |
103 #include "third_party/skia/include/core/SkBitmap.h" | 104 #include "third_party/skia/include/core/SkBitmap.h" |
104 #include "third_party/skia/include/core/SkCanvas.h" | 105 #include "third_party/skia/include/core/SkCanvas.h" |
105 #include "web/DevToolsEmulator.h" | 106 #include "web/DevToolsEmulator.h" |
106 #include "web/WebInputMethodControllerImpl.h" | 107 #include "web/WebInputMethodControllerImpl.h" |
107 #include "web/WebLocalFrameImpl.h" | 108 #include "web/WebLocalFrameImpl.h" |
108 #include "web/WebSettingsImpl.h" | 109 #include "web/WebSettingsImpl.h" |
109 #include "web/WebViewImpl.h" | |
110 #include "web/tests/FrameTestHelpers.h" | 110 #include "web/tests/FrameTestHelpers.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; |
(...skipping 4224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4344 EXPECT_FALSE(frame_view->VisualViewportSuppliesScrollbars()); | 4344 EXPECT_FALSE(frame_view->VisualViewportSuppliesScrollbars()); |
4345 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) { | 4345 if (RuntimeEnabledFeatures::rootLayerScrollingEnabled()) { |
4346 EXPECT_NE(nullptr, | 4346 EXPECT_NE(nullptr, |
4347 frame_view->LayoutViewportScrollableArea()->VerticalScrollbar()); | 4347 frame_view->LayoutViewportScrollableArea()->VerticalScrollbar()); |
4348 } else { | 4348 } else { |
4349 EXPECT_NE(nullptr, frame_view->VerticalScrollbar()); | 4349 EXPECT_NE(nullptr, frame_view->VerticalScrollbar()); |
4350 } | 4350 } |
4351 } | 4351 } |
4352 | 4352 |
4353 } // namespace blink | 4353 } // namespace blink |
OLD | NEW |