| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 | 815 |
| 816 // Notification from the renderer host that blocked UI event occurred. | 816 // Notification from the renderer host that blocked UI event occurred. |
| 817 // This happens when there are tab-modal dialogs. In this case, the | 817 // This happens when there are tab-modal dialogs. In this case, the |
| 818 // notification is needed to let us draw attention to the dialog (i.e. | 818 // notification is needed to let us draw attention to the dialog (i.e. |
| 819 // refocus on the modal dialog, flash title etc). | 819 // refocus on the modal dialog, flash title etc). |
| 820 virtual void OnIgnoredUIEvent() {} | 820 virtual void OnIgnoredUIEvent() {} |
| 821 | 821 |
| 822 // Notification from the renderer that JS runs out of memory. | 822 // Notification from the renderer that JS runs out of memory. |
| 823 virtual void OnJSOutOfMemory() {} | 823 virtual void OnJSOutOfMemory() {} |
| 824 | 824 |
| 825 // Return the rect where to display the resize corner, if any, otherwise | |
| 826 // an empty rect. | |
| 827 virtual gfx::Rect GetRootWindowResizerRect() const; | |
| 828 | |
| 829 // Notification that the renderer has become unresponsive. The | 825 // Notification that the renderer has become unresponsive. The |
| 830 // delegate can use this notification to show a warning to the user. | 826 // delegate can use this notification to show a warning to the user. |
| 831 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 827 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
| 832 bool is_during_unload) {} | 828 bool is_during_unload) {} |
| 833 | 829 |
| 834 // Notification that a previously unresponsive renderer has become | 830 // Notification that a previously unresponsive renderer has become |
| 835 // responsive again. The delegate can use this notification to end the | 831 // responsive again. The delegate can use this notification to end the |
| 836 // warning shown to the user. | 832 // warning shown to the user. |
| 837 virtual void RendererResponsive(RenderViewHost* render_view_host) {} | 833 virtual void RendererResponsive(RenderViewHost* render_view_host) {} |
| 838 | 834 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 855 bool remember) {} | 851 bool remember) {} |
| 856 | 852 |
| 857 // Update the content restrictions, i.e. disable print/copy. | 853 // Update the content restrictions, i.e. disable print/copy. |
| 858 virtual void UpdateContentRestrictions(int restrictions) {} | 854 virtual void UpdateContentRestrictions(int restrictions) {} |
| 859 | 855 |
| 860 protected: | 856 protected: |
| 861 virtual ~RenderViewHostDelegate() {} | 857 virtual ~RenderViewHostDelegate() {} |
| 862 }; | 858 }; |
| 863 | 859 |
| 864 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 860 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |