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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 2089933002: Context Menu Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 6 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
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/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 void WebContentsDelegate::CanDownload( 81 void WebContentsDelegate::CanDownload(
82 const GURL& url, 82 const GURL& url,
83 const std::string& request_method, 83 const std::string& request_method,
84 const base::Callback<void(bool)>& callback) { 84 const base::Callback<void(bool)>& callback) {
85 callback.Run(true); 85 callback.Run(true);
86 } 86 }
87 87
88 bool WebContentsDelegate::HandleContextMenu( 88 bool WebContentsDelegate::HandleContextMenu(
89 RenderFrameHost* render_frame_host,
89 const content::ContextMenuParams& params) { 90 const content::ContextMenuParams& params) {
90 return false; 91 return false;
91 } 92 }
92 93
93 void WebContentsDelegate::ViewSourceForTab(WebContents* source, 94 void WebContentsDelegate::ViewSourceForTab(WebContents* source,
94 const GURL& page_url) { 95 const GURL& page_url) {
95 // Fall back implementation based entirely on the view-source scheme. 96 // Fall back implementation based entirely on the view-source scheme.
96 // It suffers from http://crbug.com/523 and that is why browser overrides 97 // It suffers from http://crbug.com/523 and that is why browser overrides
97 // it with proper implementation. 98 // it with proper implementation.
98 GURL url = GURL(kViewSourceScheme + std::string(":") + page_url.spec()); 99 GURL url = GURL(kViewSourceScheme + std::string(":") + page_url.spec());
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void WebContentsDelegate::ShowCertificateViewerInDevTools( 256 void WebContentsDelegate::ShowCertificateViewerInDevTools(
256 WebContents* web_contents, 257 WebContents* web_contents,
257 int cert_id) { 258 int cert_id) {
258 } 259 }
259 260
260 void WebContentsDelegate::RequestAppBannerFromDevTools( 261 void WebContentsDelegate::RequestAppBannerFromDevTools(
261 content::WebContents* web_contents) { 262 content::WebContents* web_contents) {
262 } 263 }
263 264
264 } // namespace content 265 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698