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

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

Issue 1851793002: Implement a shell of FindRequestManager, and hook it up to WebContentsImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and small fix. Created 4 years, 8 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
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 <set> 10 #include <set>
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 virtual void ResumeMediaSession() = 0; 701 virtual void ResumeMediaSession() = 0;
702 // Requests to suspend the current media session. 702 // Requests to suspend the current media session.
703 virtual void SuspendMediaSession() = 0; 703 virtual void SuspendMediaSession() = 0;
704 // Requests to stop the current media session. 704 // Requests to stop the current media session.
705 virtual void StopMediaSession() = 0; 705 virtual void StopMediaSession() = 0;
706 706
707 #if defined(OS_ANDROID) 707 #if defined(OS_ANDROID)
708 CONTENT_EXPORT static WebContents* FromJavaWebContents( 708 CONTENT_EXPORT static WebContents* FromJavaWebContents(
709 jobject jweb_contents_android); 709 jobject jweb_contents_android);
710 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 710 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
711
712 // Selects and zooms to the find result nearest to the point (x,y) defined in
713 // find-in-page coordinates.
714 virtual void ActivateNearestFindResult(float x, float y) = 0;
715
716 // Requests the rects of the current find matches from the renderer
717 // process. |current_version| is the version of find rects that the caller
718 // already knows about. This version will be compared to the current find
719 // rects version in the renderer process (which is updated whenever the rects
720 // change), to see which new rect data will need to be sent back.
721 //
722 // TODO(paulmeyer): This process will change slightly once multi-process
723 // find-in-page is implemented. This comment should be updated at that time.
724 virtual void RequestFindMatchRects(int current_version) = 0;
711 #elif defined(OS_MACOSX) 725 #elif defined(OS_MACOSX)
712 // Allowing other views disables optimizations which assume that only a single 726 // Allowing other views disables optimizations which assume that only a single
713 // WebContents is present. 727 // WebContents is present.
714 virtual void SetAllowOtherViews(bool allow) = 0; 728 virtual void SetAllowOtherViews(bool allow) = 0;
715 729
716 // Returns true if other views are allowed, false otherwise. 730 // Returns true if other views are allowed, false otherwise.
717 virtual bool GetAllowOtherViews() = 0; 731 virtual bool GetAllowOtherViews() = 0;
718 #endif // OS_ANDROID 732 #endif // OS_ANDROID
719 733
720 private: 734 private:
721 // This interface should only be implemented inside content. 735 // This interface should only be implemented inside content.
722 friend class WebContentsImpl; 736 friend class WebContentsImpl;
723 WebContents() {} 737 WebContents() {}
724 }; 738 };
725 739
726 } // namespace content 740 } // namespace content
727 741
728 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 742 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | extensions/browser/guest_view/web_view/web_view_find_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698