| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 | 667 |
| 668 // Notification from the renderer host that blocked UI event occurred. | 668 // Notification from the renderer host that blocked UI event occurred. |
| 669 // This happens when there are tab-modal dialogs. In this case, the | 669 // This happens when there are tab-modal dialogs. In this case, the |
| 670 // notification is needed to let us draw attention to the dialog (i.e. | 670 // notification is needed to let us draw attention to the dialog (i.e. |
| 671 // refocus on the modal dialog, flash title etc). | 671 // refocus on the modal dialog, flash title etc). |
| 672 virtual void OnIgnoredUIEvent() {} | 672 virtual void OnIgnoredUIEvent() {} |
| 673 | 673 |
| 674 // Notification from the renderer that JS runs out of memory. | 674 // Notification from the renderer that JS runs out of memory. |
| 675 virtual void OnJSOutOfMemory() {} | 675 virtual void OnJSOutOfMemory() {} |
| 676 | 676 |
| 677 // Returns true if this this object can be blurred through a javascript |
| 678 // obj.blur() call. ConstrainedWindows shouldn't be able to be blurred, but |
| 679 // generally most other windows will be. |
| 680 virtual bool CanBlur() const; |
| 681 |
| 677 // Return the rect where to display the resize corner, if any, otherwise | 682 // Return the rect where to display the resize corner, if any, otherwise |
| 678 // an empty rect. | 683 // an empty rect. |
| 679 virtual gfx::Rect GetRootWindowResizerRect() const; | 684 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 680 | 685 |
| 681 // Notification that the renderer has become unresponsive. The | 686 // Notification that the renderer has become unresponsive. The |
| 682 // delegate can use this notification to show a warning to the user. | 687 // delegate can use this notification to show a warning to the user. |
| 683 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 688 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
| 684 bool is_during_unload) {} | 689 bool is_during_unload) {} |
| 685 | 690 |
| 686 // Notification that a previously unresponsive renderer has become | 691 // Notification that a previously unresponsive renderer has become |
| 687 // responsive again. The delegate can use this notification to end the | 692 // responsive again. The delegate can use this notification to end the |
| 688 // warning shown to the user. | 693 // warning shown to the user. |
| 689 virtual void RendererResponsive(RenderViewHost* render_view_host) {} | 694 virtual void RendererResponsive(RenderViewHost* render_view_host) {} |
| 690 | 695 |
| 691 // Notification that the RenderViewHost's load state changed. | 696 // Notification that the RenderViewHost's load state changed. |
| 692 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, | 697 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, |
| 693 uint64 upload_position, uint64 upload_size) {} | 698 uint64 upload_position, uint64 upload_size) {} |
| 694 | 699 |
| 695 // Returns true if this view is used to host an external tab container. | 700 // Returns true if this view is used to host an external tab container. |
| 696 virtual bool IsExternalTabContainer() const; | 701 virtual bool IsExternalTabContainer() const; |
| 697 | 702 |
| 698 // The RenderView has inserted one css file into page. | 703 // The RenderView has inserted one css file into page. |
| 699 virtual void DidInsertCSS() {} | 704 virtual void DidInsertCSS() {} |
| 700 | 705 |
| 701 // A different node in the page got focused. | 706 // A different node in the page got focused. |
| 702 virtual void FocusedNodeChanged() {} | 707 virtual void FocusedNodeChanged() {} |
| 703 }; | 708 }; |
| 704 | 709 |
| 705 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 710 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |