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_FLASH_FULLSCREEN_H_ |
6 #define PAPPI_TESTS_TEST_FULLSCREEN_H_ | 6 #define PAPPI_TESTS_TEST_FLASH_FULLSCREEN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ppapi/cpp/dev/fullscreen_dev.h" | 10 #include "ppapi/cpp/private/flash_fullscreen.h" |
11 #include "ppapi/cpp/size.h" | 11 #include "ppapi/cpp/size.h" |
12 #include "ppapi/tests/test_case.h" | 12 #include "ppapi/tests/test_case.h" |
13 #include "ppapi/tests/test_utils.h" | 13 #include "ppapi/tests/test_utils.h" |
14 | 14 |
15 namespace pp { | 15 namespace pp { |
16 class Rect; | 16 class Rect; |
17 } // namespace pp | 17 } // namespace pp |
18 | 18 |
19 class TestFullscreen : public TestCase { | 19 class TestFlashFullscreen : public TestCase { |
20 public: | 20 public: |
21 explicit TestFullscreen(TestingInstance* instance); | 21 explicit TestFlashFullscreen(TestingInstance* instance); |
22 | 22 |
23 // TestCase implementation. | 23 // TestCase implementation. |
24 virtual bool Init(); | 24 virtual bool Init(); |
25 virtual void RunTest(); | 25 virtual void RunTest(); |
26 virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip); | 26 virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip); |
27 | 27 |
28 private: | 28 private: |
29 std::string TestGetScreenSize(); | 29 std::string TestGetScreenSize(); |
30 std::string TestNormalToFullscreenToNormal(); | 30 std::string TestNormalToFullscreenToNormal(); |
31 | 31 |
32 pp::Fullscreen_Dev screen_mode_; | 32 pp::FlashFullscreen screen_mode_; |
33 pp::Size screen_size_; | 33 pp::Size screen_size_; |
34 | 34 |
35 bool fullscreen_pending_; | 35 bool fullscreen_pending_; |
36 bool normal_pending_; | 36 bool normal_pending_; |
37 TestCompletionCallback fullscreen_callback_; | 37 TestCompletionCallback fullscreen_callback_; |
38 TestCompletionCallback normal_callback_; | 38 TestCompletionCallback normal_callback_; |
39 }; | 39 }; |
40 | 40 |
41 #endif // PAPPI_TESTS_TEST_FULLSCREEN_H_ | 41 #endif // PAPPI_TESTS_TEST_FLASH_FULLSCREEN_H_ |
OLD | NEW |