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

Side by Side Diff: ppapi/tests/test_view.h

Issue 329033003: Add GetScrollOffset function to PPB_View (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « ppapi/shared_impl/ppb_view_shared.cc ('k') | ppapi/tests/test_view.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef PPAPI_TEST_TEST_VIEW_H_ 5 #ifndef PPAPI_TEST_TEST_VIEW_H_
6 #define PPAPI_TEST_TEST_VIEW_H_ 6 #define PPAPI_TEST_TEST_VIEW_H_
7 7
8 #include "ppapi/cpp/view.h" 8 #include "ppapi/cpp/view.h"
9 #include "ppapi/tests/test_case.h" 9 #include "ppapi/tests/test_case.h"
10 10
(...skipping 17 matching lines...) Expand all
28 // Returns true if we got a view changed, false if it timed out. 28 // Returns true if we got a view changed, false if it timed out.
29 bool WaitUntilViewChanged(); 29 bool WaitUntilViewChanged();
30 30
31 void QuitMessageLoop(int32_t result); 31 void QuitMessageLoop(int32_t result);
32 32
33 std::string TestCreatedVisible(); 33 std::string TestCreatedVisible();
34 std::string TestCreatedInvisible(); 34 std::string TestCreatedInvisible();
35 std::string TestPageHideShow(); 35 std::string TestPageHideShow();
36 std::string TestSizeChange(); 36 std::string TestSizeChange();
37 std::string TestClipChange(); 37 std::string TestClipChange();
38 std::string TestScrollOffsetChange();
38 39
39 pp::View last_view_; 40 pp::View last_view_;
40 41
41 // DidChangeView stores the page visibility in this vector on each 42 // DidChangeView stores the page visibility in this vector on each
42 // invocation so tests can check it. 43 // invocation so tests can check it.
43 std::vector<bool> page_visibility_log_; 44 std::vector<bool> page_visibility_log_;
44 45
45 // Set to true to request that the next invocation of DidChangeView should 46 // Set to true to request that the next invocation of DidChangeView should
46 // post a quit to the message loop. DidChangeView will also reset the flag so 47 // post a quit to the message loop. DidChangeView will also reset the flag so
47 // this will only happen once. 48 // this will only happen once.
48 bool post_quit_on_view_changed_; 49 bool post_quit_on_view_changed_;
49 }; 50 };
50 51
51 #endif // PPAPI_TEST_TEST_VIEW_H_ 52 #endif // PPAPI_TEST_TEST_VIEW_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_view_shared.cc ('k') | ppapi/tests/test_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698