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

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

Issue 638553002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Nits Created 6 years, 2 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 23 matching lines...) Expand all
34 #include "bindings/core/v8/ScriptState.h" 34 #include "bindings/core/v8/ScriptState.h"
35 #include "core/inspector/InjectedScriptModule.h" 35 #include "core/inspector/InjectedScriptModule.h"
36 #include "wtf/text/WTFString.h" 36 #include "wtf/text/WTFString.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class InjectedScriptManager; 40 class InjectedScriptManager;
41 class ScriptValue; 41 class ScriptValue;
42 42
43 43
44 class InjectedScriptCanvasModule FINAL : public InjectedScriptModule { 44 class InjectedScriptCanvasModule final : public InjectedScriptModule {
45 public: 45 public:
46 InjectedScriptCanvasModule(); 46 InjectedScriptCanvasModule();
47 47
48 virtual String source() const OVERRIDE; 48 virtual String source() const override;
49 49
50 static InjectedScriptCanvasModule moduleForState(InjectedScriptManager*, Scr iptState*); 50 static InjectedScriptCanvasModule moduleForState(InjectedScriptManager*, Scr iptState*);
51 51
52 ScriptValue wrapCanvas2DContext(const ScriptValue&); 52 ScriptValue wrapCanvas2DContext(const ScriptValue&);
53 ScriptValue wrapWebGLContext(const ScriptValue&); 53 ScriptValue wrapWebGLContext(const ScriptValue&);
54 void markFrameEnd(); 54 void markFrameEnd();
55 55
56 void captureFrame(ErrorString*, TypeBuilder::Canvas::TraceLogId*); 56 void captureFrame(ErrorString*, TypeBuilder::Canvas::TraceLogId*);
57 void startCapturing(ErrorString*, TypeBuilder::Canvas::TraceLogId*); 57 void startCapturing(ErrorString*, TypeBuilder::Canvas::TraceLogId*);
58 void stopCapturing(ErrorString*, const TypeBuilder::Canvas::TraceLogId&); 58 void stopCapturing(ErrorString*, const TypeBuilder::Canvas::TraceLogId&);
59 void dropTraceLog(ErrorString*, const TypeBuilder::Canvas::TraceLogId&); 59 void dropTraceLog(ErrorString*, const TypeBuilder::Canvas::TraceLogId&);
60 void traceLog(ErrorString*, const String&, const int*, const int*, RefPtr<Ty peBuilder::Canvas::TraceLog>*); 60 void traceLog(ErrorString*, const String&, const int*, const int*, RefPtr<Ty peBuilder::Canvas::TraceLog>*);
61 void replayTraceLog(ErrorString*, const TypeBuilder::Canvas::TraceLogId&, in t, RefPtr<TypeBuilder::Canvas::ResourceState>*, double*); 61 void replayTraceLog(ErrorString*, const TypeBuilder::Canvas::TraceLogId&, in t, RefPtr<TypeBuilder::Canvas::ResourceState>*, double*);
62 void resourceState(ErrorString*, const TypeBuilder::Canvas::TraceLogId&, con st TypeBuilder::Canvas::ResourceId&, RefPtr<TypeBuilder::Canvas::ResourceState>* ); 62 void resourceState(ErrorString*, const TypeBuilder::Canvas::TraceLogId&, con st TypeBuilder::Canvas::ResourceId&, RefPtr<TypeBuilder::Canvas::ResourceState>* );
63 void evaluateTraceLogCallArgument(ErrorString*, const TypeBuilder::Canvas::T raceLogId&, int, int, const String&, RefPtr<TypeBuilder::Runtime::RemoteObject>* , RefPtr<TypeBuilder::Canvas::ResourceState>*); 63 void evaluateTraceLogCallArgument(ErrorString*, const TypeBuilder::Canvas::T raceLogId&, int, int, const String&, RefPtr<TypeBuilder::Runtime::RemoteObject>* , RefPtr<TypeBuilder::Canvas::ResourceState>*);
64 64
65 private: 65 private:
66 ScriptValue callWrapContextFunction(const String&, const ScriptValue&); 66 ScriptValue callWrapContextFunction(const String&, const ScriptValue&);
67 void callStartCapturingFunction(const String&, ErrorString*, String*); 67 void callStartCapturingFunction(const String&, ErrorString*, String*);
68 void callVoidFunctionWithTraceLogIdArgument(const String&, ErrorString*, con st String&); 68 void callVoidFunctionWithTraceLogIdArgument(const String&, ErrorString*, con st String&);
69 }; 69 };
70 70
71 71
72 } // namespace blink 72 } // namespace blink
73 73
74 #endif // !defined(InjectedScriptCanvasModule_h) 74 #endif // !defined(InjectedScriptCanvasModule_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScript.h ('k') | Source/core/inspector/InspectorApplicationCacheAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698