blob: 50617930bc68a580bbdc2d3be77d9c75d0ce4449 [file] [log] [blame]
// Copyright 2013 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 SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_
#define SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_
#include "base/macros.h"
#include "services/native_viewport/platform_viewport.h"
#include "ui/gfx/rect.h"
namespace mojo {
class PlatformViewportHeadless : public PlatformViewport {
public:
~PlatformViewportHeadless() override;
static scoped_ptr<PlatformViewport> Create(Delegate* delegate);
private:
explicit PlatformViewportHeadless(Delegate* delegate);
// Overridden from PlatformViewport:
void Init(const gfx::Rect& bounds) override;
void Show() override;
void Hide() override;
void Close() override;
gfx::Size GetSize() override;
void SetBounds(const gfx::Rect& bounds) override;
void SetCapture() override;
void ReleaseCapture() override;
Delegate* delegate_;
gfx::Rect bounds_;
DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless);
};
} // namespace mojo
#endif // SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_