| 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 PAPPI_TESTS_TEST_FULLSCREEN_H_ | 5 #ifndef PAPPI_TESTS_TEST_FULLSCREEN_H_ |
| 6 #define PAPPI_TESTS_TEST_FULLSCREEN_H_ | 6 #define PAPPI_TESTS_TEST_FULLSCREEN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ppapi/cpp/dev/fullscreen_dev.h" | 10 #include "ppapi/cpp/fullscreen.h" |
| 11 #include "ppapi/cpp/graphics_2d.h" | 11 #include "ppapi/cpp/graphics_2d.h" |
| 12 #include "ppapi/cpp/rect.h" | 12 #include "ppapi/cpp/rect.h" |
| 13 #include "ppapi/cpp/size.h" | 13 #include "ppapi/cpp/size.h" |
| 14 #include "ppapi/tests/test_case.h" | 14 #include "ppapi/tests/test_case.h" |
| 15 #include "ppapi/tests/test_utils.h" | 15 #include "ppapi/tests/test_utils.h" |
| 16 | 16 |
| 17 namespace pp { | 17 namespace pp { |
| 18 class InputEvent; | 18 class InputEvent; |
| 19 } // namespace pp | 19 } // namespace pp |
| 20 | 20 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 std::string TestGetScreenSize(); | 32 std::string TestGetScreenSize(); |
| 33 std::string TestNormalToFullscreenToNormal(); | 33 std::string TestNormalToFullscreenToNormal(); |
| 34 | 34 |
| 35 void FailFullscreenTest(const std::string& error); | 35 void FailFullscreenTest(const std::string& error); |
| 36 | 36 |
| 37 bool GotError(); | 37 bool GotError(); |
| 38 std::string Error(); | 38 std::string Error(); |
| 39 | 39 |
| 40 std::string error_; | 40 std::string error_; |
| 41 | 41 |
| 42 pp::Fullscreen_Dev screen_mode_; | 42 pp::Fullscreen screen_mode_; |
| 43 pp::Size screen_size_; | 43 pp::Size screen_size_; |
| 44 pp::Rect normal_position_; | 44 pp::Rect normal_position_; |
| 45 | 45 |
| 46 bool fullscreen_pending_; | 46 bool fullscreen_pending_; |
| 47 bool normal_pending_; | 47 bool normal_pending_; |
| 48 bool saw_first_fullscreen_didchangeview; | 48 bool saw_first_fullscreen_didchangeview; |
| 49 pp::Graphics2D graphics2d_fullscreen_; | 49 pp::Graphics2D graphics2d_fullscreen_; |
| 50 pp::Graphics2D graphics2d_normal_; | 50 pp::Graphics2D graphics2d_normal_; |
| 51 TestCompletionCallback set_fullscreen_true_callback_; | 51 TestCompletionCallback set_fullscreen_true_callback_; |
| 52 TestCompletionCallback fullscreen_callback_; | 52 TestCompletionCallback fullscreen_callback_; |
| 53 TestCompletionCallback normal_callback_; | 53 TestCompletionCallback normal_callback_; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 #endif // PAPPI_TESTS_TEST_FULLSCREEN_H_ | 56 #endif // PAPPI_TESTS_TEST_FULLSCREEN_H_ |
| OLD | NEW |