| 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 <memory> | 10 #include <memory> |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 // SSLStatus to record the sensitive input field, so that embedders | 724 // SSLStatus to record the sensitive input field, so that embedders |
| 725 // can adjust the UI if desired. | 725 // can adjust the UI if desired. |
| 726 virtual void OnCreditCardInputShownOnHttp() = 0; | 726 virtual void OnCreditCardInputShownOnHttp() = 0; |
| 727 | 727 |
| 728 // Sets whether the WebContents is for overlaying content on a page. | 728 // Sets whether the WebContents is for overlaying content on a page. |
| 729 virtual void SetIsOverlayContent(bool is_overlay_content) = 0; | 729 virtual void SetIsOverlayContent(bool is_overlay_content) = 0; |
| 730 | 730 |
| 731 virtual int GetCurrentlyPlayingVideoCount() = 0; | 731 virtual int GetCurrentlyPlayingVideoCount() = 0; |
| 732 virtual bool IsFullscreen() = 0; | 732 virtual bool IsFullscreen() = 0; |
| 733 | 733 |
| 734 // Tells the renderer to clear the focused element (if any). |
| 735 virtual void ClearFocusedElement() = 0; |
| 736 |
| 737 // Returns true if the current focused element is editable. |
| 738 virtual bool IsFocusedElementEditable() = 0; |
| 739 |
| 734 #if defined(OS_ANDROID) | 740 #if defined(OS_ANDROID) |
| 735 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 741 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
| 736 const base::android::JavaRef<jobject>& jweb_contents_android); | 742 const base::android::JavaRef<jobject>& jweb_contents_android); |
| 737 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 743 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
| 738 | 744 |
| 739 // Selects and zooms to the find result nearest to the point (x,y) defined in | 745 // Selects and zooms to the find result nearest to the point (x,y) defined in |
| 740 // find-in-page coordinates. | 746 // find-in-page coordinates. |
| 741 virtual void ActivateNearestFindResult(float x, float y) = 0; | 747 virtual void ActivateNearestFindResult(float x, float y) = 0; |
| 742 | 748 |
| 743 // Requests the rects of the current find matches from the renderer | 749 // Requests the rects of the current find matches from the renderer |
| (...skipping 21 matching lines...) Expand all Loading... |
| 765 | 771 |
| 766 private: | 772 private: |
| 767 // This interface should only be implemented inside content. | 773 // This interface should only be implemented inside content. |
| 768 friend class WebContentsImpl; | 774 friend class WebContentsImpl; |
| 769 WebContents() {} | 775 WebContents() {} |
| 770 }; | 776 }; |
| 771 | 777 |
| 772 } // namespace content | 778 } // namespace content |
| 773 | 779 |
| 774 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 780 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |