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

Side by Side Diff: content/shell/browser/shell_content_browser_client.cc

Issue 2132983002: Move content shell context menu to ShellWebContentsViewDelegate in Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cast_shell_linux compile error Created 4 years, 5 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
« no previous file with comments | « content/shell/browser/shell_aura.cc ('k') | content/shell/browser/shell_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/shell/browser/shell_content_browser_client.h" 5 #include "content/shell/browser/shell_content_browser_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base_switches.h" 10 #include "base/base_switches.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ResourceDispatcherHost::Get()->SetDelegate( 249 ResourceDispatcherHost::Get()->SetDelegate(
250 resource_dispatcher_host_delegate_.get()); 250 resource_dispatcher_host_delegate_.get());
251 } 251 }
252 252
253 std::string ShellContentBrowserClient::GetDefaultDownloadName() { 253 std::string ShellContentBrowserClient::GetDefaultDownloadName() {
254 return "download"; 254 return "download";
255 } 255 }
256 256
257 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( 257 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
258 WebContents* web_contents) { 258 WebContents* web_contents) {
259 #if !defined(USE_AURA)
260 return CreateShellWebContentsViewDelegate(web_contents); 259 return CreateShellWebContentsViewDelegate(web_contents);
261 #else
262 return NULL;
263 #endif
264 } 260 }
265 261
266 QuotaPermissionContext* 262 QuotaPermissionContext*
267 ShellContentBrowserClient::CreateQuotaPermissionContext() { 263 ShellContentBrowserClient::CreateQuotaPermissionContext() {
268 return new ShellQuotaPermissionContext(); 264 return new ShellQuotaPermissionContext();
269 } 265 }
270 266
271 void ShellContentBrowserClient::SelectClientCertificate( 267 void ShellContentBrowserClient::SelectClientCertificate(
272 WebContents* web_contents, 268 WebContents* web_contents,
273 net::SSLCertRequestInfo* cert_request_info, 269 net::SSLCertRequestInfo* cert_request_info,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 ShellBrowserContext* 364 ShellBrowserContext*
369 ShellContentBrowserClient::off_the_record_browser_context() { 365 ShellContentBrowserClient::off_the_record_browser_context() {
370 return shell_browser_main_parts_->off_the_record_browser_context(); 366 return shell_browser_main_parts_->off_the_record_browser_context();
371 } 367 }
372 368
373 GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() { 369 GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() {
374 return new ShellGeolocationDelegate(browser_context()); 370 return new ShellGeolocationDelegate(browser_context());
375 } 371 }
376 372
377 } // namespace content 373 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_aura.cc ('k') | content/shell/browser/shell_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698