diff options
author | nfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 17:10:46 +0000 |
---|---|---|
committer | nfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 17:10:46 +0000 |
commit | fae0e947dd72d6499abcd4cc9d8a2c988802ecc7 (patch) | |
tree | 64894d705184fa15943381a1a083cd4a82e242a0 /ppapi/cpp/graphics_3d_client.h | |
parent | 29ee58a0ca74da203815ffc416e0b52cafb9c79e (diff) | |
download | chromium_src-fae0e947dd72d6499abcd4cc9d8a2c988802ecc7.zip chromium_src-fae0e947dd72d6499abcd4cc9d8a2c988802ecc7.tar.gz chromium_src-fae0e947dd72d6499abcd4cc9d8a2c988802ecc7.tar.bz2 |
reconstitute moving 3d out of dev CL. (previous attempt was reverted)
previous CL: http://codereview.chromium.org/7737013/
BUG= http://code.google.com/p/chromium/issues/detail?id=94320
TEST= try bots, manual testing
Review URL: http://codereview.chromium.org/7837018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99968 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/graphics_3d_client.h')
-rw-r--r-- | ppapi/cpp/graphics_3d_client.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ppapi/cpp/graphics_3d_client.h b/ppapi/cpp/graphics_3d_client.h new file mode 100644 index 0000000..511ca2d --- /dev/null +++ b/ppapi/cpp/graphics_3d_client.h @@ -0,0 +1,36 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ +#define PPAPI_CPP_GRAPHICS_3D_CLIENT_H_ + +#include "ppapi/c/pp_stdint.h" + +namespace pp { + +class Instance; +class Rect; +class Scrollbar_Dev; +class Widget_Dev; + +// This class provides a C++ interface for callbacks related to 3D. You +// would normally use multiple inheritance to derive from this class in your +// instance. +class Graphics3DClient { + public: + Graphics3DClient(Instance* instance); + virtual ~Graphics3DClient(); + + /** + * Notification that the context was lost for the 3D devices. + */ + virtual void Graphics3DContextLost() = 0; + + private: + Instance* associated_instance_; +}; + +} // namespace pp + +#endif // PPAPI_CPP_DEV_GRAPHICS_3D_CLIENT_H_ |