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 5920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5931 void RenderViewImpl::cancelScheduledContentIntents() { | 5931 void RenderViewImpl::cancelScheduledContentIntents() { |
5932 ++expected_content_intent_id_; | 5932 ++expected_content_intent_id_; |
5933 } | 5933 } |
5934 | 5934 |
5935 void RenderViewImpl::LaunchAndroidContentIntent(const GURL& intent, | 5935 void RenderViewImpl::LaunchAndroidContentIntent(const GURL& intent, |
5936 size_t request_id) { | 5936 size_t request_id) { |
5937 if (request_id != expected_content_intent_id_) | 5937 if (request_id != expected_content_intent_id_) |
5938 return; | 5938 return; |
5939 | 5939 |
5940 // Remove the content highlighting if any. | 5940 // Remove the content highlighting if any. |
5941 ScheduleComposite(); | 5941 scheduleComposite(); |
5942 | 5942 |
5943 if (!intent.is_empty()) | 5943 if (!intent.is_empty()) |
5944 Send(new ViewHostMsg_StartContentIntent(routing_id_, intent)); | 5944 Send(new ViewHostMsg_StartContentIntent(routing_id_, intent)); |
5945 } | 5945 } |
5946 | 5946 |
5947 bool RenderViewImpl::openDateTimeChooser( | 5947 bool RenderViewImpl::openDateTimeChooser( |
5948 const blink::WebDateTimeChooserParams& params, | 5948 const blink::WebDateTimeChooserParams& params, |
5949 blink::WebDateTimeChooserCompletion* completion) { | 5949 blink::WebDateTimeChooserCompletion* completion) { |
5950 // JavaScript may try to open a date time chooser while one is already open. | 5950 // JavaScript may try to open a date time chooser while one is already open. |
5951 if (date_time_picker_client_) | 5951 if (date_time_picker_client_) |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6233 for (size_t i = 0; i < icon_urls.size(); i++) { | 6233 for (size_t i = 0; i < icon_urls.size(); i++) { |
6234 WebURL url = icon_urls[i].iconURL(); | 6234 WebURL url = icon_urls[i].iconURL(); |
6235 if (!url.isEmpty()) | 6235 if (!url.isEmpty()) |
6236 urls.push_back(FaviconURL(url, | 6236 urls.push_back(FaviconURL(url, |
6237 ToFaviconType(icon_urls[i].iconType()))); | 6237 ToFaviconType(icon_urls[i].iconType()))); |
6238 } | 6238 } |
6239 SendUpdateFaviconURL(urls); | 6239 SendUpdateFaviconURL(urls); |
6240 } | 6240 } |
6241 | 6241 |
6242 } // namespace content | 6242 } // namespace content |
OLD | NEW |