| 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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 // Requests the renderer to exit fullscreen. | 660 // Requests the renderer to exit fullscreen. |
| 661 virtual void ExitFullscreen() = 0; | 661 virtual void ExitFullscreen() = 0; |
| 662 | 662 |
| 663 // Unblocks requests from renderer for a newly created window. This is | 663 // Unblocks requests from renderer for a newly created window. This is |
| 664 // used in showCreatedWindow() or sometimes later in cases where | 664 // used in showCreatedWindow() or sometimes later in cases where |
| 665 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests | 665 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests |
| 666 // should not yet be resumed. Then the client is responsible for calling this | 666 // should not yet be resumed. Then the client is responsible for calling this |
| 667 // as soon as they are ready. | 667 // as soon as they are ready. |
| 668 virtual void ResumeLoadingCreatedWebContents() = 0; | 668 virtual void ResumeLoadingCreatedWebContents() = 0; |
| 669 | 669 |
| 670 #if defined(OS_ANDROID) | 670 #if defined(OS_ANDROID) && !defined(USE_AURA) |
| 671 // Requests to resume the current media session. | 671 // Requests to resume the current media session. |
| 672 virtual void ResumeMediaSession() = 0; | 672 virtual void ResumeMediaSession() = 0; |
| 673 // Requests to suspend the current media session. | 673 // Requests to suspend the current media session. |
| 674 virtual void SuspendMediaSession() = 0; | 674 virtual void SuspendMediaSession() = 0; |
| 675 | 675 |
| 676 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 676 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
| 677 jobject jweb_contents_android); | 677 jobject jweb_contents_android); |
| 678 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 678 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
| 679 #elif defined(OS_MACOSX) | 679 #elif defined(OS_MACOSX) |
| 680 // Allowing other views disables optimizations which assume that only a single | 680 // Allowing other views disables optimizations which assume that only a single |
| 681 // WebContents is present. | 681 // WebContents is present. |
| 682 virtual void SetAllowOtherViews(bool allow) = 0; | 682 virtual void SetAllowOtherViews(bool allow) = 0; |
| 683 | 683 |
| 684 // Returns true if other views are allowed, false otherwise. | 684 // Returns true if other views are allowed, false otherwise. |
| 685 virtual bool GetAllowOtherViews() = 0; | 685 virtual bool GetAllowOtherViews() = 0; |
| 686 #endif // OS_ANDROID | 686 #endif // OS_ANDROID |
| 687 | 687 |
| 688 private: | 688 private: |
| 689 // This interface should only be implemented inside content. | 689 // This interface should only be implemented inside content. |
| 690 friend class WebContentsImpl; | 690 friend class WebContentsImpl; |
| 691 WebContents() {} | 691 WebContents() {} |
| 692 }; | 692 }; |
| 693 | 693 |
| 694 } // namespace content | 694 } // namespace content |
| 695 | 695 |
| 696 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 696 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |