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

Side by Side Diff: content/browser/renderer_host/render_view_host.cc

Issue 9045007: Allow plugins to participate in Chrome context menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 using base::TimeDelta; 56 using base::TimeDelta;
57 using content::BrowserMessageFilter; 57 using content::BrowserMessageFilter;
58 using content::BrowserThread; 58 using content::BrowserThread;
59 using content::UserMetricsAction; 59 using content::UserMetricsAction;
60 using WebKit::WebConsoleMessage; 60 using WebKit::WebConsoleMessage;
61 using WebKit::WebDragOperation; 61 using WebKit::WebDragOperation;
62 using WebKit::WebDragOperationNone; 62 using WebKit::WebDragOperationNone;
63 using WebKit::WebDragOperationsMask; 63 using WebKit::WebDragOperationsMask;
64 using WebKit::WebInputEvent; 64 using WebKit::WebInputEvent;
65 using WebKit::WebMediaPlayerAction; 65 using WebKit::WebMediaPlayerAction;
66 using WebKit::WebPluginAction;
66 67
67 namespace { 68 namespace {
68 69
69 // Delay to wait on closing the tab for a beforeunload/unload handler to fire. 70 // Delay to wait on closing the tab for a beforeunload/unload handler to fire.
70 const int kUnloadTimeoutMS = 1000; 71 const int kUnloadTimeoutMS = 1000;
71 72
72 // Translate a WebKit text direction into a base::i18n one. 73 // Translate a WebKit text direction into a base::i18n one.
73 base::i18n::TextDirection WebTextDirectionToChromeTextDirection( 74 base::i18n::TextDirection WebTextDirectionToChromeTextDirection(
74 WebKit::WebTextDirection dir) { 75 WebKit::WebTextDirection dir) {
75 switch (dir) { 76 switch (dir) {
(...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 1378
1378 void RenderViewHost::CopyImageAt(int x, int y) { 1379 void RenderViewHost::CopyImageAt(int x, int y) {
1379 Send(new ViewMsg_CopyImageAt(routing_id(), x, y)); 1380 Send(new ViewMsg_CopyImageAt(routing_id(), x, y));
1380 } 1381 }
1381 1382
1382 void RenderViewHost::ExecuteMediaPlayerActionAtLocation( 1383 void RenderViewHost::ExecuteMediaPlayerActionAtLocation(
1383 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action) { 1384 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action) {
1384 Send(new ViewMsg_MediaPlayerActionAt(routing_id(), location, action)); 1385 Send(new ViewMsg_MediaPlayerActionAt(routing_id(), location, action));
1385 } 1386 }
1386 1387
1388 void RenderViewHost::ExecutePluginActionAtLocation(
1389 const gfx::Point& location, const WebKit::WebPluginAction& action) {
1390 Send(new ViewMsg_PluginActionAt(routing_id(), location, action));
1391 }
1392
1387 void RenderViewHost::DisassociateFromPopupCount() { 1393 void RenderViewHost::DisassociateFromPopupCount() {
1388 Send(new ViewMsg_DisassociateFromPopupCount(routing_id())); 1394 Send(new ViewMsg_DisassociateFromPopupCount(routing_id()));
1389 } 1395 }
1390 1396
1391 void RenderViewHost::NotifyMoveOrResizeStarted() { 1397 void RenderViewHost::NotifyMoveOrResizeStarted() {
1392 Send(new ViewMsg_MoveOrResizeStarted(routing_id())); 1398 Send(new ViewMsg_MoveOrResizeStarted(routing_id()));
1393 } 1399 }
1394 1400
1395 void RenderViewHost::StopFinding(content::StopFindAction action) { 1401 void RenderViewHost::StopFinding(content::StopFindAction action) {
1396 Send(new ViewMsg_StopFinding(routing_id(), action)); 1402 Send(new ViewMsg_StopFinding(routing_id(), action));
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 1538
1533 void RenderViewHost::OnWebUISend(const GURL& source_url, 1539 void RenderViewHost::OnWebUISend(const GURL& source_url,
1534 const std::string& name, 1540 const std::string& name,
1535 const base::ListValue& args) { 1541 const base::ListValue& args) {
1536 delegate_->WebUISend(this, source_url, name, args); 1542 delegate_->WebUISend(this, source_url, name, args);
1537 } 1543 }
1538 1544
1539 void RenderViewHost::ClearPowerSaveBlockers() { 1545 void RenderViewHost::ClearPowerSaveBlockers() {
1540 STLDeleteValues(&power_save_blockers_); 1546 STLDeleteValues(&power_save_blockers_);
1541 } 1547 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698