blob: 16a373116945223212d3de82b72a6c7a4d027777 [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/core/geometry/dom_rect.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 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);
static WindowControlsOverlay& From(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_