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

Side by Side Diff: chrome/browser/render_view_host.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/render_view_host.h" 5 #include "chrome/browser/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 void RenderViewHost::DragTargetDrop( 374 void RenderViewHost::DragTargetDrop(
375 const gfx::Point& client_pt, const gfx::Point& screen_pt) { 375 const gfx::Point& client_pt, const gfx::Point& screen_pt) {
376 Send(new ViewMsg_DragTargetDrop(routing_id_, client_pt, screen_pt)); 376 Send(new ViewMsg_DragTargetDrop(routing_id_, client_pt, screen_pt));
377 } 377 }
378 378
379 void RenderViewHost::ReservePageIDRange(int size) { 379 void RenderViewHost::ReservePageIDRange(int size) {
380 Send(new ViewMsg_ReservePageIDRange(routing_id_, size)); 380 Send(new ViewMsg_ReservePageIDRange(routing_id_, size));
381 } 381 }
382 382
383 void RenderViewHost::ExecuteJavascriptInWebFrame( 383 void RenderViewHost::ExecuteJavascriptInWebFrame(
384 const std::wstring& frame_xpath, const std::wstring& jscript) { 384 const std::wstring& frame_xpath, const std::wstring& jscript,
385 Send(new ViewMsg_ScriptEvalRequest(routing_id_, frame_xpath, jscript)); 385 const std::wstring& source_url) {
386 Send(new ViewMsg_ScriptEvalRequest(routing_id_, frame_xpath, jscript,
387 source_url));
386 } 388 }
387 389
388 void RenderViewHost::AddMessageToConsole( 390 void RenderViewHost::AddMessageToConsole(
389 const std::wstring& frame_xpath, const std::wstring& msg, 391 const std::wstring& frame_xpath, const std::wstring& msg,
390 ConsoleMessageLevel level) { 392 ConsoleMessageLevel level) {
391 Send(new ViewMsg_AddMessageToConsole(routing_id_, frame_xpath, msg, level)); 393 Send(new ViewMsg_AddMessageToConsole(routing_id_, frame_xpath, msg, level));
392 } 394 }
393 395
394 void RenderViewHost::DebugCommand(const std::wstring& cmd) { 396 void RenderViewHost::DebugCommand(const std::wstring& cmd) {
395 Send(new ViewMsg_DebugCommand(routing_id_, cmd)); 397 Send(new ViewMsg_DebugCommand(routing_id_, cmd));
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 event_name, 1201 event_name,
1200 event_arg)); 1202 event_arg));
1201 } 1203 }
1202 #endif 1204 #endif
1203 1205
1204 void RenderViewHost::ForwardMessageFromExternalHost( 1206 void RenderViewHost::ForwardMessageFromExternalHost(
1205 const std::string& target, const std::string& message) { 1207 const std::string& target, const std::string& message) {
1206 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message)); 1208 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id_, target, message));
1207 } 1209 }
1208 1210
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698