Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(139)

Side by Side Diff: Source/WebCore/inspector/InjectedScriptCanvasModule.h

Issue 6495141: webkit 96917
Patch Set: Created 12 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
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 10 matching lines...) Expand all
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef InjectedScriptWebGLModule_h 31 #ifndef InjectedScriptCanvasModule_h
32 #define InjectedScriptWebGLModule_h 32 #define InjectedScriptCanvasModule_h
33 33
34 #include "InjectedScriptModule.h" 34 #include "InjectedScriptModule.h"
35 #include "ScriptState.h" 35 #include "ScriptState.h"
36 #include <wtf/text/WTFString.h> 36 #include <wtf/text/WTFString.h>
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class InjectedScriptManager; 40 class InjectedScriptManager;
41 class ScriptObject; 41 class ScriptObject;
42 42
43 #if ENABLE(INSPECTOR) && ENABLE(WEBGL) 43 #if ENABLE(INSPECTOR)
44 44
45 class InjectedScriptWebGLModule : public InjectedScriptModule { 45 class InjectedScriptCanvasModule : public InjectedScriptModule {
46 public: 46 public:
47 InjectedScriptWebGLModule(); 47 InjectedScriptCanvasModule();
48 ···· 48 ····
49 virtual String source() const; 49 virtual String source() const;
50 50
51 static InjectedScriptWebGLModule moduleForState(InjectedScriptManager*, Scri ptState*); 51 static InjectedScriptCanvasModule moduleForState(InjectedScriptManager*, Scr iptState*);
52 52
53 #if ENABLE(WEBGL)
53 ScriptObject wrapWebGLContext(const ScriptObject& glContext); 54 ScriptObject wrapWebGLContext(const ScriptObject& glContext);
55 #endif
56
54 void captureFrame(ErrorString*, String*); 57 void captureFrame(ErrorString*, String*);
55 void dropTraceLog(ErrorString*, const String&); 58 void dropTraceLog(ErrorString*, const String&);
56 void traceLog(ErrorString*, const String&, RefPtr<TypeBuilder::WebGL::TraceL og>*); 59 void traceLog(ErrorString*, const String&, RefPtr<TypeBuilder::Canvas::Trace Log>*);
57 void replayTraceLog(ErrorString*, const String&, int, String*); 60 void replayTraceLog(ErrorString*, const String&, int, String*);
58 }; 61 };
59 62
60 #endif 63 #endif
61 64
62 } // namespace WebCore 65 } // namespace WebCore
63 66
64 #endif 67 #endif // !defined(InjectedScriptCanvasModule_h)
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/CodeGeneratorInspector.py ('k') | Source/WebCore/inspector/InjectedScriptCanvasModule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b