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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 class FullscreenContainer; | 107 class FullscreenContainer; |
108 } // namespace ppapi | 108 } // namespace ppapi |
109 | 109 |
110 } // namespace webkit | 110 } // namespace webkit |
111 | 111 |
112 namespace safe_browsing { | 112 namespace safe_browsing { |
113 class PhishingClassifierDelegate; | 113 class PhishingClassifierDelegate; |
114 } | 114 } |
115 | 115 |
116 namespace webkit_glue { | 116 namespace webkit_glue { |
| 117 struct CustomContextMenuContext; |
117 class ImageResourceFetcher; | 118 class ImageResourceFetcher; |
118 struct FileUploadData; | 119 struct FileUploadData; |
119 struct FormData; | 120 struct FormData; |
120 struct PasswordFormFillData; | 121 struct PasswordFormFillData; |
121 class ResourceFetcher; | 122 class ResourceFetcher; |
122 } | 123 } |
123 | 124 |
124 namespace WebKit { | 125 namespace WebKit { |
125 class WebAccessibilityCache; | 126 class WebAccessibilityCache; |
126 class WebAccessibilityObject; | 127 class WebAccessibilityObject; |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 int message_id); | 820 int message_id); |
820 void OnCancelDownload(int32 download_id); | 821 void OnCancelDownload(int32 download_id); |
821 void OnClearFocusedNode(); | 822 void OnClearFocusedNode(); |
822 void OnClosePage(const ViewMsg_ClosePage_Params& params); | 823 void OnClosePage(const ViewMsg_ClosePage_Params& params); |
823 #if defined(ENABLE_FLAPPER_HACKS) | 824 #if defined(ENABLE_FLAPPER_HACKS) |
824 void OnConnectTcpACK(int request_id, | 825 void OnConnectTcpACK(int request_id, |
825 IPC::PlatformFileForTransit socket_for_transit, | 826 IPC::PlatformFileForTransit socket_for_transit, |
826 const PP_Flash_NetAddress& local_addr, | 827 const PP_Flash_NetAddress& local_addr, |
827 const PP_Flash_NetAddress& remote_addr); | 828 const PP_Flash_NetAddress& remote_addr); |
828 #endif | 829 #endif |
829 void OnContextMenuClosed(); | 830 void OnContextMenuClosed( |
| 831 const webkit_glue::CustomContextMenuContext& custom_context); |
830 void OnCopy(); | 832 void OnCopy(); |
831 void OnCopyImageAt(int x, int y); | 833 void OnCopyImageAt(int x, int y); |
832 #if defined(OS_MACOSX) | 834 #if defined(OS_MACOSX) |
833 void OnCopyToFindPboard(); | 835 void OnCopyToFindPboard(); |
834 #endif | 836 #endif |
835 void OnCut(); | 837 void OnCut(); |
836 void OnCaptureThumbnail(); | 838 void OnCaptureThumbnail(); |
837 void OnCaptureSnapshot(); | 839 void OnCaptureSnapshot(); |
838 void OnCSSInsertRequest(const std::wstring& frame_xpath, | 840 void OnCSSInsertRequest(const std::wstring& frame_xpath, |
839 const std::string& css, | 841 const std::string& css, |
840 const std::string& id); | 842 const std::string& id); |
841 void OnCustomContextMenuAction(unsigned action); | 843 void OnCustomContextMenuAction( |
| 844 const webkit_glue::CustomContextMenuContext& custom_context, |
| 845 unsigned action); |
842 void OnDelete(); | 846 void OnDelete(); |
843 void OnDeterminePageLanguage(); | 847 void OnDeterminePageLanguage(); |
844 void OnDisableScrollbarsForSmallWindows( | 848 void OnDisableScrollbarsForSmallWindows( |
845 const gfx::Size& disable_scrollbars_size_limit); | 849 const gfx::Size& disable_scrollbars_size_limit); |
846 void OnDisassociateFromPopupCount(); | 850 void OnDisassociateFromPopupCount(); |
847 void OnDownloadFavIcon(int id, const GURL& image_url, int image_size); | 851 void OnDownloadFavIcon(int id, const GURL& image_url, int image_size); |
848 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 852 void OnDragSourceEndedOrMoved(const gfx::Point& client_point, |
849 const gfx::Point& screen_point, | 853 const gfx::Point& screen_point, |
850 bool ended, | 854 bool ended, |
851 WebKit::WebDragOperation drag_operation); | 855 WebKit::WebDragOperation drag_operation); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 937 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
934 void OnSetupDevToolsClient(); | 938 void OnSetupDevToolsClient(); |
935 #if defined(OS_MACOSX) | 939 #if defined(OS_MACOSX) |
936 void OnSetWindowVisibility(bool visible); | 940 void OnSetWindowVisibility(bool visible); |
937 #endif | 941 #endif |
938 void OnSetZoomLevel(double zoom_level); | 942 void OnSetZoomLevel(double zoom_level); |
939 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 943 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
940 void OnShouldClose(); | 944 void OnShouldClose(); |
941 void OnStop(); | 945 void OnStop(); |
942 void OnStopFinding(const ViewMsg_StopFinding_Params& params); | 946 void OnStopFinding(const ViewMsg_StopFinding_Params& params); |
| 947 void OnShowCustomContextMenuACK(int request_id, |
| 948 bool did_select, |
| 949 int32_t selected_id); |
943 void OnThemeChanged(); | 950 void OnThemeChanged(); |
944 void OnToggleSpellCheck(); | 951 void OnToggleSpellCheck(); |
945 void OnToggleSpellPanel(bool is_currently_visible); | 952 void OnToggleSpellPanel(bool is_currently_visible); |
946 void OnTranslatePage(int page_id, | 953 void OnTranslatePage(int page_id, |
947 const std::string& translate_script, | 954 const std::string& translate_script, |
948 const std::string& source_lang, | 955 const std::string& source_lang, |
949 const std::string& target_lang); | 956 const std::string& target_lang); |
950 void OnUndo(); | 957 void OnUndo(); |
951 void OnUpdateBrowserWindowId(int window_id); | 958 void OnUpdateBrowserWindowId(int window_id); |
952 void OnUpdateTargetURLAck(); | 959 void OnUpdateTargetURLAck(); |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 | 1470 |
1464 // External host exposed through automation controller. | 1471 // External host exposed through automation controller. |
1465 scoped_ptr<ExternalHostBindings> external_host_bindings_; | 1472 scoped_ptr<ExternalHostBindings> external_host_bindings_; |
1466 | 1473 |
1467 // The external popup for the currently showing select popup. | 1474 // The external popup for the currently showing select popup. |
1468 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1475 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
1469 | 1476 |
1470 // The node that the context menu was pressed over. | 1477 // The node that the context menu was pressed over. |
1471 WebKit::WebNode context_menu_node_; | 1478 WebKit::WebNode context_menu_node_; |
1472 | 1479 |
| 1480 // Used to send a single context menu "completion" for Pepper context menus |
| 1481 // upon menu close. |
| 1482 bool has_saved_context_menu_action_; |
| 1483 unsigned saved_context_menu_action_; |
| 1484 |
1473 // Reports load progress to the browser. | 1485 // Reports load progress to the browser. |
1474 scoped_ptr<LoadProgressTracker> load_progress_tracker_; | 1486 scoped_ptr<LoadProgressTracker> load_progress_tracker_; |
1475 | 1487 |
1476 // All the registered observers. We expect this list to be small, so vector | 1488 // All the registered observers. We expect this list to be small, so vector |
1477 // is fine. | 1489 // is fine. |
1478 ObserverList<RenderViewObserver> observers_; | 1490 ObserverList<RenderViewObserver> observers_; |
1479 | 1491 |
1480 // --------------------------------------------------------------------------- | 1492 // --------------------------------------------------------------------------- |
1481 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1493 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1482 // sections rather than throwing it randomly at the end. If you're adding a | 1494 // sections rather than throwing it randomly at the end. If you're adding a |
1483 // bunch of stuff, you should probably create a helper class and put your | 1495 // bunch of stuff, you should probably create a helper class and put your |
1484 // data and methods on that to avoid bloating RenderView more. You can use | 1496 // data and methods on that to avoid bloating RenderView more. You can use |
1485 // the Observer interface to filter IPC messages and receive frame change | 1497 // the Observer interface to filter IPC messages and receive frame change |
1486 // notifications. | 1498 // notifications. |
1487 // --------------------------------------------------------------------------- | 1499 // --------------------------------------------------------------------------- |
1488 | 1500 |
1489 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1501 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1490 }; | 1502 }; |
1491 | 1503 |
1492 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1504 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |