OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 809 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
810 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 810 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
811 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 811 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
812 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); | 812 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); |
813 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 813 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
814 DontIgnoreBackAfterNavEntryLimit); | 814 DontIgnoreBackAfterNavEntryLimit); |
815 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); | 815 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); |
816 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); | 816 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); |
817 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); | 817 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); |
818 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); | 818 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); |
| 819 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); |
819 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); | 820 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); |
820 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); | 821 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); |
821 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); | 822 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); |
| 823 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnReplaceAll); |
822 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); | 824 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); |
823 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); | 825 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); |
824 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); | 826 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); |
| 827 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 828 SetEditableSelectionAndComposition); |
825 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); | 829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); |
826 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); | 830 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); |
827 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 831 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
828 GetCompositionCharacterBoundsTest); | 832 GetCompositionCharacterBoundsTest); |
829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost); | 833 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost); |
830 #if defined(OS_MACOSX) | 834 #if defined(OS_MACOSX) |
831 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); | 835 FRIEND_TEST_ALL_PREFIXES(RenderViewTest, MacTestCmdUp); |
832 #endif | 836 #endif |
833 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndPrune); | 837 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SetHistoryLengthAndPrune); |
834 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); | 838 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ZoomLimit); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 void OnDragTargetDragLeave(); | 954 void OnDragTargetDragLeave(); |
951 void OnDragTargetDragOver(const gfx::Point& client_pt, | 955 void OnDragTargetDragOver(const gfx::Point& client_pt, |
952 const gfx::Point& screen_pt, | 956 const gfx::Point& screen_pt, |
953 WebKit::WebDragOperationsMask operations_allowed, | 957 WebKit::WebDragOperationsMask operations_allowed, |
954 int key_modifiers); | 958 int key_modifiers); |
955 void OnEnablePreferredSizeChangedMode(); | 959 void OnEnablePreferredSizeChangedMode(); |
956 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); | 960 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); |
957 void OnDisableAutoResize(const gfx::Size& new_size); | 961 void OnDisableAutoResize(const gfx::Size& new_size); |
958 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); | 962 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); |
959 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 963 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
| 964 CONTENT_EXPORT void OnExtendSelectionAndDelete(int before, int after); |
960 void OnFileChooserResponse( | 965 void OnFileChooserResponse( |
961 const std::vector<ui::SelectedFileInfo>& files); | 966 const std::vector<ui::SelectedFileInfo>& files); |
962 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 967 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
963 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 968 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
964 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 969 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
965 const std::vector<GURL>& links, | 970 const std::vector<GURL>& links, |
966 const std::vector<FilePath>& local_paths, | 971 const std::vector<FilePath>& local_paths, |
967 const FilePath& local_directory_name); | 972 const FilePath& local_directory_name); |
968 void OnMediaPlayerActionAt(const gfx::Point& location, | 973 void OnMediaPlayerActionAt(const gfx::Point& location, |
969 const WebKit::WebMediaPlayerAction& action); | 974 const WebKit::WebMediaPlayerAction& action); |
970 | 975 |
971 // Screen has rotated. 0 = default (portrait), 90 = one turn right, and so on. | 976 // Screen has rotated. 0 = default (portrait), 90 = one turn right, and so on. |
972 void OnOrientationChangeEvent(int orientation); | 977 void OnOrientationChangeEvent(int orientation); |
973 | 978 |
974 void OnPluginActionAt(const gfx::Point& location, | 979 void OnPluginActionAt(const gfx::Point& location, |
975 const WebKit::WebPluginAction& action); | 980 const WebKit::WebPluginAction& action); |
976 void OnMoveOrResizeStarted(); | 981 void OnMoveOrResizeStarted(); |
977 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params); | 982 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params); |
978 void OnPaste(); | 983 void OnPaste(); |
979 void OnPasteAndMatchStyle(); | 984 void OnPasteAndMatchStyle(); |
980 #if defined(OS_MACOSX) | 985 #if defined(OS_MACOSX) |
981 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); | 986 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); |
982 #endif | 987 #endif |
983 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); | 988 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); |
984 void OnRedo(); | 989 void OnRedo(); |
985 void OnReloadFrame(); | 990 void OnReloadFrame(); |
986 void OnReplace(const string16& text); | 991 void OnReplace(const string16& text); |
| 992 CONTENT_EXPORT void OnReplaceAll(const string16& text); |
987 void OnResetPageEncodingToDefault(); | 993 void OnResetPageEncodingToDefault(); |
988 void OnScriptEvalRequest(const string16& frame_xpath, | 994 void OnScriptEvalRequest(const string16& frame_xpath, |
989 const string16& jscript, | 995 const string16& jscript, |
990 int id, | 996 int id, |
991 bool notify_result); | 997 bool notify_result); |
992 void OnSelectAll(); | 998 void OnSelectAll(); |
993 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); | 999 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); |
994 CONTENT_EXPORT void OnSetAccessibilityMode(AccessibilityMode new_mode); | 1000 CONTENT_EXPORT void OnSetAccessibilityMode(AccessibilityMode new_mode); |
995 void OnSetActive(bool active); | 1001 void OnSetActive(bool active); |
996 void OnSetAltErrorPageURL(const GURL& gurl); | 1002 void OnSetAltErrorPageURL(const GURL& gurl); |
997 void OnSetBackground(const SkBitmap& background); | 1003 void OnSetBackground(const SkBitmap& background); |
| 1004 CONTENT_EXPORT void OnSetCompositionFromExistingText( |
| 1005 int start, int end, |
| 1006 const std::vector<WebKit::WebCompositionUnderline>& underlines); |
| 1007 CONTENT_EXPORT void OnSetEditableSelectionOffsets(int start, int end); |
998 void OnSetNavigationStartTime( | 1008 void OnSetNavigationStartTime( |
999 const base::TimeTicks& browser_navigation_start); | 1009 const base::TimeTicks& browser_navigation_start); |
1000 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 1010 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
1001 CONTENT_EXPORT void OnSetEditCommandsForNextKeyEvent( | 1011 CONTENT_EXPORT void OnSetEditCommandsForNextKeyEvent( |
1002 const EditCommands& edit_commands); | 1012 const EditCommands& edit_commands); |
1003 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, | 1013 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, |
1004 int32 minimum_page_id); | 1014 int32 minimum_page_id); |
1005 void OnSetInitialFocus(bool reverse); | 1015 void OnSetInitialFocus(bool reverse); |
1006 #if defined(OS_MACOSX) | 1016 #if defined(OS_MACOSX) |
1007 void OnSetInLiveResize(bool in_live_resize); | 1017 void OnSetInLiveResize(bool in_live_resize); |
(...skipping 10 matching lines...) Expand all Loading... |
1018 void OnExitFullscreen(); | 1028 void OnExitFullscreen(); |
1019 void OnShouldClose(); | 1029 void OnShouldClose(); |
1020 void OnStop(); | 1030 void OnStop(); |
1021 void OnStopFinding(content::StopFindAction action); | 1031 void OnStopFinding(content::StopFindAction action); |
1022 CONTENT_EXPORT void OnSwapOut(const ViewMsg_SwapOut_Params& params); | 1032 CONTENT_EXPORT void OnSwapOut(const ViewMsg_SwapOut_Params& params); |
1023 void OnThemeChanged(); | 1033 void OnThemeChanged(); |
1024 void OnUndo(); | 1034 void OnUndo(); |
1025 void OnUpdateTargetURLAck(); | 1035 void OnUpdateTargetURLAck(); |
1026 CONTENT_EXPORT void OnUpdateWebPreferences( | 1036 CONTENT_EXPORT void OnUpdateWebPreferences( |
1027 const webkit_glue::WebPreferences& prefs); | 1037 const webkit_glue::WebPreferences& prefs); |
| 1038 CONTENT_EXPORT void OnUnselect(); |
1028 | 1039 |
1029 #if defined(OS_MACOSX) | 1040 #if defined(OS_MACOSX) |
1030 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 1041 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
1031 const gfx::Rect& view_frame); | 1042 const gfx::Rect& view_frame); |
1032 CONTENT_EXPORT void OnSelectPopupMenuItem(int selected_index); | 1043 CONTENT_EXPORT void OnSelectPopupMenuItem(int selected_index); |
1033 #endif | 1044 #endif |
1034 | 1045 |
1035 #if defined(OS_ANDROID) | 1046 #if defined(OS_ANDROID) |
1036 void OnSelectPopupMenuItems(bool canceled, | 1047 void OnSelectPopupMenuItems(bool canceled, |
1037 const std::vector<int>& selected_indices); | 1048 const std::vector<int>& selected_indices); |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1537 // bunch of stuff, you should probably create a helper class and put your | 1548 // bunch of stuff, you should probably create a helper class and put your |
1538 // data and methods on that to avoid bloating RenderView more. You can | 1549 // data and methods on that to avoid bloating RenderView more. You can |
1539 // use the Observer interface to filter IPC messages and receive frame change | 1550 // use the Observer interface to filter IPC messages and receive frame change |
1540 // notifications. | 1551 // notifications. |
1541 // --------------------------------------------------------------------------- | 1552 // --------------------------------------------------------------------------- |
1542 | 1553 |
1543 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1554 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1544 }; | 1555 }; |
1545 | 1556 |
1546 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1557 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |