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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 794 void SetHasPersistentVideo(bool value); | 794 void SetHasPersistentVideo(bool value); |
| 795 | 795 |
| 796 // Whether the WebContents has an active player is effectively fullscreen. | 796 // Whether the WebContents has an active player is effectively fullscreen. |
| 797 // That means that the video is either fullscreen or it is the content of | 797 // That means that the video is either fullscreen or it is the content of |
| 798 // a fullscreen page (in other words, a fullscreen video with custom | 798 // a fullscreen page (in other words, a fullscreen video with custom |
| 799 // controls). | 799 // controls). |
| 800 // |IsFullscreen| must return |true| when this method is called. | 800 // |IsFullscreen| must return |true| when this method is called. |
| 801 bool HasActiveEffectivelyFullscreenVideo() const; | 801 bool HasActiveEffectivelyFullscreenVideo() const; |
| 802 | 802 |
| 803 #if defined(OS_ANDROID) | 803 #if defined(OS_ANDROID) |
| 804 base::android::ScopedJavaLocalRef<jobject> CreateJavaEventHandlerFromNative(); | |
|
David Trainor- moved to gerrit
2017/02/28 01:31:23
Should this live on WebContentsAndroid?
Jinsuk Kim
2017/02/28 06:56:04
That's better. Done.
| |
| 805 | |
| 804 // Called by FindRequestManager when all of the find match rects are in. | 806 // Called by FindRequestManager when all of the find match rects are in. |
| 805 void NotifyFindMatchRectsReply(int version, | 807 void NotifyFindMatchRectsReply(int version, |
| 806 const std::vector<gfx::RectF>& rects, | 808 const std::vector<gfx::RectF>& rects, |
| 807 const gfx::RectF& active_rect); | 809 const gfx::RectF& active_rect); |
| 808 #endif | 810 #endif |
| 809 | 811 |
| 810 private: | 812 private: |
| 811 friend class WebContentsObserver; | 813 friend class WebContentsObserver; |
| 812 friend class WebContents; // To implement factory methods. | 814 friend class WebContents; // To implement factory methods. |
| 813 | 815 |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1536 // Adds/removes a callback called on creation of each new WebContents. | 1538 // Adds/removes a callback called on creation of each new WebContents. |
| 1537 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1539 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1538 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1540 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1539 | 1541 |
| 1540 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1542 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1541 }; | 1543 }; |
| 1542 | 1544 |
| 1543 } // namespace content | 1545 } // namespace content |
| 1544 | 1546 |
| 1545 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1547 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |