diff options
author | nfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 23:11:53 +0000 |
---|---|---|
committer | nfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 23:11:53 +0000 |
commit | d3a250fc8802f10bc22d9f04475867821fa45f57 (patch) | |
tree | 6bcdec51bd5fd7949882aa2f03da94f7a7def95a /ppapi/cpp/graphics_3d_client.h | |
parent | 5031ca3bb62745e1da95bffbf401db75df03115f (diff) | |
download | chromium_src-d3a250fc8802f10bc22d9f04475867821fa45f57.zip chromium_src-d3a250fc8802f10bc22d9f04475867821fa45f57.tar.gz chromium_src-d3a250fc8802f10bc22d9f04475867821fa45f57.tar.bz2 |
Move PPAPI graphics3d and opengles interfaces out of Dev.
BUG= http://code.google.com/p/chromium/issues/detail?id=94320
TEST= various nacl exmaples, try bots
Review URL: http://codereview.chromium.org/7737013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99855 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_ |