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

Side by Side Diff: Source/core/inspector/InspectorOverlay.cpp

Issue 304353015: Remove unused Isolate* parameters from toV8Context() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 frame->setView(FrameView::create(frame.get())); 707 frame->setView(FrameView::create(frame.get()));
708 frame->init(); 708 frame->init();
709 FrameLoader& loader = frame->loader(); 709 FrameLoader& loader = frame->loader();
710 frame->view()->setCanHaveScrollbars(false); 710 frame->view()->setCanHaveScrollbars(false);
711 frame->view()->setTransparent(true); 711 frame->view()->setTransparent(true);
712 712
713 RefPtr<SharedBuffer> data = SharedBuffer::create(reinterpret_cast<const char *>(InspectorOverlayPage_html), sizeof(InspectorOverlayPage_html)); 713 RefPtr<SharedBuffer> data = SharedBuffer::create(reinterpret_cast<const char *>(InspectorOverlayPage_html), sizeof(InspectorOverlayPage_html));
714 loader.load(FrameLoadRequest(0, blankURL(), SubstituteData(data, "text/html" , "UTF-8", KURL(), ForceSynchronousLoad))); 714 loader.load(FrameLoadRequest(0, blankURL(), SubstituteData(data, "text/html" , "UTF-8", KURL(), ForceSynchronousLoad)));
715 v8::Isolate* isolate = toIsolate(frame.get()); 715 v8::Isolate* isolate = toIsolate(frame.get());
716 v8::HandleScope handleScope(isolate); 716 v8::HandleScope handleScope(isolate);
717 v8::Handle<v8::Context> frameContext = toV8Context(isolate, frame.get(), DOM WrapperWorld::mainWorld()); 717 v8::Handle<v8::Context> frameContext = toV8Context(frame.get(), DOMWrapperWo rld::mainWorld());
718 ASSERT(!frameContext.IsEmpty()); 718 ASSERT(!frameContext.IsEmpty());
719 v8::Context::Scope contextScope(frameContext); 719 v8::Context::Scope contextScope(frameContext);
720 v8::Handle<v8::Object> global = frameContext->Global(); 720 v8::Handle<v8::Object> global = frameContext->Global();
721 v8::Handle<v8::Value> overlayHostObj = toV8(m_overlayHost.get(), global, iso late); 721 v8::Handle<v8::Value> overlayHostObj = toV8(m_overlayHost.get(), global, iso late);
722 global->Set(v8::String::NewFromUtf8(isolate, "InspectorOverlayHost"), overla yHostObj); 722 global->Set(v8::String::NewFromUtf8(isolate, "InspectorOverlayHost"), overla yHostObj);
723 723
724 #if OS(WIN) 724 #if OS(WIN)
725 evaluateInOverlay("setPlatform", "windows"); 725 evaluateInOverlay("setPlatform", "windows");
726 #elif OS(MACOSX) 726 #elif OS(MACOSX)
727 evaluateInOverlay("setPlatform", "mac"); 727 evaluateInOverlay("setPlatform", "mac");
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 hideHighlight(); 787 hideHighlight();
788 } 788 }
789 789
790 void InspectorOverlay::startedRecordingProfile() 790 void InspectorOverlay::startedRecordingProfile()
791 { 791 {
792 if (!m_activeProfilerCount++) 792 if (!m_activeProfilerCount++)
793 freePage(); 793 freePage();
794 } 794 }
795 795
796 } // namespace WebCore 796 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8WindowCustom.cpp ('k') | Source/web/InspectorFrontendClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698