1 // Copyright 2013 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 #include "mojo/services/native_viewport/platform_viewport.h"
6 #include "ui/gfx/rect.h"
10 class PlatformViewportHeadless : public PlatformViewport {
12 virtual ~PlatformViewportHeadless();
14 static scoped_ptr<PlatformViewport> Create(Delegate* delegate);
17 explicit PlatformViewportHeadless(Delegate* delegate);
19 // Overridden from PlatformViewport:
20 virtual void Init(const gfx::Rect& bounds) OVERRIDE;
21 virtual void Show() OVERRIDE;
22 virtual void Hide() OVERRIDE;
23 virtual void Close() OVERRIDE;
24 virtual gfx::Size GetSize() OVERRIDE;
25 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
26 virtual void SetCapture() OVERRIDE;
27 virtual void ReleaseCapture() OVERRIDE;
32 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless);