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

Side by Side Diff: bindings/v8/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/ScriptValue.cpp ('k') | bindings/v8/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 30 matching lines...) Expand all
41 class InspectorFrontendHost; 41 class InspectorFrontendHost;
42 class ScriptState; 42 class ScriptState;
43 43
44 class ScriptObject : public ScriptValue { 44 class ScriptObject : public ScriptValue {
45 public: 45 public:
46 ScriptObject(ScriptState*, v8::Handle<v8::Object>); 46 ScriptObject(ScriptState*, v8::Handle<v8::Object>);
47 ScriptObject() {}; 47 ScriptObject() {};
48 virtual ~ScriptObject() {} 48 virtual ~ScriptObject() {}
49 49
50 v8::Local<v8::Object> v8Object() const; 50 v8::Local<v8::Object> v8Object() const;
51 ScriptState* scriptState() const { return m_scriptState; }
51 52
52 bool set(const String& name, const String&); 53 bool set(const String& name, const String&);
53 bool set(const char* name, const ScriptObject&); 54 bool set(const char* name, const ScriptObject&);
54 bool set(const char* name, const String&); 55 bool set(const char* name, const String&);
55 bool set(const char* name, double); 56 bool set(const char* name, double);
56 bool set(const char* name, long); 57 bool set(const char* name, long);
57 bool set(const char* name, long long); 58 bool set(const char* name, long long);
58 bool set(const char* name, int); 59 bool set(const char* name, int);
59 bool set(const char* name, unsigned); 60 bool set(const char* name, unsigned);
60 bool set(const char* name, unsigned long); 61 bool set(const char* name, unsigned long);
(...skipping 12 matching lines...) Expand all
73 static bool set(ScriptState*, const char* name, InjectedScriptHost*); 74 static bool set(ScriptState*, const char* name, InjectedScriptHost*);
74 static bool get(ScriptState*, const char* name, ScriptObject&); 75 static bool get(ScriptState*, const char* name, ScriptObject&);
75 static bool remove(ScriptState*, const char* name); 76 static bool remove(ScriptState*, const char* name);
76 private: 77 private:
77 ScriptGlobalObject() { } 78 ScriptGlobalObject() { }
78 }; 79 };
79 80
80 } 81 }
81 82
82 #endif // ScriptObject_h 83 #endif // ScriptObject_h
OLDNEW
« no previous file with comments | « bindings/js/ScriptValue.cpp ('k') | bindings/v8/ScriptValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698