blob: f9f5435d977c84f056b967154d6f4841df7911cf [file] [log] [blame]
// Copyright 2020 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 THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_WINDOW_CONTROLS_OVERLAY_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_WINDOW_CONTROLS_OVERLAY_H_
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
#include "third_party/blink/renderer/platform/supplementable.h"
namespace blink {
class DOMRect;
class Navigator;
class CORE_EXPORT WindowControlsOverlay final : public ScriptWrappable,
public Supplement<Navigator> {
DEFINE_WRAPPERTYPEINFO();
public:
static const char kSupplementName[];
// Web Exposed as navigator.windowControlsOverlay
static WindowControlsOverlay* windowControlsOverlay(Navigator& navigator);
explicit WindowControlsOverlay(Navigator& navigator);
WindowControlsOverlay(const WindowControlsOverlay&) = delete;
~WindowControlsOverlay() override;
WindowControlsOverlay& operator=(const WindowControlsOverlay&) = delete;
bool visible() const;
DOMRect* getBoundingClientRect() const;
// ScriptWrappable
void Trace(Visitor*) const override;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_WINDOW_CONTROLS_OVERLAY_H_