Chromium Code Reviews| 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 PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ | 5 #ifndef PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ |
| 6 #define PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ | 6 #define PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_stdint.h" | 8 #include "ppapi/c/pp_stdint.h" |
| 9 | 9 |
| 10 /// @file | 10 /// @file |
| 11 /// This file defines the API for callbacks related to 3D. | 11 /// This file defines the API for callbacks related to 3D. |
| 12 | 12 |
| 13 namespace pp { | 13 namespace pp { |
| 14 | 14 |
| 15 class Instance; | 15 class Instance; |
| 16 class Rect; | |
| 17 class Scrollbar_Dev; | 16 class Scrollbar_Dev; |
| 18 class Widget_Dev; | 17 class Widget_Dev; |
|
piman
2011/11/11 03:42:50
While you're here, those two should be removed as
| |
| 19 | 18 |
| 20 // This class provides a C++ interface for callbacks related to 3D. You | 19 // This class provides a C++ interface for callbacks related to 3D. You |
| 21 // would normally use multiple inheritance to derive from this class in your | 20 // would normally use multiple inheritance to derive from this class in your |
| 22 // instance. | 21 // instance. |
| 23 class Graphics3DClient { | 22 class Graphics3DClient { |
| 24 public: | 23 public: |
| 25 /// | 24 /// |
| 26 /// A constructor for creating a Graphics3DClient. | 25 /// A constructor for creating a Graphics3DClient. |
| 27 /// | 26 /// |
| 28 /// @param[in] instance The instance that will own the new | 27 /// @param[in] instance The instance that will own the new |
| 29 /// <code>Graphics3DClient</code>. | 28 /// <code>Graphics3DClient</code>. |
| 30 Graphics3DClient(Instance* instance); | 29 explicit Graphics3DClient(Instance* instance); |
| 31 | 30 |
| 32 /// Destructor. | 31 /// Destructor. |
| 33 virtual ~Graphics3DClient(); | 32 virtual ~Graphics3DClient(); |
| 34 | 33 |
| 35 /// Graphics3DContextLost() is a notification that the context was lost for | 34 /// Graphics3DContextLost() is a notification that the context was lost for |
| 36 /// the 3D devices. | 35 /// the 3D devices. |
| 37 virtual void Graphics3DContextLost() = 0; | 36 virtual void Graphics3DContextLost() = 0; |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 Instance* associated_instance_; | 39 Instance* associated_instance_; |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 } // namespace pp | 42 } // namespace pp |
| 44 | 43 |
| 45 #endif // PPAPI_CPP_DEV_GRAPHICS_3D_CLIENT_H_ | 44 #endif // PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ |
| OLD | NEW |