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

Side by Side Diff: Source/bindings/modules/v8/ModuleBindingsInitializer.cpp

Issue 978233002: bindings,devtools: Shows DOM attributes' values in DevTools. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "bindings/modules/v8/ModuleBindingsInitializer.h" 6 #include "bindings/modules/v8/ModuleBindingsInitializer.h"
7 7
8 #include "bindings/core/v8/ModuleProxy.h" 8 #include "bindings/core/v8/ModuleProxy.h"
9 #include "bindings/core/v8/V8PerIsolateData.h" 9 #include "bindings/core/v8/V8PerIsolateData.h"
10 #include "bindings/modules/v8/SerializedScriptValueForModulesFactory.h" 10 #include "bindings/modules/v8/SerializedScriptValueForModulesFactory.h"
11 #include "bindings/modules/v8/V8Request.h"
12 #include "bindings/modules/v8/V8Response.h"
11 #include "core/dom/ExecutionContext.h" 13 #include "core/dom/ExecutionContext.h"
12 14
13 namespace blink { 15 namespace blink {
14 16
15 // initPartialInterfacesInModules is generated by 17 // initPartialInterfacesInModules is generated by
16 // generate_init_partial_interfaces.py. 18 // generate_init_partial_interfaces.py.
17 void initPartialInterfacesInModules(); 19 void initPartialInterfacesInModules();
18 20
19 void ModuleBindingsInitializer::init() 21 void ModuleBindingsInitializer::init()
20 { 22 {
21 initPartialInterfacesInModules(); 23 initPartialInterfacesInModules();
22 SerializedScriptValueFactory::initialize(new SerializedScriptValueForModules Factory); 24 SerializedScriptValueFactory::initialize(new SerializedScriptValueForModules Factory);
25
26 // Makes the Inspector not show (i.e. not evaluate) the following DOM attrib utes.
27 AttributesWithObservableSideEffectOnGet::add(&V8Request::wrapperTypeInfo, "b ody");
28 AttributesWithObservableSideEffectOnGet::add(&V8Response::wrapperTypeInfo, " body");
23 } 29 }
24 30
25 } // namespace blink 31 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698