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

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: 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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 int active_match_ordinal, 779 int active_match_ordinal,
780 bool final_update); 780 bool final_update);
781 781
782 // Modify the counter of connected devices for this WebContents. 782 // Modify the counter of connected devices for this WebContents.
783 void IncrementBluetoothConnectedDeviceCount(); 783 void IncrementBluetoothConnectedDeviceCount();
784 void DecrementBluetoothConnectedDeviceCount(); 784 void DecrementBluetoothConnectedDeviceCount();
785 785
786 // Called when the WebContents gains or loses a persistent video. 786 // Called when the WebContents gains or loses a persistent video.
787 void SetHasPersistentVideo(bool value); 787 void SetHasPersistentVideo(bool value);
788 788
789 // Whether the WebContents has an active fullscreen video or a dominant video
790 // while the WebContents is fullscreen.
791 // |IsFullscreen| must return |true| when this method is called.
liberato (no reviews please) 2017/02/14 23:00:01 why?
mlamouri (slow - plz ping) 2017/02/17 16:36:24 The DCHECK() is just because it would basically me
792 virtual bool HasActiveFullscreenDominantVideo() const;
793
789 #if defined(OS_ANDROID) 794 #if defined(OS_ANDROID)
790 // Called by FindRequestManager when all of the find match rects are in. 795 // Called by FindRequestManager when all of the find match rects are in.
791 void NotifyFindMatchRectsReply(int version, 796 void NotifyFindMatchRectsReply(int version,
792 const std::vector<gfx::RectF>& rects, 797 const std::vector<gfx::RectF>& rects,
793 const gfx::RectF& active_rect); 798 const gfx::RectF& active_rect);
794 #endif 799 #endif
795 800
796 private: 801 private:
797 friend class WebContentsObserver; 802 friend class WebContentsObserver;
798 friend class WebContents; // To implement factory methods. 803 friend class WebContents; // To implement factory methods.
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
1518 // Adds/removes a callback called on creation of each new WebContents. 1523 // Adds/removes a callback called on creation of each new WebContents.
1519 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1524 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1520 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1525 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1521 1526
1522 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1527 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1523 }; 1528 };
1524 1529
1525 } // namespace content 1530 } // namespace content
1526 1531
1527 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1532 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698