| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 const MediaResponseCallback& callback) override; | 493 const MediaResponseCallback& callback) override; |
| 494 bool CheckMediaAccessPermission(const GURL& security_origin, | 494 bool CheckMediaAccessPermission(const GURL& security_origin, |
| 495 MediaStreamType type) override; | 495 MediaStreamType type) override; |
| 496 SessionStorageNamespace* GetSessionStorageNamespace( | 496 SessionStorageNamespace* GetSessionStorageNamespace( |
| 497 SiteInstance* instance) override; | 497 SiteInstance* instance) override; |
| 498 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; | 498 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; |
| 499 FrameTree* GetFrameTree() override; | 499 FrameTree* GetFrameTree() override; |
| 500 void SetIsVirtualKeyboardRequested(bool requested) override; | 500 void SetIsVirtualKeyboardRequested(bool requested) override; |
| 501 bool IsVirtualKeyboardRequested() override; | 501 bool IsVirtualKeyboardRequested() override; |
| 502 | 502 |
| 503 | |
| 504 // NavigatorDelegate --------------------------------------------------------- | 503 // NavigatorDelegate --------------------------------------------------------- |
| 505 | 504 |
| 506 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 505 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
| 507 const GURL& validated_url, | 506 const GURL& validated_url, |
| 508 bool is_error_page, | 507 bool is_error_page, |
| 509 bool is_iframe_srcdoc) override; | 508 bool is_iframe_srcdoc) override; |
| 510 void DidFailProvisionalLoadWithError( | 509 void DidFailProvisionalLoadWithError( |
| 511 RenderFrameHostImpl* render_frame_host, | 510 RenderFrameHostImpl* render_frame_host, |
| 512 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) | 511 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) |
| 513 override; | 512 override; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 void ScreenInfoChanged() override; | 553 void ScreenInfoChanged() override; |
| 555 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 554 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 556 bool* is_keyboard_shortcut) override; | 555 bool* is_keyboard_shortcut) override; |
| 557 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 556 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
| 558 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; | 557 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; |
| 559 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; | 558 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; |
| 560 void DidSendScreenRects(RenderWidgetHostImpl* rwh) override; | 559 void DidSendScreenRects(RenderWidgetHostImpl* rwh) override; |
| 561 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; | 560 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; |
| 562 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() | 561 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() |
| 563 override; | 562 override; |
| 563 // Following three functions are already listed under WebContents overrides. |
| 564 // void Cut() override; |
| 565 // void Copy() override; |
| 566 // void Paste() override; |
| 567 void MoveRangeSelectionExtent(const gfx::Point& extent) override; |
| 568 void SelectRange(const gfx::Point& base, const gfx::Point& extent) override; |
| 564 | 569 |
| 565 // RenderFrameHostManager::Delegate ------------------------------------------ | 570 // RenderFrameHostManager::Delegate ------------------------------------------ |
| 566 | 571 |
| 567 bool CreateRenderViewForRenderManager( | 572 bool CreateRenderViewForRenderManager( |
| 568 RenderViewHost* render_view_host, | 573 RenderViewHost* render_view_host, |
| 569 int opener_route_id, | 574 int opener_route_id, |
| 570 int proxy_routing_id, | 575 int proxy_routing_id, |
| 571 const FrameReplicationState& replicated_frame_state, | 576 const FrameReplicationState& replicated_frame_state, |
| 572 bool for_main_frame_navigation) override; | 577 bool for_main_frame_navigation) override; |
| 573 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, | 578 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 | 655 |
| 651 // Changes the IsLoading state and notifies the delegate as needed. | 656 // Changes the IsLoading state and notifies the delegate as needed. |
| 652 // |details| is used to provide details on the load that just finished | 657 // |details| is used to provide details on the load that just finished |
| 653 // (but can be null if not applicable). | 658 // (but can be null if not applicable). |
| 654 void SetIsLoading(bool is_loading, | 659 void SetIsLoading(bool is_loading, |
| 655 bool to_different_document, | 660 bool to_different_document, |
| 656 LoadNotificationDetails* details) override; | 661 LoadNotificationDetails* details) override; |
| 657 | 662 |
| 658 typedef base::Callback<void(WebContents*)> CreatedCallback; | 663 typedef base::Callback<void(WebContents*)> CreatedCallback; |
| 659 | 664 |
| 660 // Requests the renderer to move the selection extent to a new position. | |
| 661 void MoveRangeSelectionExtent(const gfx::Point& extent); | |
| 662 | |
| 663 // Requests the renderer to select the region between two points in the | |
| 664 // currently focused frame. | |
| 665 void SelectRange(const gfx::Point& base, const gfx::Point& extent); | |
| 666 | |
| 667 // Forces overscroll to be disabled (used by touch emulation). | 665 // Forces overscroll to be disabled (used by touch emulation). |
| 668 void SetForceDisableOverscrollContent(bool force_disable); | 666 void SetForceDisableOverscrollContent(bool force_disable); |
| 669 | 667 |
| 670 AudioStateProvider* audio_state_provider() { | 668 AudioStateProvider* audio_state_provider() { |
| 671 return audio_state_provider_.get(); | 669 return audio_state_provider_.get(); |
| 672 } | 670 } |
| 673 | 671 |
| 674 bool has_audio_power_save_blocker_for_testing() const { | 672 bool has_audio_power_save_blocker_for_testing() const { |
| 675 return audio_power_save_blocker_; | 673 return audio_power_save_blocker_; |
| 676 } | 674 } |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1256 // Adds/removes a callback called on creation of each new WebContents. | 1254 // Adds/removes a callback called on creation of each new WebContents. |
| 1257 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1255 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1258 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1256 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1259 | 1257 |
| 1260 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1258 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1261 }; | 1259 }; |
| 1262 | 1260 |
| 1263 } // namespace content | 1261 } // namespace content |
| 1264 | 1262 |
| 1265 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1263 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |