| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "content/public/browser/android/service_registry_android.h" | 47 #include "content/public/browser/android/service_registry_android.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 class GURL; | 50 class GURL; |
| 51 struct AccessibilityHostMsg_EventParams; | 51 struct AccessibilityHostMsg_EventParams; |
| 52 struct AccessibilityHostMsg_FindInPageResultParams; | 52 struct AccessibilityHostMsg_FindInPageResultParams; |
| 53 struct AccessibilityHostMsg_LocationChangeParams; | 53 struct AccessibilityHostMsg_LocationChangeParams; |
| 54 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 54 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 55 struct FrameHostMsg_OpenURL_Params; | 55 struct FrameHostMsg_OpenURL_Params; |
| 56 struct FrameMsg_TextTrackSettings_Params; | 56 struct FrameMsg_TextTrackSettings_Params; |
| 57 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 57 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 58 struct FrameHostMsg_ShowPopup_Params; | 58 struct FrameHostMsg_ShowPopup_Params; |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 namespace base { | 61 namespace base { |
| 62 class FilePath; | 62 class FilePath; |
| 63 class ListValue; | 63 class ListValue; |
| 64 } | 64 } |
| 65 | 65 |
| 66 namespace blink { | 66 namespace blink { |
| 67 namespace mojom { | 67 namespace mojom { |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 489 |
| 490 // If accessibility is enabled, get the BrowserAccessibilityManager for | 490 // If accessibility is enabled, get the BrowserAccessibilityManager for |
| 491 // this frame, or create one if it doesn't exist yet, otherwise return | 491 // this frame, or create one if it doesn't exist yet, otherwise return |
| 492 // NULL. | 492 // NULL. |
| 493 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); | 493 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); |
| 494 | 494 |
| 495 void set_no_create_browser_accessibility_manager_for_testing(bool flag) { | 495 void set_no_create_browser_accessibility_manager_for_testing(bool flag) { |
| 496 no_create_browser_accessibility_manager_for_testing_ = flag; | 496 no_create_browser_accessibility_manager_for_testing_ = flag; |
| 497 } | 497 } |
| 498 | 498 |
| 499 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 499 #if defined(OS_MACOSX) | 500 #if defined(OS_MACOSX) |
| 500 // Select popup menu related methods (for external popup menus). | 501 // Select popup menu related methods (for external popup menus). |
| 501 void DidSelectPopupMenuItem(int selected_index); | 502 void DidSelectPopupMenuItem(int selected_index); |
| 502 void DidCancelPopupMenu(); | 503 void DidCancelPopupMenu(); |
| 503 #elif defined(OS_ANDROID) | 504 #else |
| 504 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 505 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
| 505 void DidCancelPopupMenu(); | 506 void DidCancelPopupMenu(); |
| 506 #endif | 507 #endif |
| 508 #endif |
| 507 | 509 |
| 508 // PlzNavigate: Indicates that a navigation is ready to commit and can be | 510 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
| 509 // handled by this RenderFrame. | 511 // handled by this RenderFrame. |
| 510 void CommitNavigation(ResourceResponse* response, | 512 void CommitNavigation(ResourceResponse* response, |
| 511 std::unique_ptr<StreamHandle> body, | 513 std::unique_ptr<StreamHandle> body, |
| 512 const CommonNavigationParams& common_params, | 514 const CommonNavigationParams& common_params, |
| 513 const RequestNavigationParams& request_params, | 515 const RequestNavigationParams& request_params, |
| 514 bool is_view_source); | 516 bool is_view_source); |
| 515 | 517 |
| 516 // PlzNavigate | 518 // PlzNavigate |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 const AXContentTreeUpdate& snapshot); | 685 const AXContentTreeUpdate& snapshot); |
| 684 void OnToggleFullscreen(bool enter_fullscreen); | 686 void OnToggleFullscreen(bool enter_fullscreen); |
| 685 void OnDidStartLoading(bool to_different_document); | 687 void OnDidStartLoading(bool to_different_document); |
| 686 void OnDidStopLoading(); | 688 void OnDidStopLoading(); |
| 687 void OnDidChangeLoadProgress(double load_progress); | 689 void OnDidChangeLoadProgress(double load_progress); |
| 688 void OnSerializeAsMHTMLResponse( | 690 void OnSerializeAsMHTMLResponse( |
| 689 int job_id, | 691 int job_id, |
| 690 bool success, | 692 bool success, |
| 691 const std::set<std::string>& digests_of_uris_of_serialized_resources); | 693 const std::set<std::string>& digests_of_uris_of_serialized_resources); |
| 692 | 694 |
| 693 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 695 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 694 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); | 696 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); |
| 695 void OnHidePopup(); | 697 void OnHidePopup(); |
| 696 #endif | 698 #endif |
| 697 | 699 |
| 698 // Registers Mojo services that this frame host makes available. | 700 // Registers Mojo services that this frame host makes available. |
| 699 void RegisterMojoServices(); | 701 void RegisterMojoServices(); |
| 700 | 702 |
| 701 // Resets any waiting state of this RenderFrameHost that is no longer | 703 // Resets any waiting state of this RenderFrameHost that is no longer |
| 702 // relevant. | 704 // relevant. |
| 703 void ResetWaitingState(); | 705 void ResetWaitingState(); |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 | 996 |
| 995 // NOTE: This must be the last member. | 997 // NOTE: This must be the last member. |
| 996 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 998 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 997 | 999 |
| 998 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1000 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 999 }; | 1001 }; |
| 1000 | 1002 |
| 1001 } // namespace content | 1003 } // namespace content |
| 1002 | 1004 |
| 1003 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1005 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |