OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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 "wm/host/foreign_window_host.h" |
| 6 |
| 7 #include "base/compiler_specific.h" |
| 8 |
| 9 namespace wm { |
| 10 |
| 11 namespace { |
| 12 |
| 13 class ForeignWindowHostImpl : public ForeignWindowHost { |
| 14 public: |
| 15 explicit ForeignWindowHostImpl(gfx::PluginWindowHandle window_handle) |
| 16 : window_handle_(window_handle) {} |
| 17 |
| 18 // Overridden from wm::ForeignWindowHost: |
| 19 virtual void SetDelegate(ForeignWindowHostDelegate* delegate) OVERRIDE {} |
| 20 virtual gfx::PluginWindowHandle GetWindowHandle() const OVERRIDE { |
| 21 return window_handle_; |
| 22 } |
| 23 virtual void Close() OVERRIDE {} |
| 24 virtual void OnWindowDestroyed() OVERRIDE {} |
| 25 |
| 26 private: |
| 27 gfx::PluginWindowHandle window_handle_; |
| 28 }; |
| 29 |
| 30 } // namespace |
| 31 |
| 32 // static |
| 33 ForeignWindowHost* ForeignWindowHost::Create( |
| 34 gfx::PluginWindowHandle window_handle) { |
| 35 return new ForeignWindowHostImpl(window_handle); |
| 36 } |
| 37 |
| 38 } // namespace wm |
OLD | NEW |