| 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 const PP_Flash_NetAddress& remote_addr); | 756 const PP_Flash_NetAddress& remote_addr); |
| 757 #endif | 757 #endif |
| 758 void OnContextMenuClosed( | 758 void OnContextMenuClosed( |
| 759 const webkit_glue::CustomContextMenuContext& custom_context); | 759 const webkit_glue::CustomContextMenuContext& custom_context); |
| 760 void OnCopy(); | 760 void OnCopy(); |
| 761 void OnCopyImageAt(int x, int y); | 761 void OnCopyImageAt(int x, int y); |
| 762 #if defined(OS_MACOSX) | 762 #if defined(OS_MACOSX) |
| 763 void OnCopyToFindPboard(); | 763 void OnCopyToFindPboard(); |
| 764 #endif | 764 #endif |
| 765 void OnCut(); | 765 void OnCut(); |
| 766 void OnCSSInsertRequest(const std::wstring& frame_xpath, | 766 void OnCSSInsertRequest(const string16& frame_xpath, |
| 767 const std::string& css); | 767 const std::string& css); |
| 768 void OnCustomContextMenuAction( | 768 void OnCustomContextMenuAction( |
| 769 const webkit_glue::CustomContextMenuContext& custom_context, | 769 const webkit_glue::CustomContextMenuContext& custom_context, |
| 770 unsigned action); | 770 unsigned action); |
| 771 void OnDelete(); | 771 void OnDelete(); |
| 772 void OnDeterminePageLanguage(); | 772 void OnDeterminePageLanguage(); |
| 773 void OnDisableScrollbarsForSmallWindows( | 773 void OnDisableScrollbarsForSmallWindows( |
| 774 const gfx::Size& disable_scrollbars_size_limit); | 774 const gfx::Size& disable_scrollbars_size_limit); |
| 775 void OnDisassociateFromPopupCount(); | 775 void OnDisassociateFromPopupCount(); |
| 776 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 776 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 // uniquely identify the request and passed back to the | 878 // uniquely identify the request and passed back to the |
| 879 // DidDownloadFavicon method. If the image has multiple frames, the | 879 // DidDownloadFavicon method. If the image has multiple frames, the |
| 880 // frame whose size is image_size is returned. If the image doesn't | 880 // frame whose size is image_size is returned. If the image doesn't |
| 881 // have a frame at the specified size, the first is returned. | 881 // have a frame at the specified size, the first is returned. |
| 882 bool DownloadFavicon(int id, const GURL& image_url, int image_size); | 882 bool DownloadFavicon(int id, const GURL& image_url, int image_size); |
| 883 | 883 |
| 884 GURL GetAlternateErrorPageURL(const GURL& failed_url, | 884 GURL GetAlternateErrorPageURL(const GURL& failed_url, |
| 885 ErrorPageType error_type); | 885 ErrorPageType error_type); |
| 886 | 886 |
| 887 // Locates a sub frame with given xpath | 887 // Locates a sub frame with given xpath |
| 888 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; | 888 WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const; |
| 889 | 889 |
| 890 WebUIBindings* GetWebUIBindings(); | 890 WebUIBindings* GetWebUIBindings(); |
| 891 | 891 |
| 892 // Should only be called if this object wraps a PluginDocument. | 892 // Should only be called if this object wraps a PluginDocument. |
| 893 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); | 893 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); |
| 894 | 894 |
| 895 // Returns true if the |params| navigation is to an entry that has been | 895 // Returns true if the |params| navigation is to an entry that has been |
| 896 // cropped due to a recent navigation the browser did not know about. | 896 // cropped due to a recent navigation the browser did not know about. |
| 897 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, | 897 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, |
| 898 bool is_reload); | 898 bool is_reload); |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 // bunch of stuff, you should probably create a helper class and put your | 1203 // bunch of stuff, you should probably create a helper class and put your |
| 1204 // data and methods on that to avoid bloating RenderView more. You can use | 1204 // data and methods on that to avoid bloating RenderView more. You can use |
| 1205 // the Observer interface to filter IPC messages and receive frame change | 1205 // the Observer interface to filter IPC messages and receive frame change |
| 1206 // notifications. | 1206 // notifications. |
| 1207 // --------------------------------------------------------------------------- | 1207 // --------------------------------------------------------------------------- |
| 1208 | 1208 |
| 1209 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1209 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1210 }; | 1210 }; |
| 1211 | 1211 |
| 1212 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1212 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |