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

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

Issue 1095913002: Fix window.open issue in Document mode on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 // Requests the Manifest of the main frame's document. 625 // Requests the Manifest of the main frame's document.
626 virtual void GetManifest(const GetManifestCallback&) = 0; 626 virtual void GetManifest(const GetManifestCallback&) = 0;
627 627
628 // Requests the renderer to exit fullscreen. 628 // Requests the renderer to exit fullscreen.
629 virtual void ExitFullscreen() = 0; 629 virtual void ExitFullscreen() = 0;
630 630
631 #if defined(OS_ANDROID) 631 #if defined(OS_ANDROID)
632 CONTENT_EXPORT static WebContents* FromJavaWebContents( 632 CONTENT_EXPORT static WebContents* FromJavaWebContents(
633 jobject jweb_contents_android); 633 jobject jweb_contents_android);
634 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 634 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
635
636 // Used by Android only in DocumentMode to resume loading contents created
jam 2015/04/20 16:05:41 nit: remove the redundant "by Android only" since
Maria 2015/04/20 23:40:07 Done.
637 // in new window.
638 virtual void ResumeLoadingCreatedWebContents() = 0;
635 #elif defined(OS_MACOSX) 639 #elif defined(OS_MACOSX)
636 // Allowing other views disables optimizations which assume that only a single 640 // Allowing other views disables optimizations which assume that only a single
637 // WebContents is present. 641 // WebContents is present.
638 virtual void SetAllowOtherViews(bool allow) = 0; 642 virtual void SetAllowOtherViews(bool allow) = 0;
639 643
640 // Returns true if other views are allowed, false otherwise. 644 // Returns true if other views are allowed, false otherwise.
641 virtual bool GetAllowOtherViews() = 0; 645 virtual bool GetAllowOtherViews() = 0;
642 #endif // OS_ANDROID 646 #endif // OS_ANDROID
643 647
644 private: 648 private:
645 // This interface should only be implemented inside content. 649 // This interface should only be implemented inside content.
646 friend class WebContentsImpl; 650 friend class WebContentsImpl;
647 WebContents() {} 651 WebContents() {}
648 }; 652 };
649 653
650 } // namespace content 654 } // namespace content
651 655
652 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 656 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698