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_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 virtual void ResumeMediaSession() = 0; | 700 virtual void ResumeMediaSession() = 0; |
701 // Requests to suspend the current media session. | 701 // Requests to suspend the current media session. |
702 virtual void SuspendMediaSession() = 0; | 702 virtual void SuspendMediaSession() = 0; |
703 // Requests to stop the current media session. | 703 // Requests to stop the current media session. |
704 virtual void StopMediaSession() = 0; | 704 virtual void StopMediaSession() = 0; |
705 | 705 |
706 #if defined(OS_ANDROID) | 706 #if defined(OS_ANDROID) |
707 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 707 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
708 jobject jweb_contents_android); | 708 jobject jweb_contents_android); |
709 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 709 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
| 710 |
| 711 // Selects and zooms to the find result nearest to the point (x,y) defined in |
| 712 // find-in-page coordinates. |
| 713 virtual void ActivateNearestFindResult(float x, float y) = 0; |
| 714 |
| 715 // Requests the rects of the current find matches from the renderers. |
| 716 virtual void RequestFindMatchRects(int current_version) = 0; |
710 #elif defined(OS_MACOSX) | 717 #elif defined(OS_MACOSX) |
711 // Allowing other views disables optimizations which assume that only a single | 718 // Allowing other views disables optimizations which assume that only a single |
712 // WebContents is present. | 719 // WebContents is present. |
713 virtual void SetAllowOtherViews(bool allow) = 0; | 720 virtual void SetAllowOtherViews(bool allow) = 0; |
714 | 721 |
715 // Returns true if other views are allowed, false otherwise. | 722 // Returns true if other views are allowed, false otherwise. |
716 virtual bool GetAllowOtherViews() = 0; | 723 virtual bool GetAllowOtherViews() = 0; |
717 #endif // OS_ANDROID | 724 #endif // OS_ANDROID |
718 | 725 |
719 private: | 726 private: |
720 // This interface should only be implemented inside content. | 727 // This interface should only be implemented inside content. |
721 friend class WebContentsImpl; | 728 friend class WebContentsImpl; |
722 WebContents() {} | 729 WebContents() {} |
723 }; | 730 }; |
724 | 731 |
725 } // namespace content | 732 } // namespace content |
726 | 733 |
727 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 734 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |