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

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

Issue 2315323002: Pass JavaRef to WebContents::FromJavaWebContents. (Closed)
Patch Set: Created 4 years, 3 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/browser/web_contents/web_contents_android.cc ('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 <set> 10 #include <set>
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 704
705 // Requests to resume the current media session. 705 // Requests to resume the current media session.
706 virtual void ResumeMediaSession() = 0; 706 virtual void ResumeMediaSession() = 0;
707 // Requests to suspend the current media session. 707 // Requests to suspend the current media session.
708 virtual void SuspendMediaSession() = 0; 708 virtual void SuspendMediaSession() = 0;
709 // Requests to stop the current media session. 709 // Requests to stop the current media session.
710 virtual void StopMediaSession() = 0; 710 virtual void StopMediaSession() = 0;
711 711
712 #if defined(OS_ANDROID) 712 #if defined(OS_ANDROID)
713 CONTENT_EXPORT static WebContents* FromJavaWebContents( 713 CONTENT_EXPORT static WebContents* FromJavaWebContents(
714 jobject jweb_contents_android); 714 const base::android::JavaRef<jobject>& jweb_contents_android);
715 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 715 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
716 716
717 // Selects and zooms to the find result nearest to the point (x,y) defined in 717 // Selects and zooms to the find result nearest to the point (x,y) defined in
718 // find-in-page coordinates. 718 // find-in-page coordinates.
719 virtual void ActivateNearestFindResult(float x, float y) = 0; 719 virtual void ActivateNearestFindResult(float x, float y) = 0;
720 720
721 // Requests the rects of the current find matches from the renderer 721 // Requests the rects of the current find matches from the renderer
722 // process. |current_version| is the version of find rects that the caller 722 // process. |current_version| is the version of find rects that the caller
723 // already knows about. This version will be compared to the current find 723 // already knows about. This version will be compared to the current find
724 // rects version in the renderer process (which is updated whenever the rects 724 // rects version in the renderer process (which is updated whenever the rects
(...skipping 13 matching lines...) Expand all
738 738
739 private: 739 private:
740 // This interface should only be implemented inside content. 740 // This interface should only be implemented inside content.
741 friend class WebContentsImpl; 741 friend class WebContentsImpl;
742 WebContents() {} 742 WebContents() {}
743 }; 743 };
744 744
745 } // namespace content 745 } // namespace content
746 746
747 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 747 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698