| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ | 5 #ifndef APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ |
| 6 #define APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ | 6 #define APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/public/browser/web_contents_delegate.h" | 9 #include "content/public/browser/web_contents_delegate.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void RunFileChooser( | 64 virtual void RunFileChooser( |
| 65 content::WebContents* tab, | 65 content::WebContents* tab, |
| 66 const content::FileChooserParams& params) OVERRIDE; | 66 const content::FileChooserParams& params) OVERRIDE; |
| 67 virtual void RequestToLockMouse(content::WebContents* web_contents, | 67 virtual void RequestToLockMouse(content::WebContents* web_contents, |
| 68 bool user_gesture, | 68 bool user_gesture, |
| 69 bool last_unlocked_by_target) OVERRIDE; | 69 bool last_unlocked_by_target) OVERRIDE; |
| 70 virtual void RequestMediaAccessPermission( | 70 virtual void RequestMediaAccessPermission( |
| 71 content::WebContents* web_contents, | 71 content::WebContents* web_contents, |
| 72 const content::MediaStreamRequest& request, | 72 const content::MediaStreamRequest& request, |
| 73 const content::MediaResponseCallback& callback) OVERRIDE; | 73 const content::MediaResponseCallback& callback) OVERRIDE; |
| 74 virtual bool CheckMediaAccessPermission( |
| 75 content::WebContents* web_contents, |
| 76 const GURL& security_origin, |
| 77 content::MediaStreamType type) OVERRIDE; |
| 74 | 78 |
| 75 private: | 79 private: |
| 76 // content::WebContentsObserver overrides: | 80 // content::WebContentsObserver overrides: |
| 77 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 81 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 78 | 82 |
| 79 // extensions::ExtensionFunctionDispatcher::Delegate overrides: | 83 // extensions::ExtensionFunctionDispatcher::Delegate overrides: |
| 80 virtual extensions::WindowController* GetExtensionWindowController() | 84 virtual extensions::WindowController* GetExtensionWindowController() |
| 81 const OVERRIDE; | 85 const OVERRIDE; |
| 82 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 86 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
| 83 | 87 |
| 84 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 88 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 85 | 89 |
| 86 scoped_ptr<content::WebContents> web_contents_; | 90 scoped_ptr<content::WebContents> web_contents_; |
| 87 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 91 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
| 88 extension_function_dispatcher_; | 92 extension_function_dispatcher_; |
| 89 scoped_ptr<extensions::AppDelegate> app_delegate_; | 93 scoped_ptr<extensions::AppDelegate> app_delegate_; |
| 90 scoped_ptr<extensions::AppWebContentsHelper> helper_; | 94 scoped_ptr<extensions::AppWebContentsHelper> helper_; |
| 91 | 95 |
| 92 std::string extension_id_; | 96 std::string extension_id_; |
| 93 | 97 |
| 94 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageContents); | 98 DISALLOW_COPY_AND_ASSIGN(CustomLauncherPageContents); |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 } // namespace apps | 101 } // namespace apps |
| 98 | 102 |
| 99 #endif // APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ | 103 #endif // APPS_CUSTOM_LAUNCHER_PAGE_CONTENTS_H_ |
| OLD | NEW |