| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/web_modal/popup_manager.h" | 9 #include "components/web_modal/popup_manager.h" |
| 10 #include "components/web_modal/web_contents_modal_dialog_host.h" | 10 #include "components/web_modal/web_contents_modal_dialog_host.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void SetAssociatedWebContents(content::WebContents* web_contents); | 52 void SetAssociatedWebContents(content::WebContents* web_contents); |
| 53 | 53 |
| 54 // Handles keyboard events that were not handled by HandleKeyboardEvent(). | 54 // Handles keyboard events that were not handled by HandleKeyboardEvent(). |
| 55 // Platform specific implementation may override this method to handle the | 55 // Platform specific implementation may override this method to handle the |
| 56 // event in platform specific way. | 56 // event in platform specific way. |
| 57 virtual void UnhandledKeyboardEvent( | 57 virtual void UnhandledKeyboardEvent( |
| 58 content::WebContents* source, | 58 content::WebContents* source, |
| 59 const content::NativeWebKeyboardEvent& event); | 59 const content::NativeWebKeyboardEvent& event); |
| 60 | 60 |
| 61 // ExtensionHost | 61 // ExtensionHost |
| 62 void OnDidStopLoading() override; | 62 void OnDidStopFirstLoad() override; |
| 63 void LoadInitialURL() override; | 63 void LoadInitialURL() override; |
| 64 bool IsBackgroundPage() const override; | 64 bool IsBackgroundPage() const override; |
| 65 | 65 |
| 66 // content::WebContentsDelegate | 66 // content::WebContentsDelegate |
| 67 content::WebContents* OpenURLFromTab( | 67 content::WebContents* OpenURLFromTab( |
| 68 content::WebContents* source, | 68 content::WebContents* source, |
| 69 const content::OpenURLParams& params) override; | 69 const content::OpenURLParams& params) override; |
| 70 bool PreHandleKeyboardEvent(content::WebContents* source, | 70 bool PreHandleKeyboardEvent(content::WebContents* source, |
| 71 const content::NativeWebKeyboardEvent& event, | 71 const content::NativeWebKeyboardEvent& event, |
| 72 bool* is_keyboard_shortcut) override; | 72 bool* is_keyboard_shortcut) override; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 scoped_ptr<web_modal::PopupManager> popup_manager_; | 131 scoped_ptr<web_modal::PopupManager> popup_manager_; |
| 132 | 132 |
| 133 content::NotificationRegistrar registrar_; | 133 content::NotificationRegistrar registrar_; |
| 134 | 134 |
| 135 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost); | 135 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace extensions | 138 } // namespace extensions |
| 139 | 139 |
| 140 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ | 140 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ |
| OLD | NEW |