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

Side by Side Diff: chrome/browser/debugger/debugger_view.cc

Issue 6274: Greasemonkey support. (Closed)
Patch Set: Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/debugger/debugger_window.h" 5 #include "chrome/browser/debugger/debugger_window.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/json_writer.h" 9 #include "base/json_writer.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 void DebuggerView::OpenURLFromTab(TabContents* source, 130 void DebuggerView::OpenURLFromTab(TabContents* source,
131 const GURL& url, 131 const GURL& url,
132 WindowOpenDisposition disposition, 132 WindowOpenDisposition disposition,
133 PageTransition::Type transition) { 133 PageTransition::Type transition) {
134 BrowserList::GetLastActive()->OpenURL(url, disposition, transition); 134 BrowserList::GetLastActive()->OpenURL(url, disposition, transition);
135 } 135 }
136 136
137 void DebuggerView::ExecuteJavascript(const std::string& js) { 137 void DebuggerView::ExecuteJavascript(const std::string& js) {
138 const std::string url = StringPrintf("javascript:void(%s)", js.c_str()); 138 const std::string url = StringPrintf("javascript:void(%s)", js.c_str());
139 web_contents_->render_view_host()->ExecuteJavascriptInWebFrame(L"", 139 web_contents_->render_view_host()->ExecuteJavascriptInWebFrame(L"", UTF8ToWide (url), L"");
140 UTF8ToWide(url));
141 } 140 }
142 141
143 void DebuggerView::LoadingStateChanged(TabContents* source) { 142 void DebuggerView::LoadingStateChanged(TabContents* source) {
144 if (!source->is_loading()) 143 if (!source->is_loading())
145 SetOutputViewReady(); 144 SetOutputViewReady();
146 } 145 }
147 146
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698