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

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: Small rename to clarify 'session' vs. 'request'. 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 virtual void ResumeMediaSession() = 0; 700 virtual void ResumeMediaSession() = 0;
701 // Requests to suspend the current media session. 701 // Requests to suspend the current media session.
702 virtual void SuspendMediaSession() = 0; 702 virtual void SuspendMediaSession() = 0;
703 // Requests to stop the current media session. 703 // Requests to stop the current media session.
704 virtual void StopMediaSession() = 0; 704 virtual void StopMediaSession() = 0;
705 705
706 #if defined(OS_ANDROID) 706 #if defined(OS_ANDROID)
707 CONTENT_EXPORT static WebContents* FromJavaWebContents( 707 CONTENT_EXPORT static WebContents* FromJavaWebContents(
708 jobject jweb_contents_android); 708 jobject jweb_contents_android);
709 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 709 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
710
711 // Selects and zooms to the find result nearest to the point (x,y) defined in
712 // find-in-page coordinates.
ncarter (slow) 2016/04/06 19:08:03 Could you document what find-in-page coordinates a
paulmeyer 2016/04/07 17:36:15 Find-in-page coordinates are explained in FindInPa
713 virtual void ActivateNearestFindResult(float x, float y) = 0;
714
715 // Requests the rects of the current find matches from the renderers.
ncarter (slow) 2016/04/06 19:08:03 Could you document what |current_version| means, w
paulmeyer 2016/04/07 17:36:15 Done.
716 virtual void RequestFindMatchRects(int current_version) = 0;
710 #elif defined(OS_MACOSX) 717 #elif defined(OS_MACOSX)
711 // Allowing other views disables optimizations which assume that only a single 718 // Allowing other views disables optimizations which assume that only a single
712 // WebContents is present. 719 // WebContents is present.
713 virtual void SetAllowOtherViews(bool allow) = 0; 720 virtual void SetAllowOtherViews(bool allow) = 0;
714 721
715 // Returns true if other views are allowed, false otherwise. 722 // Returns true if other views are allowed, false otherwise.
716 virtual bool GetAllowOtherViews() = 0; 723 virtual bool GetAllowOtherViews() = 0;
717 #endif // OS_ANDROID 724 #endif // OS_ANDROID
718 725
719 private: 726 private:
720 // This interface should only be implemented inside content. 727 // This interface should only be implemented inside content.
721 friend class WebContentsImpl; 728 friend class WebContentsImpl;
722 WebContents() {} 729 WebContents() {}
723 }; 730 };
724 731
725 } // namespace content 732 } // namespace content
726 733
727 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 734 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698