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 "chrome/browser/extensions/extension_host.h" | |
10 #include "components/web_modal/web_contents_modal_dialog_host.h" | 9 #include "components/web_modal/web_contents_modal_dialog_host.h" |
11 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" | 10 #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" |
| 11 #include "extensions/browser/extension_host.h" |
12 | 12 |
13 #if defined(TOOLKIT_VIEWS) | 13 #if defined(TOOLKIT_VIEWS) |
14 #include "chrome/browser/ui/views/extensions/extension_view_views.h" | 14 #include "chrome/browser/ui/views/extensions/extension_view_views.h" |
15 #elif defined(OS_MACOSX) | 15 #elif defined(OS_MACOSX) |
16 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" | 16 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" |
17 #elif defined(TOOLKIT_GTK) | 17 #elif defined(TOOLKIT_GTK) |
18 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" | 18 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" |
19 #elif defined(OS_ANDROID) | 19 #elif defined(OS_ANDROID) |
20 #include "chrome/browser/ui/android/extensions/extension_view_android.h" | 20 #include "chrome/browser/ui/android/extensions/extension_view_android.h" |
21 #endif | 21 #endif |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual content::WebContents* OpenURLFromTab( | 82 virtual content::WebContents* OpenURLFromTab( |
83 content::WebContents* source, | 83 content::WebContents* source, |
84 const content::OpenURLParams& params) OVERRIDE; | 84 const content::OpenURLParams& params) OVERRIDE; |
85 virtual bool PreHandleKeyboardEvent( | 85 virtual bool PreHandleKeyboardEvent( |
86 content::WebContents* source, | 86 content::WebContents* source, |
87 const content::NativeWebKeyboardEvent& event, | 87 const content::NativeWebKeyboardEvent& event, |
88 bool* is_keyboard_shortcut) OVERRIDE; | 88 bool* is_keyboard_shortcut) OVERRIDE; |
89 virtual void HandleKeyboardEvent( | 89 virtual void HandleKeyboardEvent( |
90 content::WebContents* source, | 90 content::WebContents* source, |
91 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 91 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 92 virtual bool PreHandleGestureEvent( |
| 93 content::WebContents* source, |
| 94 const blink::WebGestureEvent& event) OVERRIDE; |
92 virtual content::ColorChooser* OpenColorChooser( | 95 virtual content::ColorChooser* OpenColorChooser( |
93 content::WebContents* web_contents, | 96 content::WebContents* web_contents, |
94 SkColor color, | 97 SkColor color, |
95 const std::vector<content::ColorSuggestion>& suggestions) OVERRIDE; | 98 const std::vector<content::ColorSuggestion>& suggestions) OVERRIDE; |
96 virtual void RunFileChooser( | 99 virtual void RunFileChooser( |
97 content::WebContents* tab, | 100 content::WebContents* tab, |
98 const content::FileChooserParams& params) OVERRIDE; | 101 const content::FileChooserParams& params) OVERRIDE; |
99 virtual void ResizeDueToAutoResize(content::WebContents* source, | 102 virtual void ResizeDueToAutoResize(content::WebContents* source, |
100 const gfx::Size& new_size) OVERRIDE; | 103 const gfx::Size& new_size) OVERRIDE; |
101 | 104 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // Observer to detect when the associated web contents is destroyed. | 144 // Observer to detect when the associated web contents is destroyed. |
142 class AssociatedWebContentsObserver; | 145 class AssociatedWebContentsObserver; |
143 scoped_ptr<AssociatedWebContentsObserver> associated_web_contents_observer_; | 146 scoped_ptr<AssociatedWebContentsObserver> associated_web_contents_observer_; |
144 | 147 |
145 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost); | 148 DISALLOW_COPY_AND_ASSIGN(ExtensionViewHost); |
146 }; | 149 }; |
147 | 150 |
148 } // namespace extensions | 151 } // namespace extensions |
149 | 152 |
150 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ | 153 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_VIEW_HOST_H_ |
OLD | NEW |