| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CPP_DEV_FULLSCREEN_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_FULLSCREEN_DEV_H_ |
| 6 #define PPAPI_CPP_DEV_FULLSCREEN_DEV_H_ | 6 #define PPAPI_CPP_DEV_FULLSCREEN_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/cpp/instance_handle.h" |
| 9 |
| 8 namespace pp { | 10 namespace pp { |
| 9 | 11 |
| 10 class Instance; | |
| 11 class Size; | 12 class Size; |
| 12 | 13 |
| 13 class Fullscreen_Dev { | 14 class Fullscreen_Dev { |
| 14 public: | 15 public: |
| 15 Fullscreen_Dev(Instance* instance); | 16 Fullscreen_Dev(const InstanceHandle& instance); |
| 16 virtual ~Fullscreen_Dev(); | 17 virtual ~Fullscreen_Dev(); |
| 17 | 18 |
| 18 // PPB_Fullscreen_Dev methods. | 19 // PPB_Fullscreen_Dev methods. |
| 19 bool IsFullscreen(); | 20 bool IsFullscreen(); |
| 20 bool SetFullscreen(bool fullscreen); | 21 bool SetFullscreen(bool fullscreen); |
| 21 bool GetScreenSize(Size* size); | 22 bool GetScreenSize(Size* size); |
| 22 | 23 |
| 23 private: | 24 private: |
| 24 Instance* instance_; | 25 InstanceHandle instance_; |
| 25 }; | 26 }; |
| 26 | 27 |
| 27 } // namespace pp | 28 } // namespace pp |
| 28 | 29 |
| 29 #endif // PPAPI_CPP_DEV_FULLSCREEN_DEV_H_ | 30 #endif // PPAPI_CPP_DEV_FULLSCREEN_DEV_H_ |
| OLD | NEW |