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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 // browser fullscreen. | 693 // browser fullscreen. |
694 virtual void ExitFullscreen(bool will_cause_resize) = 0; | 694 virtual void ExitFullscreen(bool will_cause_resize) = 0; |
695 | 695 |
696 // Unblocks requests from renderer for a newly created window. This is | 696 // Unblocks requests from renderer for a newly created window. This is |
697 // used in showCreatedWindow() or sometimes later in cases where | 697 // used in showCreatedWindow() or sometimes later in cases where |
698 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests | 698 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests |
699 // should not yet be resumed. Then the client is responsible for calling this | 699 // should not yet be resumed. Then the client is responsible for calling this |
700 // as soon as they are ready. | 700 // as soon as they are ready. |
701 virtual void ResumeLoadingCreatedWebContents() = 0; | 701 virtual void ResumeLoadingCreatedWebContents() = 0; |
702 | 702 |
703 // Requests to resume the current media session. | |
704 virtual void ResumeMediaSession() = 0; | |
705 // Requests to suspend the current media session. | |
706 virtual void SuspendMediaSession() = 0; | |
707 // Requests to stop the current media session. | |
708 virtual void StopMediaSession() = 0; | |
709 | |
710 // Called when the WebContents has displayed a password field on an | 703 // Called when the WebContents has displayed a password field on an |
711 // HTTP page. This method modifies the appropriate NavigationEntry's | 704 // HTTP page. This method modifies the appropriate NavigationEntry's |
712 // SSLStatus to record the sensitive input field, so that embedders | 705 // SSLStatus to record the sensitive input field, so that embedders |
713 // can adjust the UI if desired. | 706 // can adjust the UI if desired. |
714 virtual void OnPasswordInputShownOnHttp() = 0; | 707 virtual void OnPasswordInputShownOnHttp() = 0; |
715 | 708 |
716 // Called when the WebContents has displayed a credit card field on an | 709 // Called when the WebContents has displayed a credit card field on an |
717 // HTTP page. This method modifies the appropriate NavigationEntry's | 710 // HTTP page. This method modifies the appropriate NavigationEntry's |
718 // SSLStatus to record the sensitive input field, so that embedders | 711 // SSLStatus to record the sensitive input field, so that embedders |
719 // can adjust the UI if desired. | 712 // can adjust the UI if desired. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 | 746 |
754 private: | 747 private: |
755 // This interface should only be implemented inside content. | 748 // This interface should only be implemented inside content. |
756 friend class WebContentsImpl; | 749 friend class WebContentsImpl; |
757 WebContents() {} | 750 WebContents() {} |
758 }; | 751 }; |
759 | 752 |
760 } // namespace content | 753 } // namespace content |
761 | 754 |
762 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 755 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |