1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "athena/extensions/shell/athena_shell_app_delegate.h" 6 7#include "content/public/browser/web_contents.h" 8#include "extensions/shell/browser/media_capture_util.h" 9 10namespace athena { 11 12AthenaShellAppDelegate::AthenaShellAppDelegate() { 13} 14 15AthenaShellAppDelegate::~AthenaShellAppDelegate() { 16} 17 18void AthenaShellAppDelegate::InitWebContents( 19 content::WebContents* web_contents) { 20 // TODO(oshima): Enable Favicon, Printing, e c. See 21 // athena_chrome_app_delegate.cc. 22 NOTIMPLEMENTED(); 23} 24 25content::ColorChooser* AthenaShellAppDelegate::ShowColorChooser( 26 content::WebContents* web_contents, 27 SkColor initial_color) { 28 NOTIMPLEMENTED(); 29 return NULL; 30} 31 32void AthenaShellAppDelegate::RunFileChooser( 33 content::WebContents* tab, 34 const content::FileChooserParams& params) { 35 NOTIMPLEMENTED(); 36} 37 38void AthenaShellAppDelegate::RequestMediaAccessPermission( 39 content::WebContents* web_contents, 40 const content::MediaStreamRequest& request, 41 const content::MediaResponseCallback& callback, 42 const extensions::Extension* extension) { 43 extensions::media_capture_util::GrantMediaStreamRequest( 44 web_contents, request, callback, extension); 45} 46 47bool AthenaShellAppDelegate::CheckMediaAccessPermission( 48 content::WebContents* web_contents, 49 const GURL& security_origin, 50 content::MediaStreamType type, 51 const extensions::Extension* extension) { 52 extensions::media_capture_util::VerifyMediaAccessPermission(type, extension); 53 return true; 54} 55 56void AthenaShellAppDelegate::SetWebContentsBlocked( 57 content::WebContents* web_contents, 58 bool blocked) { 59 NOTIMPLEMENTED(); 60} 61} // namespace athena 62