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

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

Issue 23453011: [Android WebView] Disable disambiguation popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update TAP_MULTIPLE_TARGETS_STRATEGY_MAX Created 7 years, 3 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/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 6431 matching lines...) Expand 10 before | Expand all | Expand 10 after
6442 WebWidget::ForceSoftwareRenderingAndIgnoreGPUResidentContent); 6442 WebWidget::ForceSoftwareRenderingAndIgnoreGPUResidentContent);
6443 } 6443 }
6444 6444
6445 gfx::Rect physical_window_zoom_rect = gfx::ToEnclosingRect( 6445 gfx::Rect physical_window_zoom_rect = gfx::ToEnclosingRect(
6446 ClientRectToPhysicalWindowRect(gfx::RectF(zoom_rect))); 6446 ClientRectToPhysicalWindowRect(gfx::RectF(zoom_rect)));
6447 Send(new ViewHostMsg_ShowDisambiguationPopup(routing_id_, 6447 Send(new ViewHostMsg_ShowDisambiguationPopup(routing_id_,
6448 physical_window_zoom_rect, 6448 physical_window_zoom_rect,
6449 canvas_size, 6449 canvas_size,
6450 transport_dib->id())); 6450 transport_dib->id()));
6451 } else { 6451 } else {
6452 // multitarget_strategy == TAP_MULTIPLE_TARGETS_STRATEGY_NONE.
piman 2013/08/28 01:44:34 nit: this should be a switch()
boliu 2013/08/28 02:42:38 Doing this in a follow up https://codereview.chrom
joth 2013/08/28 03:03:03 by same token, we could revert this file altogethe
6452 return false; 6453 return false;
6453 } 6454 }
6454 6455
6455 return true; 6456 return true;
6456 } 6457 }
6457 #endif 6458 #endif
6458 6459
6459 unsigned RenderViewImpl::GetLocalSessionHistoryLengthForTesting() const { 6460 unsigned RenderViewImpl::GetLocalSessionHistoryLengthForTesting() const {
6460 return history_list_length_; 6461 return history_list_length_;
6461 } 6462 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
6531 for (size_t i = 0; i < icon_urls.size(); i++) { 6532 for (size_t i = 0; i < icon_urls.size(); i++) {
6532 WebURL url = icon_urls[i].iconURL(); 6533 WebURL url = icon_urls[i].iconURL();
6533 if (!url.isEmpty()) 6534 if (!url.isEmpty())
6534 urls.push_back(FaviconURL(url, 6535 urls.push_back(FaviconURL(url,
6535 ToFaviconType(icon_urls[i].iconType()))); 6536 ToFaviconType(icon_urls[i].iconType())));
6536 } 6537 }
6537 SendUpdateFaviconURL(urls); 6538 SendUpdateFaviconURL(urls);
6538 } 6539 }
6539 6540
6540 } // namespace content 6541 } // namespace content
OLDNEW
« android_webview/native/aw_contents.cc ('K') | « content/public/common/renderer_preferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698