| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |