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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.h

Issue 1808533002: DevTools: wrap console evaluation with user gesture indicator for convenience. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void enable(ErrorString*) override; 62 void enable(ErrorString*) override;
63 void disable(ErrorString*) override; 63 void disable(ErrorString*) override;
64 void evaluate(ErrorString*, 64 void evaluate(ErrorString*,
65 const String16& expression, 65 const String16& expression,
66 const Maybe<String16>& objectGroup, 66 const Maybe<String16>& objectGroup,
67 const Maybe<bool>& includeCommandLineAPI, 67 const Maybe<bool>& includeCommandLineAPI,
68 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, 68 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole,
69 const Maybe<int>& executionContextId, 69 const Maybe<int>& executionContextId,
70 const Maybe<bool>& returnByValue, 70 const Maybe<bool>& returnByValue,
71 const Maybe<bool>& generatePreview, 71 const Maybe<bool>& generatePreview,
72 const Maybe<bool>& userGesture,
72 OwnPtr<protocol::Runtime::RemoteObject>* result, 73 OwnPtr<protocol::Runtime::RemoteObject>* result,
73 Maybe<bool>* wasThrown, 74 Maybe<bool>* wasThrown,
74 Maybe<protocol::Runtime::ExceptionDetails>*) override; 75 Maybe<protocol::Runtime::ExceptionDetails>*) override;
75 void callFunctionOn(ErrorString*, 76 void callFunctionOn(ErrorString*,
76 const String16& objectId, 77 const String16& objectId,
77 const String16& expression, 78 const String16& expression,
78 const Maybe<protocol::Array<protocol::Runtime::CallArgument>>& optionalA rguments, 79 const Maybe<protocol::Array<protocol::Runtime::CallArgument>>& optionalA rguments,
79 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, 80 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole,
80 const Maybe<bool>& returnByValue, 81 const Maybe<bool>& returnByValue,
81 const Maybe<bool>& generatePreview, 82 const Maybe<bool>& generatePreview,
83 const Maybe<bool>& userGesture,
82 OwnPtr<protocol::Runtime::RemoteObject>* result, 84 OwnPtr<protocol::Runtime::RemoteObject>* result,
83 Maybe<bool>* wasThrown) override; 85 Maybe<bool>* wasThrown) override;
84 void releaseObject(ErrorString*, const String16& objectId) override; 86 void releaseObject(ErrorString*, const String16& objectId) override;
85 void getProperties(ErrorString*, 87 void getProperties(ErrorString*,
86 const String16& objectId, 88 const String16& objectId,
87 const Maybe<bool>& ownProperties, 89 const Maybe<bool>& ownProperties,
88 const Maybe<bool>& accessorPropertiesOnly, 90 const Maybe<bool>& accessorPropertiesOnly,
89 const Maybe<bool>& generatePreview, 91 const Maybe<bool>& generatePreview,
90 OwnPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result, 92 OwnPtr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* result,
91 Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* i nternalProperties, 93 Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* i nternalProperties,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 protocol::Frontend::Runtime* m_frontend; 136 protocol::Frontend::Runtime* m_frontend;
135 OwnPtr<InjectedScriptManager> m_injectedScriptManager; 137 OwnPtr<InjectedScriptManager> m_injectedScriptManager;
136 V8DebuggerImpl* m_debugger; 138 V8DebuggerImpl* m_debugger;
137 bool m_enabled; 139 bool m_enabled;
138 protocol::HashMap<String16, OwnPtr<v8::Global<v8::Script>>> m_compiledScript s; 140 protocol::HashMap<String16, OwnPtr<v8::Global<v8::Script>>> m_compiledScript s;
139 }; 141 };
140 142
141 } // namespace blink 143 } // namespace blink
142 144
143 #endif // V8RuntimeAgentImpl_h 145 #endif // V8RuntimeAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698