OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |