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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // associated with the owning RenderViewHost. | 129 // associated with the owning RenderViewHost. |
130 virtual RendererPreferences GetRendererPrefs( | 130 virtual RendererPreferences GetRendererPrefs( |
131 BrowserContext* browser_context) const = 0; | 131 BrowserContext* browser_context) const = 0; |
132 | 132 |
133 // Notification from the renderer host that blocked UI event occurred. | 133 // Notification from the renderer host that blocked UI event occurred. |
134 // This happens when there are tab-modal dialogs. In this case, the | 134 // This happens when there are tab-modal dialogs. In this case, the |
135 // notification is needed to let us draw attention to the dialog (i.e. | 135 // notification is needed to let us draw attention to the dialog (i.e. |
136 // refocus on the modal dialog, flash title etc). | 136 // refocus on the modal dialog, flash title etc). |
137 virtual void OnIgnoredUIEvent() {} | 137 virtual void OnIgnoredUIEvent() {} |
138 | 138 |
139 // Notification that the RenderViewHost's load state changed. | |
140 virtual void LoadStateChanged(const GURL& url, | |
141 const net::LoadStateWithParam& load_state, | |
142 uint64_t upload_position, | |
143 uint64_t upload_size) {} | |
144 | |
145 // The page wants the hosting window to activate itself (it called the | 139 // The page wants the hosting window to activate itself (it called the |
146 // JavaScript window.focus() method). | 140 // JavaScript window.focus() method). |
147 virtual void Activate() {} | 141 virtual void Activate() {} |
148 | 142 |
149 // Called when a file selection is to be done. | 143 // Called when a file selection is to be done. |
150 virtual void RunFileChooser( | 144 virtual void RunFileChooser( |
151 RenderViewHost* render_view_host, | 145 RenderViewHost* render_view_host, |
152 const FileChooserParams& params) {} | 146 const FileChooserParams& params) {} |
153 | 147 |
154 // The contents' preferred size changed. | 148 // The contents' preferred size changed. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // Desktop Site" feature. | 242 // Desktop Site" feature. |
249 virtual bool IsOverridingUserAgent(); | 243 virtual bool IsOverridingUserAgent(); |
250 | 244 |
251 protected: | 245 protected: |
252 virtual ~RenderViewHostDelegate() {} | 246 virtual ~RenderViewHostDelegate() {} |
253 }; | 247 }; |
254 | 248 |
255 } // namespace content | 249 } // namespace content |
256 | 250 |
257 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 251 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |