| 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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 | 775 |
| 776 virtual int GetCurrentlyPlayingVideoCount() = 0; | 776 virtual int GetCurrentlyPlayingVideoCount() = 0; |
| 777 virtual bool IsFullscreen() = 0; | 777 virtual bool IsFullscreen() = 0; |
| 778 | 778 |
| 779 // Tells the renderer to clear the focused element (if any). | 779 // Tells the renderer to clear the focused element (if any). |
| 780 virtual void ClearFocusedElement() = 0; | 780 virtual void ClearFocusedElement() = 0; |
| 781 | 781 |
| 782 // Returns true if the current focused element is editable. | 782 // Returns true if the current focused element is editable. |
| 783 virtual bool IsFocusedElementEditable() = 0; | 783 virtual bool IsFocusedElementEditable() = 0; |
| 784 | 784 |
| 785 // Returns true if a context menu is showing on the page. |
| 786 virtual bool IsShowingContextMenu() const = 0; |
| 787 |
| 788 // Tells the WebContents whether the context menu is showing. |
| 789 virtual void SetShowingContextMenu(bool showing) = 0; |
| 790 |
| 785 #if defined(OS_ANDROID) | 791 #if defined(OS_ANDROID) |
| 786 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 792 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
| 787 const base::android::JavaRef<jobject>& jweb_contents_android); | 793 const base::android::JavaRef<jobject>& jweb_contents_android); |
| 788 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 794 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
| 789 | 795 |
| 790 // Selects and zooms to the find result nearest to the point (x,y) defined in | 796 // Selects and zooms to the find result nearest to the point (x,y) defined in |
| 791 // find-in-page coordinates. | 797 // find-in-page coordinates. |
| 792 virtual void ActivateNearestFindResult(float x, float y) = 0; | 798 virtual void ActivateNearestFindResult(float x, float y) = 0; |
| 793 | 799 |
| 794 // Requests the rects of the current find matches from the renderer | 800 // Requests the rects of the current find matches from the renderer |
| (...skipping 21 matching lines...) Expand all Loading... |
| 816 | 822 |
| 817 private: | 823 private: |
| 818 // This interface should only be implemented inside content. | 824 // This interface should only be implemented inside content. |
| 819 friend class WebContentsImpl; | 825 friend class WebContentsImpl; |
| 820 WebContents() {} | 826 WebContents() {} |
| 821 }; | 827 }; |
| 822 | 828 |
| 823 } // namespace content | 829 } // namespace content |
| 824 | 830 |
| 825 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 831 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |