| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/services/native_viewport/platform_viewport.h" | 5 #include "services/native_viewport/platform_viewport.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "ui/gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
| 9 #include "ui/platform_window/platform_window_delegate.h" | 9 #include "ui/platform_window/platform_window_delegate.h" |
| 10 #include "ui/platform_window/win/win_window.h" | 10 #include "ui/platform_window/win/win_window.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 | 13 |
| 14 class PlatformViewportWin : public PlatformViewport, | 14 class PlatformViewportWin : public PlatformViewport, |
| 15 public ui::PlatformWindowDelegate { | 15 public ui::PlatformWindowDelegate { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(PlatformViewportWin); | 96 DISALLOW_COPY_AND_ASSIGN(PlatformViewportWin); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 // static | 99 // static |
| 100 scoped_ptr<PlatformViewport> PlatformViewport::Create(Delegate* delegate) { | 100 scoped_ptr<PlatformViewport> PlatformViewport::Create(Delegate* delegate) { |
| 101 return scoped_ptr<PlatformViewport>(new PlatformViewportWin(delegate)).Pass(); | 101 return scoped_ptr<PlatformViewport>(new PlatformViewportWin(delegate)).Pass(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace mojo | 104 } // namespace mojo |
| OLD | NEW |