Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: wm/host/foreign_window_host.cc

Issue 11485006: Add window manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Push gfx::AcceleratedWidget usage into platform specific code. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « wm/host/foreign_window_host.h ('k') | wm/host/foreign_window_host_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « wm/host/foreign_window_host.h ('k') | wm/host/foreign_window_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698