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 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2116 void RenderViewImpl::hideValidationMessage() { | 2116 void RenderViewImpl::hideValidationMessage() { |
2117 Send(new ViewHostMsg_HideValidationMessage(routing_id())); | 2117 Send(new ViewHostMsg_HideValidationMessage(routing_id())); |
2118 } | 2118 } |
2119 | 2119 |
2120 void RenderViewImpl::moveValidationMessage( | 2120 void RenderViewImpl::moveValidationMessage( |
2121 const blink::WebRect& anchor_in_root_view) { | 2121 const blink::WebRect& anchor_in_root_view) { |
2122 Send(new ViewHostMsg_MoveValidationMessage(routing_id(), | 2122 Send(new ViewHostMsg_MoveValidationMessage(routing_id(), |
2123 anchor_in_root_view)); | 2123 anchor_in_root_view)); |
2124 } | 2124 } |
2125 | 2125 |
| 2126 #if !defined(CLEAR_CONTEXT_MENU_ON_WEB_FRAME_CLIENT) |
2126 void RenderViewImpl::clearContextMenu() { | 2127 void RenderViewImpl::clearContextMenu() { |
2127 context_menu_node_.reset(); | 2128 context_menu_node_.reset(); |
2128 } | 2129 } |
| 2130 #endif |
2129 | 2131 |
2130 void RenderViewImpl::setStatusText(const WebString& text) { | 2132 void RenderViewImpl::setStatusText(const WebString& text) { |
2131 } | 2133 } |
2132 | 2134 |
2133 void RenderViewImpl::UpdateTargetURL(const GURL& url, | 2135 void RenderViewImpl::UpdateTargetURL(const GURL& url, |
2134 const GURL& fallback_url) { | 2136 const GURL& fallback_url) { |
2135 GURL latest_url = url.is_empty() ? fallback_url : url; | 2137 GURL latest_url = url.is_empty() ? fallback_url : url; |
2136 if (latest_url == target_url_) | 2138 if (latest_url == target_url_) |
2137 return; | 2139 return; |
2138 | 2140 |
(...skipping 3063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5202 for (size_t i = 0; i < icon_urls.size(); i++) { | 5204 for (size_t i = 0; i < icon_urls.size(); i++) { |
5203 WebURL url = icon_urls[i].iconURL(); | 5205 WebURL url = icon_urls[i].iconURL(); |
5204 if (!url.isEmpty()) | 5206 if (!url.isEmpty()) |
5205 urls.push_back(FaviconURL(url, | 5207 urls.push_back(FaviconURL(url, |
5206 ToFaviconType(icon_urls[i].iconType()))); | 5208 ToFaviconType(icon_urls[i].iconType()))); |
5207 } | 5209 } |
5208 SendUpdateFaviconURL(urls); | 5210 SendUpdateFaviconURL(urls); |
5209 } | 5211 } |
5210 | 5212 |
5211 } // namespace content | 5213 } // namespace content |
OLD | NEW |