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