| 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 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 // delegate can use this notification to show a warning to the user. | 322 // delegate can use this notification to show a warning to the user. |
| 323 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 323 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
| 324 bool is_during_unload) {} | 324 bool is_during_unload) {} |
| 325 | 325 |
| 326 // Notification that a previously unresponsive renderer has become | 326 // Notification that a previously unresponsive renderer has become |
| 327 // responsive again. The delegate can use this notification to end the | 327 // responsive again. The delegate can use this notification to end the |
| 328 // warning shown to the user. | 328 // warning shown to the user. |
| 329 virtual void RendererResponsive(RenderViewHost* render_view_host) {} | 329 virtual void RendererResponsive(RenderViewHost* render_view_host) {} |
| 330 | 330 |
| 331 // Notification that the RenderViewHost's load state changed. | 331 // Notification that the RenderViewHost's load state changed. |
| 332 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, | 332 virtual void LoadStateChanged(const GURL& url, |
| 333 uint64 upload_position, uint64 upload_size) {} | 333 const net::LoadStateWithParam& load_state, |
| 334 uint64 upload_position, |
| 335 uint64 upload_size) {} |
| 334 | 336 |
| 335 // Notification that a worker process has crashed. | 337 // Notification that a worker process has crashed. |
| 336 virtual void WorkerCrashed() {} | 338 virtual void WorkerCrashed() {} |
| 337 | 339 |
| 338 // The page wants the hosting window to activate/deactivate itself (it | 340 // The page wants the hosting window to activate/deactivate itself (it |
| 339 // called the JavaScript window.focus()/blur() method). | 341 // called the JavaScript window.focus()/blur() method). |
| 340 virtual void Activate() {} | 342 virtual void Activate() {} |
| 341 virtual void Deactivate() {} | 343 virtual void Deactivate() {} |
| 342 | 344 |
| 343 // Notification that the view has lost capture. | 345 // Notification that the view has lost capture. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 362 virtual void HandleMouseDown() {} | 364 virtual void HandleMouseDown() {} |
| 363 virtual void HandleMouseLeave() {} | 365 virtual void HandleMouseLeave() {} |
| 364 virtual void HandleMouseUp() {} | 366 virtual void HandleMouseUp() {} |
| 365 virtual void HandleMouseActivate() {} | 367 virtual void HandleMouseActivate() {} |
| 366 | 368 |
| 367 protected: | 369 protected: |
| 368 virtual ~RenderViewHostDelegate() {} | 370 virtual ~RenderViewHostDelegate() {} |
| 369 }; | 371 }; |
| 370 | 372 |
| 371 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 373 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |