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