Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Side by Side Diff: sky/engine/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp

Issue 771323002: Remove a couple more core/ header includes from v8_inspector (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 OwnPtr<v8::Handle<v8::Value>[]> argv = adoptArrayPtr(new v8::Handle<v8::Valu e>[argc]); 410 OwnPtr<v8::Handle<v8::Value>[]> argv = adoptArrayPtr(new v8::Handle<v8::Valu e>[argc]);
411 for (size_t i = 0; i < argc; ++i) 411 for (size_t i = 0; i < argc; ++i)
412 argv[i] = arguments->Get(i); 412 argv[i] = arguments->Get(i);
413 413
414 v8::Local<v8::Value> result = function->Call(receiver, argc, argv.get()); 414 v8::Local<v8::Value> result = function->Call(receiver, argc, argv.get());
415 v8SetReturnValue(info, result); 415 v8SetReturnValue(info, result);
416 } 416 }
417 417
418 void V8InjectedScriptHost::suppressWarningsAndCallFunctionMethodCustom(const v8: :FunctionCallbackInfo<v8::Value>& info) 418 void V8InjectedScriptHost::suppressWarningsAndCallFunctionMethodCustom(const v8: :FunctionCallbackInfo<v8::Value>& info)
419 { 419 {
420 InjectedScriptHost* host = V8InjectedScriptHost::toNative(info.Holder()); 420 // In sky we no longer have a fancy console with which to supress messages.
421 ScriptDebugServer& debugServer = host->scriptDebugServer();
422 debugServer.muteWarningsAndDeprecations();
423
424 callFunctionMethodCustom(info); 421 callFunctionMethodCustom(info);
425
426 debugServer.unmuteWarningsAndDeprecations();
427 } 422 }
428 423
429 } // namespace blink 424 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698