OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HOST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 // TabContentsDelegate | 118 // TabContentsDelegate |
119 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 119 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
120 bool* is_keyboard_shortcut) OVERRIDE; | 120 bool* is_keyboard_shortcut) OVERRIDE; |
121 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) | 121 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) |
122 OVERRIDE; | 122 OVERRIDE; |
123 virtual void UpdatePreferredSize(TabContents* source, | 123 virtual void UpdatePreferredSize(TabContents* source, |
124 const gfx::Size& pref_size) OVERRIDE; | 124 const gfx::Size& pref_size) OVERRIDE; |
125 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator() | 125 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator() |
126 OVERRIDE; | 126 OVERRIDE; |
| 127 virtual void RunFileChooser( |
| 128 TabContents* tab, const content::FileChooserParams& params) OVERRIDE; |
127 virtual void AddNewContents(TabContents* source, | 129 virtual void AddNewContents(TabContents* source, |
128 TabContents* new_contents, | 130 TabContents* new_contents, |
129 WindowOpenDisposition disposition, | 131 WindowOpenDisposition disposition, |
130 const gfx::Rect& initial_pos, | 132 const gfx::Rect& initial_pos, |
131 bool user_gesture) OVERRIDE; | 133 bool user_gesture) OVERRIDE; |
132 virtual void CloseContents(TabContents* contents) OVERRIDE; | 134 virtual void CloseContents(TabContents* contents) OVERRIDE; |
133 | 135 |
134 // content::NotificationObserver | 136 // content::NotificationObserver |
135 virtual void Observe(int type, | 137 virtual void Observe(int type, |
136 const content::NotificationSource& source, | 138 const content::NotificationSource& source, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // The relevant TabContents associated with this ExtensionHost, if any. | 216 // The relevant TabContents associated with this ExtensionHost, if any. |
215 TabContents* associated_tab_contents_; | 217 TabContents* associated_tab_contents_; |
216 | 218 |
217 // Used to measure how long it's been since the host was created. | 219 // Used to measure how long it's been since the host was created. |
218 PerfTimer since_created_; | 220 PerfTimer since_created_; |
219 | 221 |
220 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 222 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
221 }; | 223 }; |
222 | 224 |
223 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 225 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |