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 3 // found in the LICENSE file. 4 5 #ifndef PPAPI_TESTS_TEST_FLASH_FULLSCREEN_H_ 6 #define PPAPI_TESTS_TEST_FLASH_FULLSCREEN_H_ 7 8 #include <string> 9 10 #include "ppapi/cpp/private/flash_fullscreen.h" 11 #include "ppapi/cpp/size.h" 12 #include "ppapi/tests/test_case.h" 13 #include "ppapi/tests/test_utils.h" 14 15 namespace pp { 16 class Rect; 17 } // namespace pp 18 19 class TestFlashFullscreen : public TestCase { 20 public: 21 explicit TestFlashFullscreen(TestingInstance* instance); 22 23 // TestCase implementation. 24 virtual bool Init(); 25 virtual void RunTests(const std::string& filter); 26 virtual void DidChangeView(const pp::View& view); 27 28 private: 29 std::string TestGetScreenSize(); 30 std::string TestNormalToFullscreenToNormal(); 31 32 pp::FlashFullscreen screen_mode_; 33 pp::Size screen_size_; 34 35 bool fullscreen_pending_; 36 bool normal_pending_; 37 NestedEvent fullscreen_event_; 38 NestedEvent normal_event_; 39 }; 40 41 #endif // PPAPI_TESTS_TEST_FLASH_FULLSCREEN_H_ 42