OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class WebGraphicsContext3D : public WebNonCopyable { | 43 class WebGraphicsContext3D : public WebNonCopyable { |
44 public: | 44 public: |
45 class WebGraphicsContextLostCallback { | 45 class WebGraphicsContextLostCallback { |
46 public: | 46 public: |
47 virtual void onContextLost() = 0; | 47 virtual void onContextLost() = 0; |
48 | 48 |
49 protected: | 49 protected: |
50 virtual ~WebGraphicsContextLostCallback() { } | 50 virtual ~WebGraphicsContextLostCallback() { } |
51 }; | 51 }; |
52 | 52 |
53 class WebGraphicsErrorMessageCallback { | |
54 public: | |
55 virtual void onErrorMessage(const WebString&, int) = 0; | |
56 | |
57 protected: | |
58 virtual ~WebGraphicsErrorMessageCallback() { } | |
59 }; | |
60 | |
61 // This destructor needs to be public so that using classes can destroy inst
ances if initialization fails. | 53 // This destructor needs to be public so that using classes can destroy inst
ances if initialization fails. |
62 virtual ~WebGraphicsContext3D() { } | 54 virtual ~WebGraphicsContext3D() { } |
63 | |
64 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } | |
65 }; | 55 }; |
66 | 56 |
67 } // namespace blink | 57 } // namespace blink |
68 | 58 |
69 #endif | 59 #endif |
OLD | NEW |