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.
5 #include "athena/extensions/shell/athena_shell_app_delegate.h"
7 #include "content/public/browser/web_contents.h"
8 #include "extensions/shell/browser/media_capture_util.h"
12 AthenaShellAppDelegate::AthenaShellAppDelegate() {
15 AthenaShellAppDelegate::~AthenaShellAppDelegate() {
18 void AthenaShellAppDelegate::InitWebContents(
19 content::WebContents
* web_contents
) {
20 // TODO(oshima): Enable Favicon, Printing, e c. See
21 // athena_chrome_app_delegate.cc.
25 content::ColorChooser
* AthenaShellAppDelegate::ShowColorChooser(
26 content::WebContents
* web_contents
,
27 SkColor initial_color
) {
32 void AthenaShellAppDelegate::RunFileChooser(
33 content::WebContents
* tab
,
34 const content::FileChooserParams
& params
) {
38 void 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
);
47 bool 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
);
56 void AthenaShellAppDelegate::SetWebContentsBlocked(
57 content::WebContents
* web_contents
,