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

Side by Side Diff: mojo/services/native_viewport/native_viewport_x11.cc

Issue 51373002: NativeViewport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nl Created 7 years, 1 month 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 | « mojo/services/native_viewport/native_viewport_win.cc ('k') | mojo/shell/app_container.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 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/native_viewport.h"
6
7 namespace mojo {
8 namespace services {
9
10 class NativeViewportX11 : public NativeViewport {
11 public:
12 NativeViewportX11(NativeViewportDelegate* delegate)
13 : delegate_(delegate) {
14 }
15 virtual ~NativeViewportX11() {
16 }
17
18 private:
19 // Overridden from NativeViewport:
20 virtual void Close() OVERRIDE {
21 // TODO(beng): perform this in response to XWindow destruction.
22 delegate_->OnDestroyed();
23 }
24
25 NativeViewportDelegate* delegate_;
26
27 DISALLOW_COPY_AND_ASSIGN(NativeViewportX11);
28 };
29
30 // static
31 scoped_ptr<NativeViewport> NativeViewport::Create(
32 NativeViewportDelegate* delegate) {
33 return scoped_ptr<NativeViewport>(new NativeViewportX11(delegate)).Pass();
34 }
35
36 } // namespace services
37 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/native_viewport_win.cc ('k') | mojo/shell/app_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698