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