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

Side by Side Diff: Source/web/tests/ProgrammaticScrollTest.cpp

Issue 241303002: Rename WebFrameImpl to WebLocalFrameImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Mac too Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/PopupMenuTest.cpp ('k') | Source/web/tests/RenderTableCellTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "config.h" 1 #include "config.h"
2 2
3 #include <gtest/gtest.h> 3 #include <gtest/gtest.h>
4 #include "FrameTestHelpers.h" 4 #include "FrameTestHelpers.h"
5 #include "URLTestHelpers.h" 5 #include "URLTestHelpers.h"
6 #include "WebFrame.h" 6 #include "WebFrame.h"
7 #include "WebFrameClient.h" 7 #include "WebFrameClient.h"
8 #include "WebFrameImpl.h"
9 #include "WebHistoryItem.h" 8 #include "WebHistoryItem.h"
10 #include "WebInputEvent.h" 9 #include "WebInputEvent.h"
10 #include "WebLocalFrameImpl.h"
11 #include "WebScriptSource.h" 11 #include "WebScriptSource.h"
12 #include "WebSettings.h" 12 #include "WebSettings.h"
13 #include "WebView.h" 13 #include "WebView.h"
14 #include "WebViewImpl.h" 14 #include "WebViewImpl.h"
15 #include "core/frame/FrameView.h" 15 #include "core/frame/FrameView.h"
16 #include "core/rendering/RenderView.h" 16 #include "core/rendering/RenderView.h"
17 #include "public/platform/Platform.h" 17 #include "public/platform/Platform.h"
18 #include "public/platform/WebUnitTestSupport.h" 18 #include "public/platform/WebUnitTestSupport.h"
19 19
20 using namespace WebCore; 20 using namespace WebCore;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // FrameLoader::restoreScrollPositionAndViewState flows differently if scale is zero. 100 // FrameLoader::restoreScrollPositionAndViewState flows differently if scale is zero.
101 frame->loader().restoreScrollPositionAndViewState(); 101 frame->loader().restoreScrollPositionAndViewState();
102 102
103 // Expect that only the scroll position was restored, and that it was not a programmatic scroll. 103 // Expect that only the scroll position was restored, and that it was not a programmatic scroll.
104 EXPECT_EQ(3.0f, webViewImpl->pageScaleFactor()); 104 EXPECT_EQ(3.0f, webViewImpl->pageScaleFactor());
105 EXPECT_EQ(400, webViewImpl->mainFrameImpl()->scrollOffset().height); 105 EXPECT_EQ(400, webViewImpl->mainFrameImpl()->scrollOffset().height);
106 EXPECT_TRUE(frame->view()->wasScrolledByUser()); 106 EXPECT_TRUE(frame->view()->wasScrolledByUser());
107 } 107 }
108 108
109 } 109 }
OLDNEW
« no previous file with comments | « Source/web/tests/PopupMenuTest.cpp ('k') | Source/web/tests/RenderTableCellTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698