| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2011 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 ScriptValue hints(args[1]); | 279 ScriptValue hints(args[1]); |
| 280 host->inspectImpl(object.toInspectorValue(ScriptState::current()), hints.toI
nspectorValue(ScriptState::current())); | 280 host->inspectImpl(object.toInspectorValue(ScriptState::current()), hints.toI
nspectorValue(ScriptState::current())); |
| 281 | 281 |
| 282 return v8::Undefined(); | 282 return v8::Undefined(); |
| 283 } | 283 } |
| 284 | 284 |
| 285 v8::Handle<v8::Value> V8InjectedScriptHost::databaseIdMethodCustom(const v8::Arg
uments& args) | 285 v8::Handle<v8::Value> V8InjectedScriptHost::databaseIdMethodCustom(const v8::Arg
uments& args) |
| 286 { | 286 { |
| 287 if (args.Length() < 1) | 287 if (args.Length() < 1) |
| 288 return v8::Undefined(); | 288 return v8::Undefined(); |
| 289 #if ENABLE(SQL_DATABASE) | |
| 290 InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder()); | 289 InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder()); |
| 291 Database* database = V8Database::toNative(v8::Handle<v8::Object>::Cast(args[
0])); | 290 Database* database = V8Database::toNative(v8::Handle<v8::Object>::Cast(args[
0])); |
| 292 if (database) | 291 if (database) |
| 293 return v8StringOrUndefined(host->databaseIdImpl(database), args.GetIsola
te()); | 292 return v8StringOrUndefined(host->databaseIdImpl(database), args.GetIsola
te()); |
| 294 #endif | |
| 295 return v8::Undefined(); | 293 return v8::Undefined(); |
| 296 } | 294 } |
| 297 | 295 |
| 298 v8::Handle<v8::Value> V8InjectedScriptHost::storageIdMethodCustom(const v8::Argu
ments& args) | 296 v8::Handle<v8::Value> V8InjectedScriptHost::storageIdMethodCustom(const v8::Argu
ments& args) |
| 299 { | 297 { |
| 300 if (args.Length() < 1) | 298 if (args.Length() < 1) |
| 301 return v8::Undefined(); | 299 return v8::Undefined(); |
| 302 InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder()); | 300 InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder()); |
| 303 Storage* storage = V8Storage::toNative(v8::Handle<v8::Object>::Cast(args[0])
); | 301 Storage* storage = V8Storage::toNative(v8::Handle<v8::Object>::Cast(args[0])
); |
| 304 if (storage) | 302 if (storage) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 329 v8::Handle<v8::Value> newValue = args[3]; | 327 v8::Handle<v8::Value> newValue = args[3]; |
| 330 | 328 |
| 331 InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder()); | 329 InjectedScriptHost* host = V8InjectedScriptHost::toNative(args.Holder()); |
| 332 ScriptDebugServer& debugServer = host->scriptDebugServer(); | 330 ScriptDebugServer& debugServer = host->scriptDebugServer(); |
| 333 return debugServer.setFunctionVariableValue(functionValue, scopeIndex, varia
bleName, newValue); | 331 return debugServer.setFunctionVariableValue(functionValue, scopeIndex, varia
bleName, newValue); |
| 334 } | 332 } |
| 335 | 333 |
| 336 | 334 |
| 337 } // namespace WebCore | 335 } // namespace WebCore |
| 338 | 336 |
| OLD | NEW |