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 "core/frame/FrameView.h" | 5 #include "core/frame/FrameView.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "core/frame/Settings.h" | 10 #include "core/frame/Settings.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // ChromeClient | 36 // ChromeClient |
37 MOCK_METHOD2(AttachRootGraphicsLayer, | 37 MOCK_METHOD2(AttachRootGraphicsLayer, |
38 void(GraphicsLayer*, LocalFrame* localRoot)); | 38 void(GraphicsLayer*, LocalFrame* localRoot)); |
39 MOCK_METHOD3(MockSetToolTip, void(LocalFrame*, const String&, TextDirection)); | 39 MOCK_METHOD3(MockSetToolTip, void(LocalFrame*, const String&, TextDirection)); |
40 void SetToolTip(LocalFrame& frame, | 40 void SetToolTip(LocalFrame& frame, |
41 const String& tooltip_text, | 41 const String& tooltip_text, |
42 TextDirection dir) override { | 42 TextDirection dir) override { |
43 MockSetToolTip(&frame, tooltip_text, dir); | 43 MockSetToolTip(&frame, tooltip_text, dir); |
44 } | 44 } |
45 | 45 |
46 void ScheduleAnimation(LocalFrame*) override { | 46 void ScheduleAnimation(const PlatformLocalFrame*) override { |
47 has_scheduled_animation_ = true; | 47 has_scheduled_animation_ = true; |
48 } | 48 } |
49 bool has_scheduled_animation_; | 49 bool has_scheduled_animation_; |
50 }; | 50 }; |
51 | 51 |
52 typedef bool TestParamRootLayerScrolling; | 52 typedef bool TestParamRootLayerScrolling; |
53 class FrameViewTest | 53 class FrameViewTest |
54 : public testing::WithParamInterface<TestParamRootLayerScrolling>, | 54 : public testing::WithParamInterface<TestParamRootLayerScrolling>, |
55 private ScopedRootLayerScrollingForTest, | 55 private ScopedRootLayerScrollingForTest, |
56 public testing::Test { | 56 public testing::Test { |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 GetDocument().getElementById("sticky")->setAttribute(HTMLNames::styleAttr, | 201 GetDocument().getElementById("sticky")->setAttribute(HTMLNames::styleAttr, |
202 ""); | 202 ""); |
203 GetDocument().View()->UpdateAllLifecyclePhases(); | 203 GetDocument().View()->UpdateAllLifecyclePhases(); |
204 | 204 |
205 EXPECT_TRUE( | 205 EXPECT_TRUE( |
206 GetDocument().View()->ViewportConstrainedObjects()->Contains(sticky)); | 206 GetDocument().View()->ViewportConstrainedObjects()->Contains(sticky)); |
207 } | 207 } |
208 | 208 |
209 } // namespace | 209 } // namespace |
210 } // namespace blink | 210 } // namespace blink |
OLD | NEW |