Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1357)

Side by Side Diff: content/public/browser/web_contents.h

Issue 2890143003: Move ContextMenu show/hide state tracking to WebContents (Closed)
Patch Set: Remove #if def Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698