| 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 virtual void GetManifest(const GetManifestCallback& callback) = 0; | 662 virtual void GetManifest(const GetManifestCallback& callback) = 0; |
| 663 | 663 |
| 664 typedef base::Callback<void(bool)> HasManifestCallback; | 664 typedef base::Callback<void(bool)> HasManifestCallback; |
| 665 | 665 |
| 666 // Returns true if the main frame has a <link> to a web manifest, otherwise | 666 // Returns true if the main frame has a <link> to a web manifest, otherwise |
| 667 // false. This method does not guarantee that the manifest exists at the | 667 // false. This method does not guarantee that the manifest exists at the |
| 668 // specified location or is valid. | 668 // specified location or is valid. |
| 669 virtual void HasManifest(const HasManifestCallback& callback) = 0; | 669 virtual void HasManifest(const HasManifestCallback& callback) = 0; |
| 670 | 670 |
| 671 // Requests the renderer to exit fullscreen. | 671 // Requests the renderer to exit fullscreen. |
| 672 virtual void ExitFullscreen() = 0; | 672 // |will_cause_resize| indicates whether the fullscreen change causes a |
| 673 // view resize. e.g. This will be false when going from tab fullscreen to |
| 674 // browser fullscreen. |
| 675 virtual void ExitFullscreen(bool will_cause_resize) = 0; |
| 673 | 676 |
| 674 // Unblocks requests from renderer for a newly created window. This is | 677 // Unblocks requests from renderer for a newly created window. This is |
| 675 // used in showCreatedWindow() or sometimes later in cases where | 678 // used in showCreatedWindow() or sometimes later in cases where |
| 676 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests | 679 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests |
| 677 // should not yet be resumed. Then the client is responsible for calling this | 680 // should not yet be resumed. Then the client is responsible for calling this |
| 678 // as soon as they are ready. | 681 // as soon as they are ready. |
| 679 virtual void ResumeLoadingCreatedWebContents() = 0; | 682 virtual void ResumeLoadingCreatedWebContents() = 0; |
| 680 | 683 |
| 681 #if defined(OS_ANDROID) | 684 #if defined(OS_ANDROID) |
| 682 // Requests to resume the current media session. | 685 // Requests to resume the current media session. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 701 | 704 |
| 702 private: | 705 private: |
| 703 // This interface should only be implemented inside content. | 706 // This interface should only be implemented inside content. |
| 704 friend class WebContentsImpl; | 707 friend class WebContentsImpl; |
| 705 WebContents() {} | 708 WebContents() {} |
| 706 }; | 709 }; |
| 707 | 710 |
| 708 } // namespace content | 711 } // namespace content |
| 709 | 712 |
| 710 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 713 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |