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

Side by Side Diff: bindings/js/ScriptObject.h

Issue 542055: DevTools: injected script per context(WebCore part) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 10 years, 11 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 | « bindings/js/ScriptController.cpp ('k') | bindings/js/ScriptValue.h » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 29 matching lines...) Expand all
40 namespace WebCore { 40 namespace WebCore {
41 class InjectedScriptHost; 41 class InjectedScriptHost;
42 class InspectorBackend; 42 class InspectorBackend;
43 class InspectorFrontendHost; 43 class InspectorFrontendHost;
44 44
45 class ScriptObject : public ScriptValue { 45 class ScriptObject : public ScriptValue {
46 public: 46 public:
47 ScriptObject(ScriptState*, JSC::JSObject*); 47 ScriptObject(ScriptState*, JSC::JSObject*);
48 ScriptObject() {} 48 ScriptObject() {}
49 JSC::JSObject* jsObject() const { return asObject(jsValue()); } 49 JSC::JSObject* jsObject() const { return asObject(jsValue()); }
50 ScriptState* scriptState() const { return m_scriptState; }
50 51
51 bool set(const String& name, const String&); 52 bool set(const String& name, const String&);
52 bool set(const char* name, const ScriptObject&); 53 bool set(const char* name, const ScriptObject&);
53 bool set(const char* name, const String&); 54 bool set(const char* name, const String&);
54 bool set(const char* name, double); 55 bool set(const char* name, double);
55 bool set(const char* name, long); 56 bool set(const char* name, long);
56 bool set(const char* name, long long); 57 bool set(const char* name, long long);
57 bool set(const char* name, int); 58 bool set(const char* name, int);
58 bool set(const char* name, unsigned); 59 bool set(const char* name, unsigned);
59 bool set(const char* name, unsigned long); 60 bool set(const char* name, unsigned long);
(...skipping 15 matching lines...) Expand all
75 #endif 76 #endif
76 static bool get(ScriptState*, const char* name, ScriptObject&); 77 static bool get(ScriptState*, const char* name, ScriptObject&);
77 static bool remove(ScriptState*, const char* name); 78 static bool remove(ScriptState*, const char* name);
78 private: 79 private:
79 ScriptGlobalObject() { } 80 ScriptGlobalObject() { }
80 }; 81 };
81 82
82 } 83 }
83 84
84 #endif // ScriptObject_h 85 #endif // ScriptObject_h
OLDNEW
« no previous file with comments | « bindings/js/ScriptController.cpp ('k') | bindings/js/ScriptValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698