| OLD | NEW |
| 1 // Copyright 2008, Google Inc. | 1 // Copyright 2008, Google Inc. |
| 2 // All rights reserved. | 2 // 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // Tell the proxy that document.domain is set. | 230 // Tell the proxy that document.domain is set. |
| 231 static void setDomain(Frame* target, const String& newDomain); | 231 static void setDomain(Frame* target, const String& newDomain); |
| 232 | 232 |
| 233 // Pass command-line flags to the JS engine | 233 // Pass command-line flags to the JS engine |
| 234 static void setFlags(const char* str, int length); | 234 static void setFlags(const char* str, int length); |
| 235 | 235 |
| 236 // Protect and unprotect the JS wrapper from garbage collected. | 236 // Protect and unprotect the JS wrapper from garbage collected. |
| 237 static void gcProtectJSWrapper(void* object); | 237 static void gcProtectJSWrapper(void* object); |
| 238 static void gcUnprotectJSWrapper(void* object); | 238 static void gcUnprotectJSWrapper(void* object); |
| 239 | 239 |
| 240 // Returns a non-exception code object. | |
| 241 static JSException NoException(); | |
| 242 // Returns true if the parameter is a JS exception object. | |
| 243 static bool IsException(JSException); | |
| 244 | |
| 245 // Get/Set RecordPlaybackMode flag. | 240 // Get/Set RecordPlaybackMode flag. |
| 246 // This is a special mode where JS helps the browser implement | 241 // This is a special mode where JS helps the browser implement |
| 247 // playback/record mode. Generally, in this mode, some functions | 242 // playback/record mode. Generally, in this mode, some functions |
| 248 // of client-side randomness are removed. For example, in | 243 // of client-side randomness are removed. For example, in |
| 249 // this mode Math.random() and Date.getTime() may not return | 244 // this mode Math.random() and Date.getTime() may not return |
| 250 // values which vary. | 245 // values which vary. |
| 251 static bool RecordPlaybackMode() { return m_recordPlaybackMode; } | 246 static bool RecordPlaybackMode() { return m_recordPlaybackMode; } |
| 252 static void setRecordPlaybackMode(bool value) { m_recordPlaybackMode = value
; } | 247 static void setRecordPlaybackMode(bool value) { m_recordPlaybackMode = value
; } |
| 253 | 248 |
| 254 void finishedWithEvent(Event*); | 249 void finishedWithEvent(Event*); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 JSInstanceHolder& operator=(JSInstance); | 317 JSInstanceHolder& operator=(JSInstance); |
| 323 static JSInstance EmptyInstance(); | 318 static JSInstance EmptyInstance(); |
| 324 | 319 |
| 325 private: | 320 private: |
| 326 JSPersistentInstance m_instance; | 321 JSPersistentInstance m_instance; |
| 327 }; | 322 }; |
| 328 | 323 |
| 329 } // namespace WebCore | 324 } // namespace WebCore |
| 330 | 325 |
| 331 #endif // ScriptController_h | 326 #endif // ScriptController_h |
| OLD | NEW |