Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: third_party/WebKit/public/platform/WebGraphicsContext3D.h

Issue 1882503002: Remove setErrorMessageCallback from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@errorcallback
Patch Set: weberrors: owned Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698