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

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

Issue 177923011: Chromium side of moving clearContextMenu from WebViewClient to WebFrameClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« content/renderer/render_view_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