| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 936 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
| 941 void OnSetInitialFocus(bool reverse); | 937 void OnSetInitialFocus(bool reverse); |
| 942 void OnSetPageEncoding(const std::string& encoding_name); | 938 void OnSetPageEncoding(const std::string& encoding_name); |
| 943 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 939 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 944 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 940 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
| 945 void OnSetZoomLevel(double zoom_level); | 941 void OnSetZoomLevel(double zoom_level); |
| 946 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 942 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
| 947 void OnStop(); | 943 void OnStop(); |
| 948 void OnStopFinding(StopFindAction action); | 944 void OnStopFinding(StopFindAction action); |
| 949 void OnSuppressDialogsUntilSwapOut(); | 945 void OnSuppressDialogsUntilSwapOut(); |
| 950 void OnSwapOut(); | |
| 951 void OnThemeChanged(); | 946 void OnThemeChanged(); |
| 952 void OnUpdateTargetURLAck(); | 947 void OnUpdateTargetURLAck(); |
| 953 void OnUpdateWebPreferences(const WebPreferences& prefs); | 948 void OnUpdateWebPreferences(const WebPreferences& prefs); |
| 954 void OnZoom(PageZoom zoom); | 949 void OnZoom(PageZoom zoom); |
| 955 void OnEnableViewSourceMode(); | 950 void OnEnableViewSourceMode(); |
| 956 void OnDisownOpener(); | 951 void OnDisownOpener(); |
| 957 void OnWindowSnapshotCompleted(const int snapshot_id, | 952 void OnWindowSnapshotCompleted(const int snapshot_id, |
| 958 const gfx::Size& size, const std::vector<unsigned char>& png); | 953 const gfx::Size& size, const std::vector<unsigned char>& png); |
| 959 #if defined(OS_ANDROID) | 954 #if defined(OS_ANDROID) |
| 960 void OnActivateNearestFindResult(int request_id, float x, float y); | 955 void OnActivateNearestFindResult(int request_id, float x, float y); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 | 1009 |
| 1015 // Returns true if the |params| navigation is to an entry that has been | 1010 // Returns true if the |params| navigation is to an entry that has been |
| 1016 // cropped due to a recent navigation the browser did not know about. | 1011 // cropped due to a recent navigation the browser did not know about. |
| 1017 bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params, | 1012 bool IsBackForwardToStaleEntry(const FrameMsg_Navigate_Params& params, |
| 1018 bool is_reload); | 1013 bool is_reload); |
| 1019 | 1014 |
| 1020 // TODO(nasko): Remove this method when code is migrated to use | 1015 // TODO(nasko): Remove this method when code is migrated to use |
| 1021 // RenderFrameObserver. | 1016 // RenderFrameObserver. |
| 1022 void OnNavigate(const FrameMsg_Navigate_Params& params); | 1017 void OnNavigate(const FrameMsg_Navigate_Params& params); |
| 1023 | 1018 |
| 1024 // Make this RenderView show an empty, unscriptable page. | 1019 // Make the given |frame| show an empty, unscriptable page. |
| 1020 // TODO(creis): Move this to RenderFrame. |
| 1025 void NavigateToSwappedOutURL(blink::WebFrame* frame); | 1021 void NavigateToSwappedOutURL(blink::WebFrame* frame); |
| 1026 | 1022 |
| 1027 // If we initiated a navigation, this function will populate |document_state| | 1023 // If we initiated a navigation, this function will populate |document_state| |
| 1028 // with the navigation information saved in OnNavigate(). | 1024 // with the navigation information saved in OnNavigate(). |
| 1029 void PopulateDocumentStateFromPending(DocumentState* document_state); | 1025 void PopulateDocumentStateFromPending(DocumentState* document_state); |
| 1030 | 1026 |
| 1031 // Returns a new NavigationState populated with the navigation information | 1027 // Returns a new NavigationState populated with the navigation information |
| 1032 // saved in OnNavigate(). | 1028 // saved in OnNavigate(). |
| 1033 NavigationState* CreateNavigationStateFromPending(); | 1029 NavigationState* CreateNavigationStateFromPending(); |
| 1034 | 1030 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 // use the Observer interface to filter IPC messages and receive frame change | 1447 // use the Observer interface to filter IPC messages and receive frame change |
| 1452 // notifications. | 1448 // notifications. |
| 1453 // --------------------------------------------------------------------------- | 1449 // --------------------------------------------------------------------------- |
| 1454 | 1450 |
| 1455 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1451 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1456 }; | 1452 }; |
| 1457 | 1453 |
| 1458 } // namespace content | 1454 } // namespace content |
| 1459 | 1455 |
| 1460 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1456 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |