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

Unified Diff: webkit/glue/devtools/debugger_agent_impl.cc

Issue 149086: Use upstream V8Proxy and V8Utilities (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/devtools/bound_object.cc ('k') | webkit/glue/devtools/debugger_agent_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/debugger_agent_impl.cc
===================================================================
--- webkit/glue/devtools/debugger_agent_impl.cc (revision 19426)
+++ webkit/glue/devtools/debugger_agent_impl.cc (working copy)
@@ -10,15 +10,14 @@
#include "Document.h"
#include "Page.h"
+#include "V8Binding.h"
+#include "V8DOMWindow.h"
+#include "V8Index.h"
+#include "V8Proxy.h"
#undef LOG
#include "base/string_piece.h"
#include "grit/webkit_resources.h"
-#include "V8Binding.h"
-#include "V8DOMWindow.h"
-#include "V8Index.h"
-#include "v8_binding.h"
-#include "v8_proxy.h"
#include "webkit/glue/devtools/debugger_agent_impl.h"
#include "webkit/glue/devtools/debugger_agent_manager.h"
#include "webkit/glue/glue_util.h"
@@ -62,8 +61,8 @@
void DebuggerAgentImpl::StartProfiling() {
v8::HandleScope scope;
WebCore::V8Proxy* proxy = V8Proxy::retrieve(GetPage()->mainFrame());
- DCHECK(proxy && proxy->ContextInitialized());
- v8::Context::Scope context_scope(proxy->GetContext());
+ DCHECK(proxy && proxy->isContextInitialized());
+ v8::Context::Scope context_scope(proxy->context());
v8::V8::ResumeProfiler();
}
@@ -105,12 +104,12 @@
// TODO(pfeldman): Validate against Soeren.
// Set up the DOM window as the prototype of the new global object.
v8::Handle<v8::Context> window_context =
- V8Proxy::GetContext(document->frame());
+ V8Proxy::context(document->frame());
v8::Handle<v8::Object> window_global = window_context->Global();
v8::Handle<v8::Value> window_wrapper =
- V8Proxy::LookupDOMWrapper(V8ClassIndex::DOMWINDOW, window_global);
+ V8Proxy::lookupDOMWrapper(V8ClassIndex::DOMWINDOW, window_global);
- ASSERT(V8Proxy::DOMWrapperToNative<DOMWindow>(window_wrapper) ==
+ ASSERT(V8Proxy::convertDOMWrapperToNative<DOMWindow>(window_wrapper) ==
document->frame()->domWindow());
// Create a new environment using an empty template for the shadow
« no previous file with comments | « webkit/glue/devtools/bound_object.cc ('k') | webkit/glue/devtools/debugger_agent_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698