OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
| 11 #include "content/public/common/file_chooser_params.h" |
11 #include "content/public/common/page_zoom.h" | 12 #include "content/public/common/page_zoom.h" |
12 #include "content/public/common/stop_find_action.h" | 13 #include "content/public/common/stop_find_action.h" |
13 #include "third_party/WebKit/public/web/WebDragOperation.h" | 14 #include "third_party/WebKit/public/web/WebDragOperation.h" |
14 | 15 |
15 class GURL; | 16 class GURL; |
16 struct WebPreferences; | 17 struct WebPreferences; |
17 | 18 |
18 namespace gfx { | 19 namespace gfx { |
19 class Point; | 20 class Point; |
20 } | 21 } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // Causes the renderer to invoke the onbeforeunload event handler. The | 204 // Causes the renderer to invoke the onbeforeunload event handler. The |
204 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and | 205 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and |
205 // SwapOut, which fire the PageUnload event. | 206 // SwapOut, which fire the PageUnload event. |
206 // | 207 // |
207 // Set bool for_cross_site_transition when this close is just for the current | 208 // Set bool for_cross_site_transition when this close is just for the current |
208 // RenderView in the case of a cross-site transition. False means we're | 209 // RenderView in the case of a cross-site transition. False means we're |
209 // closing the entire tab. | 210 // closing the entire tab. |
210 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0; | 211 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0; |
211 | 212 |
212 // Notifies the Listener that one or more files have been chosen by the user | 213 // Notifies the Listener that one or more files have been chosen by the user |
213 // from a file chooser dialog for the form. |permissions| are flags from the | 214 // from a file chooser dialog for the form. |permissions| is the file |
214 // base::PlatformFileFlags enum which specify which file permissions should | 215 // selection mode in which the chooser dialog was created. |
215 // be granted to the renderer. | |
216 virtual void FilesSelectedInChooser( | 216 virtual void FilesSelectedInChooser( |
217 const std::vector<ui::SelectedFileInfo>& files, | 217 const std::vector<ui::SelectedFileInfo>& files, |
218 int permissions) = 0; | 218 FileChooserParams::Mode permissions) = 0; |
219 | 219 |
220 virtual RenderViewHostDelegate* GetDelegate() const = 0; | 220 virtual RenderViewHostDelegate* GetDelegate() const = 0; |
221 | 221 |
222 // Returns a bitwise OR of bindings types that have been enabled for this | 222 // Returns a bitwise OR of bindings types that have been enabled for this |
223 // RenderView. See BindingsPolicy for details. | 223 // RenderView. See BindingsPolicy for details. |
224 virtual int GetEnabledBindings() const = 0; | 224 virtual int GetEnabledBindings() const = 0; |
225 | 225 |
226 virtual SiteInstance* GetSiteInstance() const = 0; | 226 virtual SiteInstance* GetSiteInstance() const = 0; |
227 | 227 |
228 // Requests the renderer to evaluate an xpath to a frame and insert css | 228 // Requests the renderer to evaluate an xpath to a frame and insert css |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 | 289 |
290 private: | 290 private: |
291 // This interface should only be implemented inside content. | 291 // This interface should only be implemented inside content. |
292 friend class RenderViewHostImpl; | 292 friend class RenderViewHostImpl; |
293 RenderViewHost() {} | 293 RenderViewHost() {} |
294 }; | 294 }; |
295 | 295 |
296 } // namespace content | 296 } // namespace content |
297 | 297 |
298 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 298 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |