| OLD | NEW |
| (Empty) |
| 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 #ifndef ATHENA_EXTENSIONS_SHELL_ATHENA_APP_DELEGATE_H_ | |
| 6 #define ATHENA_EXTENSIONS_SHELL_ATHENA_APP_DELEGATE_H_ | |
| 7 | |
| 8 #include "athena/extensions/athena_app_delegate_base.h" | |
| 9 | |
| 10 namespace athena { | |
| 11 | |
| 12 class AthenaShellAppDelegate : public AthenaAppDelegateBase { | |
| 13 public: | |
| 14 AthenaShellAppDelegate(); | |
| 15 ~AthenaShellAppDelegate() override; | |
| 16 | |
| 17 private: | |
| 18 // extensions::AppDelegate: | |
| 19 void InitWebContents(content::WebContents* web_contents) override; | |
| 20 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, | |
| 21 SkColor initial_color) override; | |
| 22 void RunFileChooser(content::WebContents* tab, | |
| 23 const content::FileChooserParams& params) override; | |
| 24 void RequestMediaAccessPermission( | |
| 25 content::WebContents* web_contents, | |
| 26 const content::MediaStreamRequest& request, | |
| 27 const content::MediaResponseCallback& callback, | |
| 28 const extensions::Extension* extension) override; | |
| 29 bool CheckMediaAccessPermission( | |
| 30 content::WebContents* web_contents, | |
| 31 const GURL& security_origin, | |
| 32 content::MediaStreamType type, | |
| 33 const extensions::Extension* extension) override; | |
| 34 void SetWebContentsBlocked(content::WebContents* web_contents, | |
| 35 bool blocked) override; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(AthenaShellAppDelegate); | |
| 38 }; | |
| 39 | |
| 40 } // namespace athena | |
| 41 | |
| 42 #endif // ATHENA_EXTENSIONS_SHELL_ATHENA_APP_DELEGATE_H_ | |
| OLD | NEW |