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

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

Issue 12321005: Enable touch based selection and editing for webpages behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor) 988 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor)
989 IPC_MESSAGE_HANDLER(DragHostMsg_TargetDrop_ACK, OnTargetDropACK) 989 IPC_MESSAGE_HANDLER(DragHostMsg_TargetDrop_ACK, OnTargetDropACK)
990 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) 990 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus)
991 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnFocusedNodeChanged) 991 IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnFocusedNodeChanged)
992 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) 992 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole)
993 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnShouldCloseACK) 993 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnShouldCloseACK)
994 IPC_MESSAGE_HANDLER(ViewHostMsg_ClosePage_ACK, OnClosePageACK) 994 IPC_MESSAGE_HANDLER(ViewHostMsg_ClosePage_ACK, OnClosePageACK)
995 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnSelectionChanged) 995 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnSelectionChanged)
996 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, 996 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged,
997 OnSelectionBoundsChanged) 997 OnSelectionBoundsChanged)
998 IPC_MESSAGE_HANDLER(ViewHostMsg_TouchEditingHandlesVisibilityChanged,
999 OnTouchEditingHandlesVisibilityChanged)
998 IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse) 1000 IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse)
999 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) 1001 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL)
1000 IPC_MESSAGE_HANDLER(ViewHostMsg_MediaNotification, OnMediaNotification) 1002 IPC_MESSAGE_HANDLER(ViewHostMsg_MediaNotification, OnMediaNotification)
1001 IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowSnapshot, OnGetWindowSnapshot) 1003 IPC_MESSAGE_HANDLER(ViewHostMsg_GetWindowSnapshot, OnGetWindowSnapshot)
1002 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission, 1004 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission,
1003 OnRequestDesktopNotificationPermission) 1005 OnRequestDesktopNotificationPermission)
1004 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Show, 1006 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Show,
1005 OnShowDesktopNotification) 1007 OnShowDesktopNotification)
1006 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Cancel, 1008 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_Cancel,
1007 OnCancelDesktopNotification) 1009 OnCancelDesktopNotification)
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 view_->SelectionChanged(text, offset, range); 1407 view_->SelectionChanged(text, offset, range);
1406 } 1408 }
1407 1409
1408 void RenderViewHostImpl::OnSelectionBoundsChanged( 1410 void RenderViewHostImpl::OnSelectionBoundsChanged(
1409 const ViewHostMsg_SelectionBounds_Params& params) { 1411 const ViewHostMsg_SelectionBounds_Params& params) {
1410 if (view_) { 1412 if (view_) {
1411 view_->SelectionBoundsChanged(params); 1413 view_->SelectionBoundsChanged(params);
1412 } 1414 }
1413 } 1415 }
1414 1416
1417 void RenderViewHostImpl::OnTouchEditingHandlesVisibilityChanged(bool visible) {
1418 if (view_) {
1419 view_->TouchEditingHandlesVisibilityChanged(visible);
1420 }
1421 }
1422
1415 void RenderViewHostImpl::OnRouteCloseEvent() { 1423 void RenderViewHostImpl::OnRouteCloseEvent() {
1416 // Have the delegate route this to the active RenderViewHost. 1424 // Have the delegate route this to the active RenderViewHost.
1417 delegate_->RouteCloseEvent(this); 1425 delegate_->RouteCloseEvent(this);
1418 } 1426 }
1419 1427
1420 void RenderViewHostImpl::OnRouteMessageEvent( 1428 void RenderViewHostImpl::OnRouteMessageEvent(
1421 const ViewMsg_PostMessage_Params& params) { 1429 const ViewMsg_PostMessage_Params& params) {
1422 // Give to the delegate to route to the active RenderViewHost. 1430 // Give to the delegate to route to the active RenderViewHost.
1423 delegate_->RouteMessageEvent(this, params); 1431 delegate_->RouteMessageEvent(this, params);
1424 } 1432 }
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 GetRoutingID(), snapshot_id, snapshot_size, png)); 2063 GetRoutingID(), snapshot_id, snapshot_size, png));
2056 return; 2064 return;
2057 } 2065 }
2058 } 2066 }
2059 2067
2060 Send(new ViewMsg_WindowSnapshotCompleted( 2068 Send(new ViewMsg_WindowSnapshotCompleted(
2061 GetRoutingID(), snapshot_id, gfx::Size(), png)); 2069 GetRoutingID(), snapshot_id, gfx::Size(), png));
2062 } 2070 }
2063 2071
2064 } // namespace content 2072 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698