blob: 3641c6a199df27ec1a56e5e08a1d77d84943907c [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_RENDERER_MEDIA_MEDIA_CAPS_OBSERVER_IMPL_H_
#define CHROMECAST_RENDERER_MEDIA_MEDIA_CAPS_OBSERVER_IMPL_H_
#include "base/macros.h"
#include "chromecast/common/media/media_caps.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "ui/gfx/geometry/size.h"
namespace chromecast {
namespace media {
class MediaCapsObserverImpl : public mojom::MediaCapsObserver {
public:
explicit MediaCapsObserverImpl(mojom::MediaCapsObserverPtr* proxy);
~MediaCapsObserverImpl() override;
private:
void SupportedHdmiSinkCodecsChanged(
uint32_t supported_codec_bitmask) override;
void ScreenResolutionChanged(uint32_t width, uint32_t height) override;
void ScreenInfoChanged(int32_t hdcp_version,
int32_t supported_eotfs,
int32_t dolby_vision_flags,
bool current_mode_supports_hdr,
bool current_mode_supports_dolby_vision) override;
mojo::Binding<mojom::MediaCapsObserver> binding_;
DISALLOW_COPY_AND_ASSIGN(MediaCapsObserverImpl);
};
} // namespace media
} // namespace chromecast
#endif // CHROMECAST_RENDERER_MEDIA_MEDIA_CAPS_OBSERVER_IMPL_H_