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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 const MediaResponseCallback& callback) override; | 498 const MediaResponseCallback& callback) override; |
499 bool CheckMediaAccessPermission(const GURL& security_origin, | 499 bool CheckMediaAccessPermission(const GURL& security_origin, |
500 MediaStreamType type) override; | 500 MediaStreamType type) override; |
501 SessionStorageNamespace* GetSessionStorageNamespace( | 501 SessionStorageNamespace* GetSessionStorageNamespace( |
502 SiteInstance* instance) override; | 502 SiteInstance* instance) override; |
503 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; | 503 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; |
504 FrameTree* GetFrameTree() override; | 504 FrameTree* GetFrameTree() override; |
505 void SetIsVirtualKeyboardRequested(bool requested) override; | 505 void SetIsVirtualKeyboardRequested(bool requested) override; |
506 bool IsVirtualKeyboardRequested() override; | 506 bool IsVirtualKeyboardRequested() override; |
507 | 507 |
508 | |
509 // NavigatorDelegate --------------------------------------------------------- | 508 // NavigatorDelegate --------------------------------------------------------- |
510 | 509 |
511 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 510 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
512 const GURL& validated_url, | 511 const GURL& validated_url, |
513 bool is_error_page, | 512 bool is_error_page, |
514 bool is_iframe_srcdoc) override; | 513 bool is_iframe_srcdoc) override; |
515 void DidFailProvisionalLoadWithError( | 514 void DidFailProvisionalLoadWithError( |
516 RenderFrameHostImpl* render_frame_host, | 515 RenderFrameHostImpl* render_frame_host, |
517 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) | 516 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) |
518 override; | 517 override; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 void ScreenInfoChanged() override; | 557 void ScreenInfoChanged() override; |
559 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 558 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
560 bool* is_keyboard_shortcut) override; | 559 bool* is_keyboard_shortcut) override; |
561 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 560 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
562 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; | 561 bool HandleWheelEvent(const blink::WebMouseWheelEvent& event) override; |
563 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; | 562 bool PreHandleGestureEvent(const blink::WebGestureEvent& event) override; |
564 void DidSendScreenRects(RenderWidgetHostImpl* rwh) override; | 563 void DidSendScreenRects(RenderWidgetHostImpl* rwh) override; |
565 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; | 564 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager() override; |
566 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() | 565 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager() |
567 override; | 566 override; |
| 567 // Following three functions are already listed under WebContents overrides. |
| 568 // void Cut() override; |
| 569 // void Copy() override; |
| 570 // void Paste() override; |
| 571 void MoveRangeSelectionExtent(const gfx::Point& extent) override; |
| 572 void SelectRange(const gfx::Point& base, const gfx::Point& extent) override; |
568 | 573 |
569 // RenderFrameHostManager::Delegate ------------------------------------------ | 574 // RenderFrameHostManager::Delegate ------------------------------------------ |
570 | 575 |
571 bool CreateRenderViewForRenderManager( | 576 bool CreateRenderViewForRenderManager( |
572 RenderViewHost* render_view_host, | 577 RenderViewHost* render_view_host, |
573 int opener_route_id, | 578 int opener_route_id, |
574 int proxy_routing_id, | 579 int proxy_routing_id, |
575 const FrameReplicationState& replicated_frame_state, | 580 const FrameReplicationState& replicated_frame_state, |
576 bool for_main_frame_navigation) override; | 581 bool for_main_frame_navigation) override; |
577 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, | 582 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 | 673 |
669 // Changes the IsLoading state and notifies the delegate as needed. | 674 // Changes the IsLoading state and notifies the delegate as needed. |
670 // |details| is used to provide details on the load that just finished | 675 // |details| is used to provide details on the load that just finished |
671 // (but can be null if not applicable). | 676 // (but can be null if not applicable). |
672 void SetIsLoading(bool is_loading, | 677 void SetIsLoading(bool is_loading, |
673 bool to_different_document, | 678 bool to_different_document, |
674 LoadNotificationDetails* details) override; | 679 LoadNotificationDetails* details) override; |
675 | 680 |
676 typedef base::Callback<void(WebContents*)> CreatedCallback; | 681 typedef base::Callback<void(WebContents*)> CreatedCallback; |
677 | 682 |
678 // Requests the renderer to move the selection extent to a new position. | |
679 void MoveRangeSelectionExtent(const gfx::Point& extent); | |
680 | |
681 // Requests the renderer to select the region between two points in the | |
682 // currently focused frame. | |
683 void SelectRange(const gfx::Point& base, const gfx::Point& extent); | |
684 | |
685 // Forces overscroll to be disabled (used by touch emulation). | 683 // Forces overscroll to be disabled (used by touch emulation). |
686 void SetForceDisableOverscrollContent(bool force_disable); | 684 void SetForceDisableOverscrollContent(bool force_disable); |
687 | 685 |
688 AudioStateProvider* audio_state_provider() { | 686 AudioStateProvider* audio_state_provider() { |
689 return audio_state_provider_.get(); | 687 return audio_state_provider_.get(); |
690 } | 688 } |
691 | 689 |
692 bool has_audio_power_save_blocker_for_testing() const { | 690 bool has_audio_power_save_blocker_for_testing() const { |
693 return audio_power_save_blocker_; | 691 return audio_power_save_blocker_; |
694 } | 692 } |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1285 // Adds/removes a callback called on creation of each new WebContents. | 1283 // Adds/removes a callback called on creation of each new WebContents. |
1286 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1284 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1287 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1285 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1288 | 1286 |
1289 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1287 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1290 }; | 1288 }; |
1291 | 1289 |
1292 } // namespace content | 1290 } // namespace content |
1293 | 1291 |
1294 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1292 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |