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

Side by Side Diff: webkit/glue/devtools/debugger_agent_impl.cc

Issue 523103: WebKit DEPS roll 52852:52867 with canary compile fix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 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
« no previous file with comments | « DEPS ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 6
7 #include <wtf/HashSet.h> 7 #include <wtf/HashSet.h>
8 #include <wtf/RefPtr.h> 8 #include <wtf/RefPtr.h>
9 #include <wtf/Vector.h> 9 #include <wtf/Vector.h>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 // TODO(yurys): provide a function in v8 bindings that would make the 83 // TODO(yurys): provide a function in v8 bindings that would make the
84 // utility context more like main world context of the inspected frame, 84 // utility context more like main world context of the inspected frame,
85 // otherwise we need to manually make it satisfy various invariants 85 // otherwise we need to manually make it satisfy various invariants
86 // that V8Proxy::getEntered and some other V8Proxy methods expect to find 86 // that V8Proxy::getEntered and some other V8Proxy methods expect to find
87 // on v8 contexts on the contexts stack. 87 // on v8 contexts on the contexts stack.
88 // See V8Proxy::createNewContext. 88 // See V8Proxy::createNewContext.
89 // 89 //
90 // Install a security handler with V8. 90 // Install a security handler with V8.
91 global_template->SetAccessCheckCallbacks( 91 global_template->SetAccessCheckCallbacks(
92 V8Custom::v8DOMWindowNamedSecurityCheck, 92 V8DOMWindow::namedSecurityCheck,
93 V8Custom::v8DOMWindowIndexedSecurityCheck, 93 V8DOMWindow::indexedSecurityCheck,
94 v8::Integer::New(V8ClassIndex::DOMWINDOW)); 94 v8::Integer::New(V8ClassIndex::DOMWINDOW));
95 // We set number of internal fields to match that in V8DOMWindow wrapper. 95 // We set number of internal fields to match that in V8DOMWindow wrapper.
96 // See http://crbug.com/28961 96 // See http://crbug.com/28961
97 global_template->SetInternalFieldCount( 97 global_template->SetInternalFieldCount(
98 V8Custom::kDOMWindowInternalFieldCount); 98 V8Custom::kDOMWindowInternalFieldCount);
99 99
100 *context = v8::Context::New( 100 *context = v8::Context::New(
101 NULL /* no extensions */, 101 NULL /* no extensions */,
102 global_template, 102 global_template,
103 v8::Handle<v8::Object>()); 103 v8::Handle<v8::Object>());
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 ASSERT(function->IsFunction()); 182 ASSERT(function->IsFunction());
183 v8::Handle<v8::Value> args[] = { 183 v8::Handle<v8::Value> args[] = {
184 v8::Local<v8::Value>() 184 v8::Local<v8::Value>()
185 }; 185 };
186 v8::Handle<v8::Function>::Cast(function)->Call(context->Global(), 0, args); 186 v8::Handle<v8::Function>::Cast(function)->Call(context->Global(), 0, args);
187 } 187 }
188 188
189 WebCore::Page* DebuggerAgentImpl::GetPage() { 189 WebCore::Page* DebuggerAgentImpl::GetPage() {
190 return web_view_impl_->page(); 190 return web_view_impl_->page();
191 } 191 }
OLDNEW
« no previous file with comments | « DEPS ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698