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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 friend class RenderViewTest; | 751 friend class RenderViewTest; |
752 | 752 |
753 // TODO(nasko): Temporarily friend RenderFrameImpl, so we don't duplicate | 753 // TODO(nasko): Temporarily friend RenderFrameImpl, so we don't duplicate |
754 // utility functions needed in both classes, while we move frame specific | 754 // utility functions needed in both classes, while we move frame specific |
755 // code away from this class. | 755 // code away from this class. |
756 friend class RenderFrameImpl; | 756 friend class RenderFrameImpl; |
757 | 757 |
758 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 758 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
759 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); | 759 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); |
760 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); | 760 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, ShowPopupThenNavigate); |
761 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest, | |
762 AccessibilityMessagesQueueWhileSwappedOut); | |
763 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); | 761 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, DecideNavigationPolicyForWebUI); |
764 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 762 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
765 DidFailProvisionalLoadWithErrorForError); | 763 DidFailProvisionalLoadWithErrorForError); |
766 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 764 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
767 DidFailProvisionalLoadWithErrorForCancellation); | 765 DidFailProvisionalLoadWithErrorForCancellation); |
768 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 766 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
769 DontIgnoreBackAfterNavEntryLimit); | 767 DontIgnoreBackAfterNavEntryLimit); |
770 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); | 768 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); |
771 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); | 769 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); |
772 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); | 770 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); |
773 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); | 771 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); |
774 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); | 772 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); |
775 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); | 773 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); |
776 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeTypeChanged); | 774 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeTypeChanged); |
777 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); | 775 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); |
778 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); | 776 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); |
779 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); | 777 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); |
780 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); | |
781 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); | |
782 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 778 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
783 SetEditableSelectionAndComposition); | 779 SetEditableSelectionAndComposition); |
784 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); | 780 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); |
785 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); | 781 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); |
786 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 782 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
787 GetCompositionCharacterBoundsTest); | 783 GetCompositionCharacterBoundsTest); |
788 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost); | 784 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost); |
789 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 785 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
790 DecideNavigationPolicyHandlesAllTopLevel); | 786 DecideNavigationPolicyHandlesAllTopLevel); |
791 #if defined(OS_MACOSX) | 787 #if defined(OS_MACOSX) |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 927 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
932 void OnSetInitialFocus(bool reverse); | 928 void OnSetInitialFocus(bool reverse); |
933 void OnSetPageEncoding(const std::string& encoding_name); | 929 void OnSetPageEncoding(const std::string& encoding_name); |
934 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 930 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
935 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 931 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
936 void OnSetZoomLevel(double zoom_level); | 932 void OnSetZoomLevel(double zoom_level); |
937 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 933 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
938 void OnStop(); | 934 void OnStop(); |
939 void OnStopFinding(StopFindAction action); | 935 void OnStopFinding(StopFindAction action); |
940 void OnSuppressDialogsUntilSwapOut(); | 936 void OnSuppressDialogsUntilSwapOut(); |
941 void OnSwapOut(); | |
942 void OnThemeChanged(); | 937 void OnThemeChanged(); |
943 void OnUpdateTargetURLAck(); | 938 void OnUpdateTargetURLAck(); |
944 void OnUpdateWebPreferences(const WebPreferences& prefs); | 939 void OnUpdateWebPreferences(const WebPreferences& prefs); |
945 void OnZoom(PageZoom zoom); | 940 void OnZoom(PageZoom zoom); |
946 void OnEnableViewSourceMode(); | 941 void OnEnableViewSourceMode(); |
947 void OnDisownOpener(); | 942 void OnDisownOpener(); |
948 void OnWindowSnapshotCompleted(const int snapshot_id, | 943 void OnWindowSnapshotCompleted(const int snapshot_id, |
949 const gfx::Size& size, const std::vector<unsigned char>& png); | 944 const gfx::Size& size, const std::vector<unsigned char>& png); |
950 #if defined(OS_ANDROID) | 945 #if defined(OS_ANDROID) |
951 void OnActivateNearestFindResult(int request_id, float x, float y); | 946 void OnActivateNearestFindResult(int request_id, float x, float y); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 | 999 |
1005 // Returns true if the |params| navigation is to an entry that has been | 1000 // Returns true if the |params| navigation is to an entry that has been |
1006 // cropped due to a recent navigation the browser did not know about. | 1001 // cropped due to a recent navigation the browser did not know about. |
1007 bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params, | 1002 bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params, |
1008 bool is_reload); | 1003 bool is_reload); |
1009 | 1004 |
1010 // TODO(nasko): Remove this method when code is migrated to use | 1005 // TODO(nasko): Remove this method when code is migrated to use |
1011 // RenderFrameObserver. | 1006 // RenderFrameObserver. |
1012 void OnNavigate(const FrameMsg_Navigate_Params& params); | 1007 void OnNavigate(const FrameMsg_Navigate_Params& params); |
1013 | 1008 |
1014 // Make this RenderView show an empty, unscriptable page. | 1009 // Make the given |frame| show an empty, unscriptable page. |
| 1010 // TODO(creis): Move this to RenderFrame. |
1015 void NavigateToSwappedOutURL(blink::WebFrame* frame); | 1011 void NavigateToSwappedOutURL(blink::WebFrame* frame); |
1016 | 1012 |
1017 // If we initiated a navigation, this function will populate |document_state| | 1013 // If we initiated a navigation, this function will populate |document_state| |
1018 // with the navigation information saved in OnNavigate(). | 1014 // with the navigation information saved in OnNavigate(). |
1019 void PopulateDocumentStateFromPending(DocumentState* document_state); | 1015 void PopulateDocumentStateFromPending(DocumentState* document_state); |
1020 | 1016 |
1021 // Returns a new NavigationState populated with the navigation information | 1017 // Returns a new NavigationState populated with the navigation information |
1022 // saved in OnNavigate(). | 1018 // saved in OnNavigate(). |
1023 NavigationState* CreateNavigationStateFromPending(); | 1019 NavigationState* CreateNavigationStateFromPending(); |
1024 | 1020 |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1419 // use the Observer interface to filter IPC messages and receive frame change | 1415 // use the Observer interface to filter IPC messages and receive frame change |
1420 // notifications. | 1416 // notifications. |
1421 // --------------------------------------------------------------------------- | 1417 // --------------------------------------------------------------------------- |
1422 | 1418 |
1423 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1419 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1424 }; | 1420 }; |
1425 | 1421 |
1426 } // namespace content | 1422 } // namespace content |
1427 | 1423 |
1428 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1424 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |