| 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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 int active_match_ordinal, | 786 int active_match_ordinal, |
| 787 bool final_update); | 787 bool final_update); |
| 788 | 788 |
| 789 // Modify the counter of connected devices for this WebContents. | 789 // Modify the counter of connected devices for this WebContents. |
| 790 void IncrementBluetoothConnectedDeviceCount(); | 790 void IncrementBluetoothConnectedDeviceCount(); |
| 791 void DecrementBluetoothConnectedDeviceCount(); | 791 void DecrementBluetoothConnectedDeviceCount(); |
| 792 | 792 |
| 793 // Called when the WebContents gains or loses a persistent video. | 793 // Called when the WebContents gains or loses a persistent video. |
| 794 void SetHasPersistentVideo(bool value); | 794 void SetHasPersistentVideo(bool value); |
| 795 | 795 |
| 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 |
| 798 // a fullscreen page (in other words, a fullscreen video with custom |
| 799 // controls). |
| 800 // |IsFullscreen| must return |true| when this method is called. |
| 801 bool HasActiveEffectivelyFullscreenVideo() const; |
| 802 |
| 796 #if defined(OS_ANDROID) | 803 #if defined(OS_ANDROID) |
| 797 // Called by FindRequestManager when all of the find match rects are in. | 804 // Called by FindRequestManager when all of the find match rects are in. |
| 798 void NotifyFindMatchRectsReply(int version, | 805 void NotifyFindMatchRectsReply(int version, |
| 799 const std::vector<gfx::RectF>& rects, | 806 const std::vector<gfx::RectF>& rects, |
| 800 const gfx::RectF& active_rect); | 807 const gfx::RectF& active_rect); |
| 801 #endif | 808 #endif |
| 802 | 809 |
| 803 private: | 810 private: |
| 804 friend class WebContentsObserver; | 811 friend class WebContentsObserver; |
| 805 friend class WebContents; // To implement factory methods. | 812 friend class WebContents; // To implement factory methods. |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1529 // Adds/removes a callback called on creation of each new WebContents. | 1536 // Adds/removes a callback called on creation of each new WebContents. |
| 1530 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1537 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1531 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1538 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1532 | 1539 |
| 1533 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1540 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1534 }; | 1541 }; |
| 1535 | 1542 |
| 1536 } // namespace content | 1543 } // namespace content |
| 1537 | 1544 |
| 1538 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1545 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |