Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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. | |
|
jamesr
2013/08/28 00:10:42
why not make this explicit with a switch?
boliu
2013/08/28 00:20:44
Purely for my fear of merge conflicts that this pa
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |