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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Notification that the RenderViewHost's load state changed. | 139 // Notification that the RenderViewHost's load state changed. |
140 virtual void LoadStateChanged(const GURL& url, | 140 virtual void LoadStateChanged(const GURL& url, |
141 const net::LoadStateWithParam& load_state, | 141 const net::LoadStateWithParam& load_state, |
142 uint64_t upload_position, | 142 uint64_t upload_position, |
143 uint64_t upload_size) {} | 143 uint64_t upload_size) {} |
144 | 144 |
145 // The page wants the hosting window to activate itself (it called the | 145 // The page wants the hosting window to activate itself (it called the |
146 // JavaScript window.focus() method). | 146 // JavaScript window.focus() method). |
147 virtual void Activate() {} | 147 virtual void Activate() {} |
148 | 148 |
149 // Called when a file selection is to be done. | |
150 virtual void RunFileChooser( | |
151 RenderViewHost* render_view_host, | |
152 const FileChooserParams& params) {} | |
153 | |
154 // The contents' preferred size changed. | 149 // The contents' preferred size changed. |
155 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 150 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
156 | 151 |
157 // The page is trying to open a new page (e.g. a popup window). The window | 152 // The page is trying to open a new page (e.g. a popup window). The window |
158 // should be created associated with the given |route_id| in the process of | 153 // should be created associated with the given |route_id| in the process of |
159 // |source_site_instance|, but it should not be shown yet. That | 154 // |source_site_instance|, but it should not be shown yet. That |
160 // should happen in response to ShowCreatedWindow. | 155 // should happen in response to ShowCreatedWindow. |
161 // |params.window_container_type| describes the type of RenderViewHost | 156 // |params.window_container_type| describes the type of RenderViewHost |
162 // container that is requested -- in particular, the window.open call may | 157 // container that is requested -- in particular, the window.open call may |
163 // have specified 'background' and 'persistent' in the feature string. | 158 // have specified 'background' and 'persistent' in the feature string. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // Desktop Site" feature. | 243 // Desktop Site" feature. |
249 virtual bool IsOverridingUserAgent(); | 244 virtual bool IsOverridingUserAgent(); |
250 | 245 |
251 protected: | 246 protected: |
252 virtual ~RenderViewHostDelegate() {} | 247 virtual ~RenderViewHostDelegate() {} |
253 }; | 248 }; |
254 | 249 |
255 } // namespace content | 250 } // namespace content |
256 | 251 |
257 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 252 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |