| 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& tooltipText, | 41 const String& tooltipText, |
| 42 TextDirection dir) override { | 42 TextDirection dir) override { |
| 43 mockSetToolTip(&frame, tooltipText, dir); | 43 mockSetToolTip(&frame, tooltipText, dir); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void scheduleAnimation(Widget*) override { m_hasScheduledAnimation = true; } | 46 void scheduleAnimation(FrameViewBase*) override { m_hasScheduledAnimation = tr
ue; } |
| 47 bool m_hasScheduledAnimation; | 47 bool m_hasScheduledAnimation; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 typedef bool TestParamRootLayerScrolling; | 50 typedef bool TestParamRootLayerScrolling; |
| 51 class FrameViewTest | 51 class FrameViewTest |
| 52 : public testing::WithParamInterface<TestParamRootLayerScrolling>, | 52 : public testing::WithParamInterface<TestParamRootLayerScrolling>, |
| 53 private ScopedRootLayerScrollingForTest, | 53 private ScopedRootLayerScrollingForTest, |
| 54 public testing::Test { | 54 public testing::Test { |
| 55 protected: | 55 protected: |
| 56 FrameViewTest() | 56 FrameViewTest() |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // And making it sticky again should put it back in that list. | 194 // And making it sticky again should put it back in that list. |
| 195 document().getElementById("sticky")->setAttribute(HTMLNames::styleAttr, ""); | 195 document().getElementById("sticky")->setAttribute(HTMLNames::styleAttr, ""); |
| 196 document().view()->updateAllLifecyclePhases(); | 196 document().view()->updateAllLifecyclePhases(); |
| 197 | 197 |
| 198 EXPECT_TRUE( | 198 EXPECT_TRUE( |
| 199 document().view()->viewportConstrainedObjects()->contains(sticky)); | 199 document().view()->viewportConstrainedObjects()->contains(sticky)); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace | 202 } // namespace |
| 203 } // namespace blink | 203 } // namespace blink |
| OLD | NEW |