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