| 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 30 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |