Roll src/third_party/WebKit f007c95:0171005 (svn 185074:185088)
[chromium-blink-merge.git] / athena / extensions / shell / athena_shell_app_delegate.cc
blob28043011d9bbf7cf0457a573844711db6d4f69d2
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"
10 namespace athena {
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.
22 NOTIMPLEMENTED();
25 content::ColorChooser* AthenaShellAppDelegate::ShowColorChooser(
26 content::WebContents* web_contents,
27 SkColor initial_color) {
28 NOTIMPLEMENTED();
29 return nullptr;
32 void AthenaShellAppDelegate::RunFileChooser(
33 content::WebContents* tab,
34 const content::FileChooserParams& params) {
35 NOTIMPLEMENTED();
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);
53 return true;
56 void AthenaShellAppDelegate::SetWebContentsBlocked(
57 content::WebContents* web_contents,
58 bool blocked) {
59 NOTIMPLEMENTED();
61 } // namespace athena