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

Side by Side Diff: Source/WebCore/bindings/v8/custom/V8ConsoleCustom.cpp

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 v8::Handle<v8::Value> V8Console::assertMethodCustom(const v8::Arguments& args) 51 v8::Handle<v8::Value> V8Console::assertMethodCustom(const v8::Arguments& args)
52 { 52 {
53 Console* imp = V8Console::toNative(args.Holder()); 53 Console* imp = V8Console::toNative(args.Holder());
54 bool condition = args[0]->BooleanValue(); 54 bool condition = args[0]->BooleanValue();
55 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(args, 1)); 55 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(args, 1));
56 imp->assertCondition(ScriptState::current(), scriptArguments.release(), cond ition); 56 imp->assertCondition(ScriptState::current(), scriptArguments.release(), cond ition);
57 return v8Undefined(); 57 return v8Undefined();
58 } 58 }
59 59
60 #if ENABLE(JAVASCRIPT_DEBUGGER)
61 v8::Handle<v8::Value> V8Console::profileMethodCustom(const v8::Arguments& args) 60 v8::Handle<v8::Value> V8Console::profileMethodCustom(const v8::Arguments& args)
62 { 61 {
63 Console* imp = V8Console::toNative(args.Holder()); 62 Console* imp = V8Console::toNative(args.Holder());
64 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<WithUndefinedOrNullCheck>, title, args[0]); 63 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<WithUndefinedOrNullCheck>, title, args[0]);
65 imp->profile(title, ScriptState::current()); 64 imp->profile(title, ScriptState::current());
66 return v8Undefined(); 65 return v8Undefined();
67 } 66 }
68 67
69 v8::Handle<v8::Value> V8Console::profileEndMethodCustom(const v8::Arguments& arg s) 68 v8::Handle<v8::Value> V8Console::profileEndMethodCustom(const v8::Arguments& arg s)
70 { 69 {
71 Console* imp = V8Console::toNative(args.Holder()); 70 Console* imp = V8Console::toNative(args.Holder());
72 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<WithUndefinedOrNullCheck>, title, args[0]); 71 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<WithUndefinedOrNullCheck>, title, args[0]);
73 imp->profileEnd(title, ScriptState::current()); 72 imp->profileEnd(title, ScriptState::current());
74 return v8Undefined(); 73 return v8Undefined();
75 } 74 }
76 #endif
77 75
78 } // namespace WebCore 76 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698