Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameViewTest.cpp

Issue 2721133003: Rename platform/Widget to platform/FrameViewBase in platform. (Closed)
Patch Set: Rename platform/Widget to platform/FrameViewBase in platform. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/FrameViewBase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/FrameViewBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698