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

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: Add GuestViewBase delegate method Created 5 years, 7 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 virtual bool WasRecentlyAudible() = 0; 621 virtual bool WasRecentlyAudible() = 0;
622 622
623 typedef base::Callback<void(const Manifest&)> GetManifestCallback; 623 typedef base::Callback<void(const Manifest&)> GetManifestCallback;
624 624
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 // Unblocks requests from renderer for a newly created window. This is
632 // used in showCreatedWindow() or sometimes later in cases where
633 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests
634 // should not yet be resumed. Then the client is responsible for calling this
635 // as soon as they are ready.
636 virtual void ResumeLoadingCreatedWebContents() = 0;
637
631 #if defined(OS_ANDROID) 638 #if defined(OS_ANDROID)
632 CONTENT_EXPORT static WebContents* FromJavaWebContents( 639 CONTENT_EXPORT static WebContents* FromJavaWebContents(
633 jobject jweb_contents_android); 640 jobject jweb_contents_android);
634 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; 641 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
635 #elif defined(OS_MACOSX) 642 #elif defined(OS_MACOSX)
636 // Allowing other views disables optimizations which assume that only a single 643 // Allowing other views disables optimizations which assume that only a single
637 // WebContents is present. 644 // WebContents is present.
638 virtual void SetAllowOtherViews(bool allow) = 0; 645 virtual void SetAllowOtherViews(bool allow) = 0;
639 646
640 // Returns true if other views are allowed, false otherwise. 647 // Returns true if other views are allowed, false otherwise.
641 virtual bool GetAllowOtherViews() = 0; 648 virtual bool GetAllowOtherViews() = 0;
642 #endif // OS_ANDROID 649 #endif // OS_ANDROID
643 650
644 private: 651 private:
645 // This interface should only be implemented inside content. 652 // This interface should only be implemented inside content.
646 friend class WebContentsImpl; 653 friend class WebContentsImpl;
647 WebContents() {} 654 WebContents() {}
648 }; 655 };
649 656
650 } // namespace content 657 } // namespace content
651 658
652 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 659 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698