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

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

Issue 8002005: Removed sending of the following IPC messages from chrome and added API's on the RenderViewHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
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 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 } 1257 }
1258 1258
1259 void RenderViewHost::DisableScrollbarsForThreshold(const gfx::Size& size) { 1259 void RenderViewHost::DisableScrollbarsForThreshold(const gfx::Size& size) {
1260 Send(new ViewMsg_DisableScrollbarsForSmallWindows(routing_id(), size)); 1260 Send(new ViewMsg_DisableScrollbarsForSmallWindows(routing_id(), size));
1261 } 1261 }
1262 1262
1263 void RenderViewHost::EnablePreferredSizeMode(int flags) { 1263 void RenderViewHost::EnablePreferredSizeMode(int flags) {
1264 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id(), flags)); 1264 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id(), flags));
1265 } 1265 }
1266 1266
1267 void RenderViewHost::ExecuteCustomContextMenuCommand(
1268 int action, const webkit_glue::CustomContextMenuContext& context) {
1269 Send(new ViewMsg_CustomContextMenuAction(routing_id(), context, action));
1270 }
1271
1272 void RenderViewHost::NotifyContextMenuClosed(
1273 const webkit_glue::CustomContextMenuContext& context) {
1274 Send(new ViewMsg_ContextMenuClosed(routing_id(), context));
1275 }
1276
1277 void RenderViewHost::CopyImageAt(int x, int y) {
1278 Send(new ViewMsg_CopyImageAt(routing_id(), x, y));
1279 }
1280
1281 void RenderViewHost::ExecuteMediaPlayerActionAtLocation(
1282 const gfx::Point& location, const WebKit::WebMediaPlayerAction& action) {
1283 Send(new ViewMsg_MediaPlayerActionAt(routing_id(), location, action));
1284 }
1285
1286 void RenderViewHost::DisassociateFromPopupCount() {
1287 Send(new ViewMsg_DisassociateFromPopupCount(routing_id()));
1288 }
1289
1290 void RenderViewHost::NotifyMoveOrResizeStarted() {
1291 Send(new ViewMsg_MoveOrResizeStarted(routing_id()));
1292 }
1293
1294 void RenderViewHost::StopFinding(const ViewMsg_StopFinding_Params& params) {
1295 Send(new ViewMsg_StopFinding(routing_id(), params));
1296 }
1297
1267 void RenderViewHost::OnAccessibilityNotifications( 1298 void RenderViewHost::OnAccessibilityNotifications(
1268 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) { 1299 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params) {
1269 if (view() && !is_swapped_out_) 1300 if (view() && !is_swapped_out_)
1270 view()->OnAccessibilityNotifications(params); 1301 view()->OnAccessibilityNotifications(params);
1271 1302
1272 if (!params.empty()) { 1303 if (!params.empty()) {
1273 for (unsigned i = 0; i < params.size(); i++) { 1304 for (unsigned i = 0; i < params.size(); i++) {
1274 const ViewHostMsg_AccessibilityNotification_Params& param = params[i]; 1305 const ViewHostMsg_AccessibilityNotification_Params& param = params[i];
1275 1306
1276 if (param.notification_type == ViewHostMsg_AccEvent::LOAD_COMPLETE && 1307 if (param.notification_type == ViewHostMsg_AccEvent::LOAD_COMPLETE &&
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 const ViewHostMsg_RunFileChooser_Params& params) { 1403 const ViewHostMsg_RunFileChooser_Params& params) {
1373 delegate_->RunFileChooser(this, params); 1404 delegate_->RunFileChooser(this, params);
1374 } 1405 }
1375 1406
1376 void RenderViewHost::OnWebUISend(const GURL& source_url, 1407 void RenderViewHost::OnWebUISend(const GURL& source_url,
1377 const std::string& name, 1408 const std::string& name,
1378 const base::ListValue& args) { 1409 const base::ListValue& args) {
1379 delegate_->WebUISend(this, source_url, name, args); 1410 delegate_->WebUISend(this, source_url, name, args);
1380 } 1411 }
1381 1412
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698