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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 1080693002: Implementation of Smart GO NEXT feature in Android Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved overridden function to correct location in header. Created 5 years, 8 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) 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 #include "media/renderers/gpu_video_accelerator_factories.h" 106 #include "media/renderers/gpu_video_accelerator_factories.h"
107 #include "net/base/data_url.h" 107 #include "net/base/data_url.h"
108 #include "net/base/escape.h" 108 #include "net/base/escape.h"
109 #include "net/base/net_errors.h" 109 #include "net/base/net_errors.h"
110 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 110 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
111 #include "net/http/http_util.h" 111 #include "net/http/http_util.h"
112 #include "skia/ext/platform_canvas.h" 112 #include "skia/ext/platform_canvas.h"
113 #include "third_party/WebKit/public/platform/WebCString.h" 113 #include "third_party/WebKit/public/platform/WebCString.h"
114 #include "third_party/WebKit/public/platform/WebConnectionType.h" 114 #include "third_party/WebKit/public/platform/WebConnectionType.h"
115 #include "third_party/WebKit/public/platform/WebDragData.h" 115 #include "third_party/WebKit/public/platform/WebDragData.h"
116 #include "third_party/WebKit/public/platform/WebFocusType.h"
116 #include "third_party/WebKit/public/platform/WebHTTPBody.h" 117 #include "third_party/WebKit/public/platform/WebHTTPBody.h"
117 #include "third_party/WebKit/public/platform/WebImage.h" 118 #include "third_party/WebKit/public/platform/WebImage.h"
118 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 119 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
119 #include "third_party/WebKit/public/platform/WebPoint.h" 120 #include "third_party/WebKit/public/platform/WebPoint.h"
120 #include "third_party/WebKit/public/platform/WebRect.h" 121 #include "third_party/WebKit/public/platform/WebRect.h"
121 #include "third_party/WebKit/public/platform/WebSize.h" 122 #include "third_party/WebKit/public/platform/WebSize.h"
122 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" 123 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h"
123 #include "third_party/WebKit/public/platform/WebString.h" 124 #include "third_party/WebKit/public/platform/WebString.h"
124 #include "third_party/WebKit/public/platform/WebURL.h" 125 #include "third_party/WebKit/public/platform/WebURL.h"
125 #include "third_party/WebKit/public/platform/WebURLError.h" 126 #include "third_party/WebKit/public/platform/WebURLError.h"
(...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 return true; 1278 return true;
1278 1279
1279 bool handled = true; 1280 bool handled = true;
1280 IPC_BEGIN_MESSAGE_MAP(RenderViewImpl, message) 1281 IPC_BEGIN_MESSAGE_MAP(RenderViewImpl, message)
1281 IPC_MESSAGE_HANDLER(InputMsg_ExecuteEditCommand, OnExecuteEditCommand) 1282 IPC_MESSAGE_HANDLER(InputMsg_ExecuteEditCommand, OnExecuteEditCommand)
1282 IPC_MESSAGE_HANDLER(InputMsg_MoveCaret, OnMoveCaret) 1283 IPC_MESSAGE_HANDLER(InputMsg_MoveCaret, OnMoveCaret)
1283 IPC_MESSAGE_HANDLER(InputMsg_ScrollFocusedEditableNodeIntoRect, 1284 IPC_MESSAGE_HANDLER(InputMsg_ScrollFocusedEditableNodeIntoRect,
1284 OnScrollFocusedEditableNodeIntoRect) 1285 OnScrollFocusedEditableNodeIntoRect)
1285 IPC_MESSAGE_HANDLER(InputMsg_SetEditCommandsForNextKeyEvent, 1286 IPC_MESSAGE_HANDLER(InputMsg_SetEditCommandsForNextKeyEvent,
1286 OnSetEditCommandsForNextKeyEvent) 1287 OnSetEditCommandsForNextKeyEvent)
1288 IPC_MESSAGE_HANDLER(InputMsg_AdvanceFocusToNextFormControl,
1289 OnAdvanceFocusToNextFormControl)
1287 IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt) 1290 IPC_MESSAGE_HANDLER(ViewMsg_CopyImageAt, OnCopyImageAt)
1288 IPC_MESSAGE_HANDLER(ViewMsg_SaveImageAt, OnSaveImageAt) 1291 IPC_MESSAGE_HANDLER(ViewMsg_SaveImageAt, OnSaveImageAt)
1289 IPC_MESSAGE_HANDLER(ViewMsg_Find, OnFind) 1292 IPC_MESSAGE_HANDLER(ViewMsg_Find, OnFind)
1290 IPC_MESSAGE_HANDLER(ViewMsg_StopFinding, OnStopFinding) 1293 IPC_MESSAGE_HANDLER(ViewMsg_StopFinding, OnStopFinding)
1291 IPC_MESSAGE_HANDLER(ViewMsg_ResetPageScale, OnResetPageScale) 1294 IPC_MESSAGE_HANDLER(ViewMsg_ResetPageScale, OnResetPageScale)
1292 IPC_MESSAGE_HANDLER(ViewMsg_Zoom, OnZoom) 1295 IPC_MESSAGE_HANDLER(ViewMsg_Zoom, OnZoom)
1293 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForLoadingURL, 1296 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForLoadingURL,
1294 OnSetZoomLevelForLoadingURL) 1297 OnSetZoomLevelForLoadingURL)
1295 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForView, 1298 IPC_MESSAGE_HANDLER(ViewMsg_SetZoomLevelForView,
1296 OnSetZoomLevelForView) 1299 OnSetZoomLevelForView)
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 1441
1439 void RenderViewImpl::OnSetHistoryOffsetAndLength(int history_offset, 1442 void RenderViewImpl::OnSetHistoryOffsetAndLength(int history_offset,
1440 int history_length) { 1443 int history_length) {
1441 DCHECK_GE(history_offset, -1); 1444 DCHECK_GE(history_offset, -1);
1442 DCHECK_GE(history_length, 0); 1445 DCHECK_GE(history_length, 0);
1443 1446
1444 history_list_offset_ = history_offset; 1447 history_list_offset_ = history_offset;
1445 history_list_length_ = history_length; 1448 history_list_length_ = history_length;
1446 } 1449 }
1447 1450
1451 void RenderViewImpl::OnAdvanceFocusToNextFormControl(bool forward) {
1452 if (!webview())
1453 return;
1454
1455 blink::WebFocusType focusType = blink::WebFocusTypeForward;
1456 if (forward == false)
1457 focusType = blink::WebFocusTypeBackward;
Avi (use Gerrit) 2015/04/17 16:26:38 Two comments before discarding this entire block.
AKV 2015/04/17 16:40:37 Done. Thanks
1458 webview()->advanceFocusToNextFormControl(focusType);
1459 }
1460
1448 void RenderViewImpl::OnSetInitialFocus(bool reverse) { 1461 void RenderViewImpl::OnSetInitialFocus(bool reverse) {
1449 if (!webview()) 1462 if (!webview())
1450 return; 1463 return;
1451 webview()->setInitialFocus(reverse); 1464 webview()->setInitialFocus(reverse);
1452 } 1465 }
1453 1466
1454 #if defined(OS_MACOSX) 1467 #if defined(OS_MACOSX)
1455 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) { 1468 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) {
1456 if (!webview()) 1469 if (!webview())
1457 return; 1470 return;
(...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
3769 std::vector<gfx::Size> sizes; 3782 std::vector<gfx::Size> sizes;
3770 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 3783 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
3771 if (!url.isEmpty()) 3784 if (!url.isEmpty())
3772 urls.push_back( 3785 urls.push_back(
3773 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 3786 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
3774 } 3787 }
3775 SendUpdateFaviconURL(urls); 3788 SendUpdateFaviconURL(urls);
3776 } 3789 }
3777 3790
3778 } // namespace content 3791 } // namespace content
OLDNEW
« content/browser/web_contents/web_contents_impl.h ('K') | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698