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 <stdint.h> |
| 9 |
8 #include "ppapi/cpp/view.h" | 10 #include "ppapi/cpp/view.h" |
9 #include "ppapi/tests/test_case.h" | 11 #include "ppapi/tests/test_case.h" |
10 | 12 |
11 class TestView : public TestCase { | 13 class TestView : public TestCase { |
12 public: | 14 public: |
13 TestView(TestingInstance* instance); | 15 TestView(TestingInstance* instance); |
14 | 16 |
15 virtual void DidChangeView(const pp::View& view); | 17 virtual void DidChangeView(const pp::View& view); |
16 | 18 |
17 // TestCase implementation. | 19 // TestCase implementation. |
(...skipping 25 matching lines...) Expand all Loading... |
43 // invocation so tests can check it. | 45 // invocation so tests can check it. |
44 std::vector<bool> page_visibility_log_; | 46 std::vector<bool> page_visibility_log_; |
45 | 47 |
46 // Set to true to request that the next invocation of DidChangeView should | 48 // Set to true to request that the next invocation of DidChangeView should |
47 // post a quit to the message loop. DidChangeView will also reset the flag so | 49 // post a quit to the message loop. DidChangeView will also reset the flag so |
48 // this will only happen once. | 50 // this will only happen once. |
49 bool post_quit_on_view_changed_; | 51 bool post_quit_on_view_changed_; |
50 }; | 52 }; |
51 | 53 |
52 #endif // PPAPI_TEST_TEST_VIEW_H_ | 54 #endif // PPAPI_TEST_TEST_VIEW_H_ |
OLD | NEW |