Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / content / browser / compositor / overlay_candidate_validator_ozone.h
blob0e81d53e7c0fcfaf19f3353e4846ad35e81e4267
1 // Copyright 2014 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.
5 #ifndef CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_
8 #include "cc/output/overlay_candidate_validator.h"
10 #include "content/common/content_export.h"
11 #include "ui/gfx/native_widget_types.h"
13 namespace ui {
14 class OverlayCandidatesOzone;
17 namespace content {
19 class CONTENT_EXPORT OverlayCandidateValidatorOzone
20 : public cc::OverlayCandidateValidator {
21 public:
22 OverlayCandidateValidatorOzone(
23 gfx::AcceleratedWidget widget,
24 ui::OverlayCandidatesOzone* overlay_candidates);
25 virtual ~OverlayCandidateValidatorOzone();
27 // cc::OverlayCandidateValidator implementation.
28 virtual void CheckOverlaySupport(cc::OverlayCandidateList* surfaces) override;
30 private:
31 gfx::AcceleratedWidget widget_;
32 ui::OverlayCandidatesOzone* overlay_candidates_;
34 DISALLOW_COPY_AND_ASSIGN(OverlayCandidateValidatorOzone);
37 } // namespace content
39 #endif // CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_