Chromium Code Reviews| 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 "mojo/services/native_viewport/platform_viewport.h" | |
| 6 #include "ui/gfx/rect.h" | |
| 7 | |
| 8 namespace mojo { | |
| 9 | |
| 10 class PlatformViewportHeadless : public PlatformViewport { | |
| 11 public: | |
| 12 explicit PlatformViewportHeadless(Delegate* delegate); | |
| 13 virtual ~PlatformViewportHeadless(); | |
| 14 | |
| 15 static scoped_ptr<PlatformViewport> Create(Delegate* delegate); | |
|
jamesr
2014/09/25 22:18:14
why are both the constructor and this factory func
abarth-chromium
2014/09/25 23:31:36
Made the constructor private.
| |
| 16 | |
| 17 private: | |
| 18 // Overridden from PlatformViewport: | |
| 19 virtual void Init(const gfx::Rect& bounds) OVERRIDE; | |
| 20 virtual void Show() OVERRIDE; | |
| 21 virtual void Hide() OVERRIDE; | |
| 22 virtual void Close() OVERRIDE; | |
| 23 virtual gfx::Size GetSize() OVERRIDE; | |
| 24 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | |
| 25 virtual void SetCapture() OVERRIDE; | |
| 26 virtual void ReleaseCapture() OVERRIDE; | |
| 27 | |
| 28 Delegate* delegate_; | |
| 29 gfx::Rect bounds_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless); | |
| 32 }; | |
| 33 | |
| 34 } // namespace mojo | |
| OLD | NEW |