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. | |
nasko
2015/06/04 20:18:00
Why is this comment beneficial?
mohsen
2015/06/04 23:11:38
If we don't include this comment and three below l
| |
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 bool for_main_frame_navigation) override; | 580 bool for_main_frame_navigation) override; |
576 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, | 581 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, |
577 int parent_routing_id, | 582 int parent_routing_id, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
667 | 672 |
668 // Changes the IsLoading state and notifies the delegate as needed. | 673 // Changes the IsLoading state and notifies the delegate as needed. |
669 // |details| is used to provide details on the load that just finished | 674 // |details| is used to provide details on the load that just finished |
670 // (but can be null if not applicable). | 675 // (but can be null if not applicable). |
671 void SetIsLoading(bool is_loading, | 676 void SetIsLoading(bool is_loading, |
672 bool to_different_document, | 677 bool to_different_document, |
673 LoadNotificationDetails* details) override; | 678 LoadNotificationDetails* details) override; |
674 | 679 |
675 typedef base::Callback<void(WebContents*)> CreatedCallback; | 680 typedef base::Callback<void(WebContents*)> CreatedCallback; |
676 | 681 |
677 // Requests the renderer to move the selection extent to a new position. | |
678 void MoveRangeSelectionExtent(const gfx::Point& extent); | |
679 | |
680 // Requests the renderer to select the region between two points in the | |
681 // currently focused frame. | |
682 void SelectRange(const gfx::Point& base, const gfx::Point& extent); | |
683 | |
684 // Forces overscroll to be disabled (used by touch emulation). | 682 // Forces overscroll to be disabled (used by touch emulation). |
685 void SetForceDisableOverscrollContent(bool force_disable); | 683 void SetForceDisableOverscrollContent(bool force_disable); |
686 | 684 |
687 AudioStateProvider* audio_state_provider() { | 685 AudioStateProvider* audio_state_provider() { |
688 return audio_state_provider_.get(); | 686 return audio_state_provider_.get(); |
689 } | 687 } |
690 | 688 |
691 bool has_audio_power_save_blocker_for_testing() const { | 689 bool has_audio_power_save_blocker_for_testing() const { |
692 return audio_power_save_blocker_; | 690 return audio_power_save_blocker_; |
693 } | 691 } |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1284 // Adds/removes a callback called on creation of each new WebContents. | 1282 // Adds/removes a callback called on creation of each new WebContents. |
1285 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1283 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1286 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1284 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1287 | 1285 |
1288 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1286 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1289 }; | 1287 }; |
1290 | 1288 |
1291 } // namespace content | 1289 } // namespace content |
1292 | 1290 |
1293 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1291 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |