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

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

Issue 369333002: DevTools: Added error message when the command is invoked from the console with exception (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add-evaluate-exception-details
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/inspector/InjectedScript.cpp ('k') | Source/core/inspector/InjectedScriptBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 protected: 59 protected:
60 typedef bool (*InspectedStateAccessCheck)(ScriptState*); 60 typedef bool (*InspectedStateAccessCheck)(ScriptState*);
61 InjectedScriptBase(const String& name); 61 InjectedScriptBase(const String& name);
62 InjectedScriptBase(const String& name, ScriptValue, InspectedStateAccessChec k); 62 InjectedScriptBase(const String& name, ScriptValue, InspectedStateAccessChec k);
63 63
64 void initialize(ScriptValue, InspectedStateAccessCheck); 64 void initialize(ScriptValue, InspectedStateAccessCheck);
65 bool canAccessInspectedWindow() const; 65 bool canAccessInspectedWindow() const;
66 const ScriptValue& injectedScriptObject() const; 66 const ScriptValue& injectedScriptObject() const;
67 ScriptValue callFunctionWithEvalEnabled(ScriptFunctionCall&, bool& hadExcept ion) const; 67 ScriptValue callFunctionWithEvalEnabled(ScriptFunctionCall&, bool& hadExcept ion) const;
68 void makeCall(ScriptFunctionCall&, RefPtr<JSONValue>* result); 68 void makeCall(ScriptFunctionCall&, RefPtr<JSONValue>* result);
69 void makeEvalCall(ErrorString*, ScriptFunctionCall&, RefPtr<TypeBuilder::Run time::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown); 69 void makeEvalCall(ErrorString*, ScriptFunctionCall&, RefPtr<TypeBuilder::Run time::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown, RefPtr<Typ eBuilder::Debugger::ExceptionDetails>* = 0);
70 70
71 private: 71 private:
72 String m_name; 72 String m_name;
73 ScriptValue m_injectedScriptObject; 73 ScriptValue m_injectedScriptObject;
74 InspectedStateAccessCheck m_inspectedStateAccessCheck; 74 InspectedStateAccessCheck m_inspectedStateAccessCheck;
75 }; 75 };
76 76
77 77
78 } // namespace WebCore 78 } // namespace WebCore
79 79
80 #endif 80 #endif
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScript.cpp ('k') | Source/core/inspector/InjectedScriptBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698