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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 // SSLStatus to record the sensitive input field, so that embedders | 712 // SSLStatus to record the sensitive input field, so that embedders |
713 // can adjust the UI if desired. | 713 // can adjust the UI if desired. |
714 virtual void OnPasswordInputShownOnHttp() = 0; | 714 virtual void OnPasswordInputShownOnHttp() = 0; |
715 | 715 |
716 // Called when the WebContents has displayed a credit card field on an | 716 // Called when the WebContents has displayed a credit card field on an |
717 // HTTP page. This method modifies the appropriate NavigationEntry's | 717 // HTTP page. This method modifies the appropriate NavigationEntry's |
718 // SSLStatus to record the sensitive input field, so that embedders | 718 // SSLStatus to record the sensitive input field, so that embedders |
719 // can adjust the UI if desired. | 719 // can adjust the UI if desired. |
720 virtual void OnCreditCardInputShownOnHttp() = 0; | 720 virtual void OnCreditCardInputShownOnHttp() = 0; |
721 | 721 |
| 722 // Sets whether the WebContents is for overlaying content on a page. |
| 723 virtual void SetIsOverlayContent(bool is_overlay_content) = 0; |
| 724 |
722 #if defined(OS_ANDROID) | 725 #if defined(OS_ANDROID) |
723 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 726 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
724 const base::android::JavaRef<jobject>& jweb_contents_android); | 727 const base::android::JavaRef<jobject>& jweb_contents_android); |
725 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 728 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
726 | 729 |
727 // Selects and zooms to the find result nearest to the point (x,y) defined in | 730 // Selects and zooms to the find result nearest to the point (x,y) defined in |
728 // find-in-page coordinates. | 731 // find-in-page coordinates. |
729 virtual void ActivateNearestFindResult(float x, float y) = 0; | 732 virtual void ActivateNearestFindResult(float x, float y) = 0; |
730 | 733 |
731 // Requests the rects of the current find matches from the renderer | 734 // Requests the rects of the current find matches from the renderer |
(...skipping 21 matching lines...) Expand all Loading... |
753 | 756 |
754 private: | 757 private: |
755 // This interface should only be implemented inside content. | 758 // This interface should only be implemented inside content. |
756 friend class WebContentsImpl; | 759 friend class WebContentsImpl; |
757 WebContents() {} | 760 WebContents() {} |
758 }; | 761 }; |
759 | 762 |
760 } // namespace content | 763 } // namespace content |
761 | 764 |
762 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 765 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |