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

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

Issue 2641403002: [refactor] - Move IsFocusedElementEditable() and ClearFocusedElement() from RenderViewHost to WebCo… (Closed)
Patch Set: Addressed sky@'s comment Created 3 years, 11 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_view_host.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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698