| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 const JavaScriptResultCallback& callback) override; | 143 const JavaScriptResultCallback& callback) override; |
| 144 void ExecuteJavaScriptWithUserGestureForTests( | 144 void ExecuteJavaScriptWithUserGestureForTests( |
| 145 const base::string16& javascript) override; | 145 const base::string16& javascript) override; |
| 146 void ActivateFindInPageResultForAccessibility(int request_id) override; | 146 void ActivateFindInPageResultForAccessibility(int request_id) override; |
| 147 void InsertVisualStateCallback(const VisualStateCallback& callback) override; | 147 void InsertVisualStateCallback(const VisualStateCallback& callback) override; |
| 148 RenderViewHost* GetRenderViewHost() override; | 148 RenderViewHost* GetRenderViewHost() override; |
| 149 ServiceRegistry* GetServiceRegistry() override; | 149 ServiceRegistry* GetServiceRegistry() override; |
| 150 blink::WebPageVisibilityState GetVisibilityState() override; | 150 blink::WebPageVisibilityState GetVisibilityState() override; |
| 151 bool IsRenderFrameLive() override; | 151 bool IsRenderFrameLive() override; |
| 152 int GetProxyCount() override; | 152 int GetProxyCount() override; |
| 153 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 154 #if defined(OS_MACOSX) |
| 155 // Select popup menu related methods (for external popup menus). |
| 156 void DidSelectPopupMenuItem(int selected_index) override; |
| 157 void DidCancelPopupMenu() override; |
| 158 #else |
| 159 void DidSelectPopupMenuItems( |
| 160 const std::vector<int>& selected_indices) override; |
| 161 void DidCancelPopupMenu() override; |
| 162 #endif |
| 163 #endif |
| 153 | 164 |
| 154 // IPC::Sender | 165 // IPC::Sender |
| 155 bool Send(IPC::Message* msg) override; | 166 bool Send(IPC::Message* msg) override; |
| 156 | 167 |
| 157 // IPC::Listener | 168 // IPC::Listener |
| 158 bool OnMessageReceived(const IPC::Message& msg) override; | 169 bool OnMessageReceived(const IPC::Message& msg) override; |
| 159 | 170 |
| 160 // BrowserAccessibilityDelegate | 171 // BrowserAccessibilityDelegate |
| 161 void AccessibilitySetFocus(int acc_obj_id) override; | 172 void AccessibilitySetFocus(int acc_obj_id) override; |
| 162 void AccessibilityDoDefaultAction(int acc_obj_id) override; | 173 void AccessibilityDoDefaultAction(int acc_obj_id) override; |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 500 |
| 490 // If accessibility is enabled, get the BrowserAccessibilityManager for | 501 // If accessibility is enabled, get the BrowserAccessibilityManager for |
| 491 // this frame, or create one if it doesn't exist yet, otherwise return | 502 // this frame, or create one if it doesn't exist yet, otherwise return |
| 492 // NULL. | 503 // NULL. |
| 493 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); | 504 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); |
| 494 | 505 |
| 495 void set_no_create_browser_accessibility_manager_for_testing(bool flag) { | 506 void set_no_create_browser_accessibility_manager_for_testing(bool flag) { |
| 496 no_create_browser_accessibility_manager_for_testing_ = flag; | 507 no_create_browser_accessibility_manager_for_testing_ = flag; |
| 497 } | 508 } |
| 498 | 509 |
| 499 #if defined(USE_EXTERNAL_POPUP_MENU) | |
| 500 #if defined(OS_MACOSX) | |
| 501 // Select popup menu related methods (for external popup menus). | |
| 502 void DidSelectPopupMenuItem(int selected_index); | |
| 503 void DidCancelPopupMenu(); | |
| 504 #else | |
| 505 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | |
| 506 void DidCancelPopupMenu(); | |
| 507 #endif | |
| 508 #endif | |
| 509 | |
| 510 // 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 |
| 511 // handled by this RenderFrame. | 511 // handled by this RenderFrame. |
| 512 void CommitNavigation(ResourceResponse* response, | 512 void CommitNavigation(ResourceResponse* response, |
| 513 std::unique_ptr<StreamHandle> body, | 513 std::unique_ptr<StreamHandle> body, |
| 514 const CommonNavigationParams& common_params, | 514 const CommonNavigationParams& common_params, |
| 515 const RequestNavigationParams& request_params, | 515 const RequestNavigationParams& request_params, |
| 516 bool is_view_source); | 516 bool is_view_source); |
| 517 | 517 |
| 518 // PlzNavigate | 518 // PlzNavigate |
| 519 // Indicates that a navigation failed and that this RenderFrame should display | 519 // Indicates that a navigation failed and that this RenderFrame should display |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 | 996 |
| 997 // NOTE: This must be the last member. | 997 // NOTE: This must be the last member. |
| 998 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 998 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 999 | 999 |
| 1000 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1000 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1001 }; | 1001 }; |
| 1002 | 1002 |
| 1003 } // namespace content | 1003 } // namespace content |
| 1004 | 1004 |
| 1005 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1005 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |