| OLD | NEW |
| 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 |
| 11 #include "Document.h" | 11 #include "Document.h" |
| 12 #include "Frame.h" |
| 12 #include "Page.h" | 13 #include "Page.h" |
| 13 #include "V8Binding.h" | 14 #include "V8Binding.h" |
| 14 #include "V8DOMWindow.h" | 15 #include "V8DOMWindow.h" |
| 15 #include "V8Index.h" | 16 #include "V8Index.h" |
| 16 #include "V8Proxy.h" | 17 #include "V8Proxy.h" |
| 17 #undef LOG | 18 #undef LOG |
| 18 | 19 |
| 19 #include "grit/webkit_resources.h" | 20 #include "grit/webkit_resources.h" |
| 21 #include "webkit/api/src/WebViewImpl.h" |
| 20 #include "webkit/glue/devtools/debugger_agent_impl.h" | 22 #include "webkit/glue/devtools/debugger_agent_impl.h" |
| 21 #include "webkit/glue/devtools/debugger_agent_manager.h" | 23 #include "webkit/glue/devtools/debugger_agent_manager.h" |
| 22 #include "webkit/glue/glue_util.h" | 24 #include "webkit/glue/glue_util.h" |
| 23 #include "webkit/glue/webdevtoolsagent_impl.h" | 25 #include "webkit/glue/webdevtoolsagent_impl.h" |
| 24 #include "webkit/glue/webkit_glue.h" | 26 #include "webkit/glue/webkit_glue.h" |
| 25 #include "webkit/glue/webview_impl.h" | |
| 26 | 27 |
| 27 using WebCore::DOMWindow; | 28 using WebCore::DOMWindow; |
| 28 using WebCore::Document; | 29 using WebCore::Document; |
| 29 using WebCore::Frame; | 30 using WebCore::Frame; |
| 30 using WebCore::Page; | 31 using WebCore::Page; |
| 31 using WebCore::String; | 32 using WebCore::String; |
| 32 using WebCore::V8ClassIndex; | 33 using WebCore::V8ClassIndex; |
| 33 using WebCore::V8Custom; | 34 using WebCore::V8Custom; |
| 34 using WebCore::V8DOMWindow; | 35 using WebCore::V8DOMWindow; |
| 35 using WebCore::V8DOMWrapper; | 36 using WebCore::V8DOMWrapper; |
| 36 using WebCore::V8Proxy; | 37 using WebCore::V8Proxy; |
| 38 using WebKit::WebViewImpl; |
| 37 | 39 |
| 38 DebuggerAgentImpl::DebuggerAgentImpl( | 40 DebuggerAgentImpl::DebuggerAgentImpl( |
| 39 WebViewImpl* web_view_impl, | 41 WebViewImpl* web_view_impl, |
| 40 DebuggerAgentDelegate* delegate, | 42 DebuggerAgentDelegate* delegate, |
| 41 WebDevToolsAgentImpl* webdevtools_agent) | 43 WebDevToolsAgentImpl* webdevtools_agent) |
| 42 : web_view_impl_(web_view_impl), | 44 : web_view_impl_(web_view_impl), |
| 43 delegate_(delegate), | 45 delegate_(delegate), |
| 44 webdevtools_agent_(webdevtools_agent), | 46 webdevtools_agent_(webdevtools_agent), |
| 45 profiler_log_position_(0) { | 47 profiler_log_position_(0) { |
| 46 DebuggerAgentManager::DebugAttach(this); | 48 DebuggerAgentManager::DebugAttach(this); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 ASSERT(function->IsFunction()); | 206 ASSERT(function->IsFunction()); |
| 205 v8::Handle<v8::Value> args[] = { | 207 v8::Handle<v8::Value> args[] = { |
| 206 v8::Local<v8::Value>() | 208 v8::Local<v8::Value>() |
| 207 }; | 209 }; |
| 208 v8::Handle<v8::Function>::Cast(function)->Call(context->Global(), 0, args); | 210 v8::Handle<v8::Function>::Cast(function)->Call(context->Global(), 0, args); |
| 209 } | 211 } |
| 210 | 212 |
| 211 WebCore::Page* DebuggerAgentImpl::GetPage() { | 213 WebCore::Page* DebuggerAgentImpl::GetPage() { |
| 212 return web_view_impl_->page(); | 214 return web_view_impl_->page(); |
| 213 } | 215 } |
| OLD | NEW |