Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2693203002: Provide a WebContents API to discover the playback of a fullscreen video. (Closed)
Patch Set: review comments and compile fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 int active_match_ordinal, 788 int active_match_ordinal,
789 bool final_update); 789 bool final_update);
790 790
791 // Modify the counter of connected devices for this WebContents. 791 // Modify the counter of connected devices for this WebContents.
792 void IncrementBluetoothConnectedDeviceCount(); 792 void IncrementBluetoothConnectedDeviceCount();
793 void DecrementBluetoothConnectedDeviceCount(); 793 void DecrementBluetoothConnectedDeviceCount();
794 794
795 // Called when the WebContents gains or loses a persistent video. 795 // Called when the WebContents gains or loses a persistent video.
796 void SetHasPersistentVideo(bool value); 796 void SetHasPersistentVideo(bool value);
797 797
798 // Whether the WebContents has an active fullscreen video that is either using
799 // native or custom controls.
Charlie Reis 2017/02/23 00:18:08 I think the description of "effectively fullscreen
mlamouri (slow - plz ping) 2017/02/23 13:34:19 Done.
800 // |IsFullscreen| must return |true| when this method is called.
801 bool HasActiveEffectivelyFullscreenVideo() const;
802
798 #if defined(OS_ANDROID) 803 #if defined(OS_ANDROID)
799 // 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.
800 void NotifyFindMatchRectsReply(int version, 805 void NotifyFindMatchRectsReply(int version,
801 const std::vector<gfx::RectF>& rects, 806 const std::vector<gfx::RectF>& rects,
802 const gfx::RectF& active_rect); 807 const gfx::RectF& active_rect);
803 #endif 808 #endif
804 809
805 private: 810 private:
806 friend class WebContentsObserver; 811 friend class WebContentsObserver;
807 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
1531 // Adds/removes a callback called on creation of each new WebContents. 1536 // Adds/removes a callback called on creation of each new WebContents.
1532 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1537 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1533 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1538 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1534 1539
1535 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1540 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1536 }; 1541 };
1537 1542
1538 } // namespace content 1543 } // namespace content
1539 1544
1540 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1545 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698