| 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 // as soon as they are ready. | 677 // as soon as they are ready. |
| 678 virtual void ResumeLoadingCreatedWebContents() = 0; | 678 virtual void ResumeLoadingCreatedWebContents() = 0; |
| 679 | 679 |
| 680 #if defined(OS_ANDROID) | 680 #if defined(OS_ANDROID) |
| 681 // Requests to resume the current media session. | 681 // Requests to resume the current media session. |
| 682 virtual void ResumeMediaSession() = 0; | 682 virtual void ResumeMediaSession() = 0; |
| 683 // Requests to suspend the current media session. | 683 // Requests to suspend the current media session. |
| 684 virtual void SuspendMediaSession() = 0; | 684 virtual void SuspendMediaSession() = 0; |
| 685 // Requests to stop the current media session. | 685 // Requests to stop the current media session. |
| 686 virtual void StopMediaSession() = 0; | 686 virtual void StopMediaSession() = 0; |
| 687 | 687 #if !defined(USE_AURA) |
| 688 CONTENT_EXPORT static WebContents* FromJavaWebContents( | 688 CONTENT_EXPORT static WebContents* FromJavaWebContents( |
| 689 jobject jweb_contents_android); | 689 jobject jweb_contents_android); |
| 690 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; | 690 virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0; |
| 691 #endif // !USE_AURA |
| 691 #elif defined(OS_MACOSX) | 692 #elif defined(OS_MACOSX) |
| 692 // Allowing other views disables optimizations which assume that only a single | 693 // Allowing other views disables optimizations which assume that only a single |
| 693 // WebContents is present. | 694 // WebContents is present. |
| 694 virtual void SetAllowOtherViews(bool allow) = 0; | 695 virtual void SetAllowOtherViews(bool allow) = 0; |
| 695 | 696 |
| 696 // Returns true if other views are allowed, false otherwise. | 697 // Returns true if other views are allowed, false otherwise. |
| 697 virtual bool GetAllowOtherViews() = 0; | 698 virtual bool GetAllowOtherViews() = 0; |
| 698 #endif // OS_ANDROID | 699 #endif // OS_ANDROID |
| 699 | 700 |
| 700 private: | 701 private: |
| 701 // This interface should only be implemented inside content. | 702 // This interface should only be implemented inside content. |
| 702 friend class WebContentsImpl; | 703 friend class WebContentsImpl; |
| 703 WebContents() {} | 704 WebContents() {} |
| 704 }; | 705 }; |
| 705 | 706 |
| 706 } // namespace content | 707 } // namespace content |
| 707 | 708 |
| 708 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 709 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |