| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 bool WasRecentlyAudible() override; | 449 bool WasRecentlyAudible() override; |
| 450 void GetManifest(const GetManifestCallback& callback) override; | 450 void GetManifest(const GetManifestCallback& callback) override; |
| 451 void ExitFullscreen(bool will_cause_resize) override; | 451 void ExitFullscreen(bool will_cause_resize) override; |
| 452 void ResumeLoadingCreatedWebContents() override; | 452 void ResumeLoadingCreatedWebContents() override; |
| 453 void OnPasswordInputShownOnHttp() override; | 453 void OnPasswordInputShownOnHttp() override; |
| 454 void OnAllPasswordInputsHiddenOnHttp() override; | 454 void OnAllPasswordInputsHiddenOnHttp() override; |
| 455 void OnCreditCardInputShownOnHttp() override; | 455 void OnCreditCardInputShownOnHttp() override; |
| 456 void SetIsOverlayContent(bool is_overlay_content) override; | 456 void SetIsOverlayContent(bool is_overlay_content) override; |
| 457 bool IsFocusedElementEditable() override; | 457 bool IsFocusedElementEditable() override; |
| 458 void ClearFocusedElement() override; | 458 void ClearFocusedElement() override; |
| 459 bool IsShowingContextMenu() const override; |
| 460 void SetShowingContextMenu(bool showing) override; |
| 459 | 461 |
| 460 #if defined(OS_ANDROID) | 462 #if defined(OS_ANDROID) |
| 461 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 463 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
| 462 virtual WebContentsAndroid* GetWebContentsAndroid(); | 464 virtual WebContentsAndroid* GetWebContentsAndroid(); |
| 463 void ActivateNearestFindResult(float x, float y) override; | 465 void ActivateNearestFindResult(float x, float y) override; |
| 464 void RequestFindMatchRects(int current_version) override; | 466 void RequestFindMatchRects(int current_version) override; |
| 465 service_manager::InterfaceProvider* GetJavaInterfaces() override; | 467 service_manager::InterfaceProvider* GetJavaInterfaces() override; |
| 466 #elif defined(OS_MACOSX) | 468 #elif defined(OS_MACOSX) |
| 467 void SetAllowOtherViews(bool allow) override; | 469 void SetAllowOtherViews(bool allow) override; |
| 468 bool GetAllowOtherViews() override; | 470 bool GetAllowOtherViews() override; |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 void OnRenderFrameProxyVisibilityChanged(bool visible) override; | 715 void OnRenderFrameProxyVisibilityChanged(bool visible) override; |
| 714 void SendScreenRects() override; | 716 void SendScreenRects() override; |
| 715 TextInputManager* GetTextInputManager() override; | 717 TextInputManager* GetTextInputManager() override; |
| 716 bool OnUpdateDragCursor() override; | 718 bool OnUpdateDragCursor() override; |
| 717 bool IsWidgetForMainFrame(RenderWidgetHostImpl* render_widget_host) override; | 719 bool IsWidgetForMainFrame(RenderWidgetHostImpl* render_widget_host) override; |
| 718 bool AddDomainInfoToRapporSample(rappor::Sample* sample) override; | 720 bool AddDomainInfoToRapporSample(rappor::Sample* sample) override; |
| 719 void UpdateUrlForUkmSource(ukm::UkmRecorder* service, | 721 void UpdateUrlForUkmSource(ukm::UkmRecorder* service, |
| 720 ukm::SourceId ukm_source_id) override; | 722 ukm::SourceId ukm_source_id) override; |
| 721 void FocusedNodeTouched(bool editable) override; | 723 void FocusedNodeTouched(bool editable) override; |
| 722 void DidReceiveCompositorFrame() override; | 724 void DidReceiveCompositorFrame() override; |
| 725 bool IsShowingContextMenuOnPage() const override; |
| 723 | 726 |
| 724 // RenderFrameHostManager::Delegate ------------------------------------------ | 727 // RenderFrameHostManager::Delegate ------------------------------------------ |
| 725 | 728 |
| 726 bool CreateRenderViewForRenderManager( | 729 bool CreateRenderViewForRenderManager( |
| 727 RenderViewHost* render_view_host, | 730 RenderViewHost* render_view_host, |
| 728 int opener_frame_routing_id, | 731 int opener_frame_routing_id, |
| 729 int proxy_routing_id, | 732 int proxy_routing_id, |
| 730 const FrameReplicationState& replicated_frame_state) override; | 733 const FrameReplicationState& replicated_frame_state) override; |
| 731 void CreateRenderWidgetHostViewForRenderManager( | 734 void CreateRenderWidgetHostViewForRenderManager( |
| 732 RenderViewHost* render_view_host) override; | 735 RenderViewHost* render_view_host) override; |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1598 // there's no RenderWidgetHost holding a lock. | 1601 // there's no RenderWidgetHost holding a lock. |
| 1599 RenderWidgetHostImpl* mouse_lock_widget_; | 1602 RenderWidgetHostImpl* mouse_lock_widget_; |
| 1600 | 1603 |
| 1601 #if defined(OS_ANDROID) | 1604 #if defined(OS_ANDROID) |
| 1602 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; | 1605 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; |
| 1603 #endif | 1606 #endif |
| 1604 | 1607 |
| 1605 // Whether this WebContents is for content overlay. | 1608 // Whether this WebContents is for content overlay. |
| 1606 bool is_overlay_content_; | 1609 bool is_overlay_content_; |
| 1607 | 1610 |
| 1611 bool showing_context_menu_; |
| 1612 |
| 1608 int currently_playing_video_count_ = 0; | 1613 int currently_playing_video_count_ = 0; |
| 1609 | 1614 |
| 1610 bool has_persistent_video_ = false; | 1615 bool has_persistent_video_ = false; |
| 1611 | 1616 |
| 1612 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1617 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
| 1613 base::WeakPtrFactory<WebContentsImpl> weak_factory_; | 1618 base::WeakPtrFactory<WebContentsImpl> weak_factory_; |
| 1614 | 1619 |
| 1615 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1620 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1616 }; | 1621 }; |
| 1617 | 1622 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1628 // Adds/removes a callback called on creation of each new WebContents. | 1633 // Adds/removes a callback called on creation of each new WebContents. |
| 1629 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1634 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1630 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1635 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1631 | 1636 |
| 1632 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1637 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
| 1633 }; | 1638 }; |
| 1634 | 1639 |
| 1635 } // namespace content | 1640 } // namespace content |
| 1636 | 1641 |
| 1637 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1642 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |