| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TESTS_TEST_GRAPHICS_2D_H_ | 5 #ifndef PPAPI_TESTS_TEST_GRAPHICS_2D_H_ |
| 6 #define PPAPI_TESTS_TEST_GRAPHICS_2D_H_ | 6 #define PPAPI_TESTS_TEST_GRAPHICS_2D_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 std::string TestPaint(); | 97 std::string TestPaint(); |
| 98 std::string TestScroll(); | 98 std::string TestScroll(); |
| 99 std::string TestReplace(); | 99 std::string TestReplace(); |
| 100 std::string TestFlush(); | 100 std::string TestFlush(); |
| 101 std::string TestFlushOffscreenUpdate(); | 101 std::string TestFlushOffscreenUpdate(); |
| 102 std::string TestDev(); | 102 std::string TestDev(); |
| 103 std::string TestReplaceContentsCaching(); | 103 std::string TestReplaceContentsCaching(); |
| 104 std::string TestBindNull(); | 104 std::string TestBindNull(); |
| 105 | 105 |
| 106 // Used by the tests that access the C API directly. | 106 // Used by the tests that access the C API directly. |
| 107 const PPB_Graphics2D_1_1* graphics_2d_interface_; | 107 const PPB_Graphics2D_1_2* graphics_2d_interface_; |
| 108 const PPB_ImageData_1_0* image_data_interface_; | 108 const PPB_ImageData_1_0* image_data_interface_; |
| 109 | 109 |
| 110 // Used to indicate that DidChangeView has happened, in order to make plugin | 110 // Used to indicate that DidChangeView has happened, in order to make plugin |
| 111 // and ui synchronous. | 111 // and ui synchronous. |
| 112 bool is_view_changed_; | 112 bool is_view_changed_; |
| 113 | 113 |
| 114 // Set to true to request that the next invocation of DidChangeView should | 114 // Set to true to request that the next invocation of DidChangeView should |
| 115 // post a quit to the message loop. DidChangeView will also reset the flag so | 115 // post a quit to the message loop. DidChangeView will also reset the flag so |
| 116 // this will only happen once. | 116 // this will only happen once. |
| 117 bool post_quit_on_view_changed_; | 117 bool post_quit_on_view_changed_; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 #endif // PPAPI_TESTS_TEST_GRAPHICS_2D_H_ | 120 #endif // PPAPI_TESTS_TEST_GRAPHICS_2D_H_ |
| OLD | NEW |