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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptNative.cpp

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "platform/v8_inspector/InjectedScriptNative.h" 5 #include "platform/v8_inspector/InjectedScriptNative.h"
6 6
7 #include "platform/inspector_protocol/Values.h"
8
9 namespace blink { 7 namespace blink {
10 8
11 InjectedScriptNative::InjectedScriptNative(v8::Isolate* isolate) 9 InjectedScriptNative::InjectedScriptNative(v8::Isolate* isolate)
12 : m_lastBoundObjectId(1) 10 : m_lastBoundObjectId(1)
13 , m_isolate(isolate) 11 , m_isolate(isolate)
14 { 12 {
15 } 13 }
16 14
17 static const char privateKeyName[] = "v8-inspector#injectedScript"; 15 static const char privateKeyName[] = "v8-inspector#injectedScript";
18 16
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 String16 InjectedScriptNative::groupName(int objectId) const 83 String16 InjectedScriptNative::groupName(int objectId) const
86 { 84 {
87 if (objectId <= 0) 85 if (objectId <= 0)
88 return String16(); 86 return String16();
89 IdToObjectGroupName::const_iterator iterator = m_idToObjectGroupName.find(ob jectId); 87 IdToObjectGroupName::const_iterator iterator = m_idToObjectGroupName.find(ob jectId);
90 return iterator != m_idToObjectGroupName.end() ? iterator->second : String16 (); 88 return iterator != m_idToObjectGroupName.end() ? iterator->second : String16 ();
91 } 89 }
92 90
93 } // namespace blink 91 } // namespace blink
94 92
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698