OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "web/PageOverlay.h" | 5 #include "web/PageOverlay.h" |
6 | 6 |
7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
8 #include "core/layout/LayoutView.h" | |
9 #include "platform/graphics/Color.h" | 8 #include "platform/graphics/Color.h" |
10 #include "platform/graphics/GraphicsContext.h" | 9 #include "platform/graphics/GraphicsContext.h" |
11 #include "platform/graphics/paint/DrawingRecorder.h" | 10 #include "platform/graphics/paint/DrawingRecorder.h" |
12 #include "platform/graphics/paint/PaintController.h" | 11 #include "platform/graphics/paint/PaintController.h" |
13 #include "public/platform/Platform.h" | 12 #include "public/platform/Platform.h" |
14 #include "public/platform/WebCanvas.h" | 13 #include "public/platform/WebCanvas.h" |
15 #include "public/platform/WebThread.h" | 14 #include "public/platform/WebThread.h" |
16 #include "public/web/WebSettings.h" | 15 #include "public/web/WebSettings.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 { | 142 { |
144 initialize(AcceleratedCompositing); | 143 initialize(AcceleratedCompositing); |
145 OwnPtr<PageOverlay> pageOverlay = createSolidYellowOverlay(); | 144 OwnPtr<PageOverlay> pageOverlay = createSolidYellowOverlay(); |
146 pageOverlay->update(); | 145 pageOverlay->update(); |
147 webViewImpl()->updateAllLifecyclePhases(); | 146 webViewImpl()->updateAllLifecyclePhases(); |
148 EXPECT_EQ(LayoutRect(0, 0, viewportWidth, viewportHeight), pageOverlay->visu
alRect()); | 147 EXPECT_EQ(LayoutRect(0, 0, viewportWidth, viewportHeight), pageOverlay->visu
alRect()); |
149 } | 148 } |
150 | 149 |
151 } // namespace | 150 } // namespace |
152 } // namespace blink | 151 } // namespace blink |
OLD | NEW |