Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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; | |
| 631 #if defined(OS_ANDROID) | 637 #if defined(OS_ANDROID) |
|
jam
2015/04/23 21:39:06
nit: blank line above
| |
| 632 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 638 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
| 633 jobject jweb_contents_android); | 639 jobject jweb_contents_android); |
| 634 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 640 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
| 635 #elif defined(OS_MACOSX) | 641 #elif defined(OS_MACOSX) |
| 636 // Allowing other views disables optimizations which assume that only a single | 642 // Allowing other views disables optimizations which assume that only a single |
| 637 // WebContents is present. | 643 // WebContents is present. |
| 638 virtual void SetAllowOtherViews(bool allow) = 0; | 644 virtual void SetAllowOtherViews(bool allow) = 0; |
| 639 | 645 |
| 640 // Returns true if other views are allowed, false otherwise. | 646 // Returns true if other views are allowed, false otherwise. |
| 641 virtual bool GetAllowOtherViews() = 0; | 647 virtual bool GetAllowOtherViews() = 0; |
| 642 #endif // OS_ANDROID | 648 #endif // OS_ANDROID |
| 643 | 649 |
| 644 private: | 650 private: |
| 645 // This interface should only be implemented inside content. | 651 // This interface should only be implemented inside content. |
| 646 friend class WebContentsImpl; | 652 friend class WebContentsImpl; |
| 647 WebContents() {} | 653 WebContents() {} |
| 648 }; | 654 }; |
| 649 | 655 |
| 650 } // namespace content | 656 } // namespace content |
| 651 | 657 |
| 652 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 658 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |