Chromium Code Reviews| 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| can be false in the case where we exit tab fullscreen |
|
Avi (use Gerrit)
2016/01/05 16:17:57
Same comment here. "will be false in the case"?
bokan
2016/01/05 17:15:48
Done.
| |
| 673 // into browser fullscreen and thus won't cause bounds to change. | |
| 674 virtual void ExitFullscreen(bool will_cause_resize) = 0; | |
| 673 | 675 |
| 674 // Unblocks requests from renderer for a newly created window. This is | 676 // Unblocks requests from renderer for a newly created window. This is |
| 675 // used in showCreatedWindow() or sometimes later in cases where | 677 // used in showCreatedWindow() or sometimes later in cases where |
| 676 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests | 678 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests |
| 677 // should not yet be resumed. Then the client is responsible for calling this | 679 // should not yet be resumed. Then the client is responsible for calling this |
| 678 // as soon as they are ready. | 680 // as soon as they are ready. |
| 679 virtual void ResumeLoadingCreatedWebContents() = 0; | 681 virtual void ResumeLoadingCreatedWebContents() = 0; |
| 680 | 682 |
| 681 #if defined(OS_ANDROID) | 683 #if defined(OS_ANDROID) |
| 682 // Requests to resume the current media session. | 684 // Requests to resume the current media session. |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 701 | 703 |
| 702 private: | 704 private: |
| 703 // This interface should only be implemented inside content. | 705 // This interface should only be implemented inside content. |
| 704 friend class WebContentsImpl; | 706 friend class WebContentsImpl; |
| 705 WebContents() {} | 707 WebContents() {} |
| 706 }; | 708 }; |
| 707 | 709 |
| 708 } // namespace content | 710 } // namespace content |
| 709 | 711 |
| 710 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 712 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |