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

Side by Side Diff: media/base/overlay_info.cc

Issue 2892083002: Send enter / exit fullscreen signal to AVDA (Closed)
Patch Set: unit test Created 3 years, 7 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/base/overlay_info.h"
6
7 namespace media {
8
9 OverlayInfo::OverlayInfo() = default;
10 OverlayInfo::OverlayInfo(const OverlayInfo&) = default;
11
12 // static
13 OverlayInfo OverlayInfo::SurfaceChange(int surface_id) {
14 OverlayInfo info;
15 info.surface_id = surface_id;
16 return info;
17 }
18
19 // static
20 OverlayInfo OverlayInfo::RoutingTokenChange(
21 base::Optional<base::UnguessableToken> token) {
22 OverlayInfo info;
23 info.routing_token = token;
24 return info;
25 }
26
27 OverlayInfo& OverlayInfo::operator|=(const OverlayInfo& other) {
28 if (other.surface_id)
29 surface_id = other.surface_id;
30 if (other.routing_token)
tguilbert 2017/05/24 19:14:54 Is there a reason why |is_fullscreen| is not copie
liberato (no reviews please) 2017/05/24 21:21:07 because it's error-prone. :) good catch. i real
31 routing_token = other.routing_token;
32
33 return *this;
34 }
35
36 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698