| 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 EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_
H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_
H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_
H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_
H_ |
| 7 | 7 |
| 8 #include "extensions/browser/guest_view/guest_view.h" | 8 #include "extensions/browser/guest_view/guest_view.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 | 11 |
| 12 class MimeHandlerViewGuest : public GuestView<MimeHandlerViewGuest> { | 12 class MimeHandlerViewGuest : public GuestView<MimeHandlerViewGuest> { |
| 13 public: | 13 public: |
| 14 static GuestViewBase* Create(content::BrowserContext* browser_context, | 14 static GuestViewBase* Create(content::BrowserContext* browser_context, |
| 15 int guest_instance_id); | 15 int guest_instance_id); |
| 16 | 16 |
| 17 static const char Type[]; | 17 static const char Type[]; |
| 18 | 18 |
| 19 // GuestViewBase implementation. | 19 // GuestViewBase implementation. |
| 20 virtual const char* GetAPINamespace() const OVERRIDE; | 20 virtual const char* GetAPINamespace() const OVERRIDE; |
| 21 virtual int GetTaskPrefix() const OVERRIDE; | 21 virtual int GetTaskPrefix() const OVERRIDE; |
| 22 virtual void CreateWebContents( | 22 virtual void CreateWebContents( |
| 23 const std::string& embedder_extension_id, | 23 const std::string& embedder_extension_id, |
| 24 int embedder_render_process_id, | 24 int embedder_render_process_id, |
| 25 const base::DictionaryValue& create_params, | 25 const base::DictionaryValue& create_params, |
| 26 const WebContentsCreatedCallback& callback) OVERRIDE; | 26 const WebContentsCreatedCallback& callback) OVERRIDE; |
| 27 virtual void DidAttachToEmbedder() OVERRIDE; | 27 virtual void DidAttachToEmbedder() OVERRIDE; |
| 28 | 28 |
| 29 // WebContentsDelegate implementation. |
| 30 virtual void HandleKeyboardEvent( |
| 31 content::WebContents* source, |
| 32 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 33 |
| 29 private: | 34 private: |
| 30 MimeHandlerViewGuest(content::BrowserContext* browser_context, | 35 MimeHandlerViewGuest(content::BrowserContext* browser_context, |
| 31 int guest_instance_id); | 36 int guest_instance_id); |
| 32 virtual ~MimeHandlerViewGuest(); | 37 virtual ~MimeHandlerViewGuest(); |
| 33 | 38 |
| 34 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); | 39 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); |
| 35 }; | 40 }; |
| 36 | 41 |
| 37 } // namespace extensions | 42 } // namespace extensions |
| 38 | 43 |
| 39 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ | 44 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ |
| OLD | NEW |