| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void appendArgument(const ScriptObject&); | 47 void appendArgument(const ScriptObject&); |
| 48 void appendArgument(const ScriptValue&); | 48 void appendArgument(const ScriptValue&); |
| 49 void appendArgument(const String&); | 49 void appendArgument(const String&); |
| 50 void appendArgument(const char*); | 50 void appendArgument(const char*); |
| 51 void appendArgument(long); | 51 void appendArgument(long); |
| 52 void appendArgument(long long); | 52 void appendArgument(long long); |
| 53 void appendArgument(unsigned int); | 53 void appendArgument(unsigned int); |
| 54 void appendArgument(unsigned long); | 54 void appendArgument(unsigned long); |
| 55 void appendArgument(int); | 55 void appendArgument(int); |
| 56 void appendArgument(bool); | 56 void appendArgument(bool); |
| 57 void appendArgument(const Vector<ScriptValue>&); |
| 57 | 58 |
| 58 protected: | 59 protected: |
| 59 ScriptState* m_scriptState; | 60 ScriptState* m_scriptState; |
| 60 Vector<ScriptValue> m_arguments; | 61 Vector<ScriptValue> m_arguments; |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 class ScriptFunctionCall : public ScriptCallArgumentHandler { | 64 class ScriptFunctionCall : public ScriptCallArgumentHandler { |
| 64 public: | 65 public: |
| 65 ScriptFunctionCall(const ScriptObject& thisObject, const String& name); | 66 ScriptFunctionCall(const ScriptObject& thisObject, const String& name); |
| 66 ScriptValue call(bool& hadException, bool reportExceptions = true); | 67 ScriptValue call(bool& hadException, bool reportExceptions = true); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 79 ScriptValue call(); | 80 ScriptValue call(); |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 ScriptState* m_scriptState; | 83 ScriptState* m_scriptState; |
| 83 ScriptValue m_function; | 84 ScriptValue m_function; |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 } // namespace WebCore | 87 } // namespace WebCore |
| 87 | 88 |
| 88 #endif // ScriptFunctionCall | 89 #endif // ScriptFunctionCall |
| OLD | NEW |