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 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 void DebuggerAgentImpl::GetNextLogLines() { | 78 void DebuggerAgentImpl::GetNextLogLines() { |
79 static char buffer[65536]; | 79 static char buffer[65536]; |
80 int read_size = v8::V8::GetLogLines( | 80 int read_size = v8::V8::GetLogLines( |
81 profiler_log_position_, buffer, sizeof(buffer) - 1); | 81 profiler_log_position_, buffer, sizeof(buffer) - 1); |
82 profiler_log_position_ += read_size; | 82 profiler_log_position_ += read_size; |
83 buffer[read_size] = '\0'; | 83 buffer[read_size] = '\0'; |
84 delegate_->DidGetNextLogLines(buffer); | 84 delegate_->DidGetNextLogLines(buffer); |
85 } | 85 } |
86 | 86 |
87 void DebuggerAgentImpl::DebuggerOutput(const std::string& command) { | 87 void DebuggerAgentImpl::DebuggerOutput(const String& command) { |
88 delegate_->DebuggerOutput(command); | 88 delegate_->DebuggerOutput(command); |
89 webdevtools_agent_->ForceRepaint(); | 89 webdevtools_agent_->ForceRepaint(); |
90 } | 90 } |
91 | 91 |
92 // static | 92 // static |
93 void DebuggerAgentImpl::CreateUtilityContext( | 93 void DebuggerAgentImpl::CreateUtilityContext( |
94 Frame* frame, | 94 Frame* frame, |
95 v8::Persistent<v8::Context>* context) { | 95 v8::Persistent<v8::Context>* context) { |
96 v8::HandleScope scope; | 96 v8::HandleScope scope; |
97 | 97 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 ASSERT(function->IsFunction()); | 205 ASSERT(function->IsFunction()); |
206 v8::Handle<v8::Value> args[] = { | 206 v8::Handle<v8::Value> args[] = { |
207 v8::Local<v8::Value>() | 207 v8::Local<v8::Value>() |
208 }; | 208 }; |
209 v8::Handle<v8::Function>::Cast(function)->Call(context->Global(), 0, args); | 209 v8::Handle<v8::Function>::Cast(function)->Call(context->Global(), 0, args); |
210 } | 210 } |
211 | 211 |
212 WebCore::Page* DebuggerAgentImpl::GetPage() { | 212 WebCore::Page* DebuggerAgentImpl::GetPage() { |
213 return web_view_impl_->page(); | 213 return web_view_impl_->page(); |
214 } | 214 } |
OLD | NEW |