| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #include "base/macros.h" | |
| 6 #include "mojo/services/native_viewport/platform_viewport.h" | |
| 7 #include "ui/gfx/rect.h" | |
| 8 | |
| 9 namespace mojo { | |
| 10 | |
| 11 class PlatformViewportHeadless : public PlatformViewport { | |
| 12 public: | |
| 13 ~PlatformViewportHeadless() override; | |
| 14 | |
| 15 static scoped_ptr<PlatformViewport> Create(Delegate* delegate); | |
| 16 | |
| 17 private: | |
| 18 explicit PlatformViewportHeadless(Delegate* delegate); | |
| 19 | |
| 20 // Overridden from PlatformViewport: | |
| 21 void Init(const gfx::Rect& bounds) override; | |
| 22 void Show() override; | |
| 23 void Hide() override; | |
| 24 void Close() override; | |
| 25 gfx::Size GetSize() override; | |
| 26 void SetBounds(const gfx::Rect& bounds) override; | |
| 27 void SetCapture() override; | |
| 28 void ReleaseCapture() override; | |
| 29 | |
| 30 Delegate* delegate_; | |
| 31 gfx::Rect bounds_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless); | |
| 34 }; | |
| 35 | |
| 36 } // namespace mojo | |
| OLD | NEW |