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

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

Issue 93793009: Implement ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years 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
OLDNEW
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/native_viewport.h" 5 #include "mojo/services/native_viewport/native_viewport.h"
6 6
7 #include <X11/Xlib.h> 7 #include <X11/Xlib.h>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/message_loop/message_pump_x11.h" 10 #include "base/message_loop/message_pump_x11.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 NativeViewportDelegate* delegate_; 73 NativeViewportDelegate* delegate_;
74 gfx::Rect bounds_; 74 gfx::Rect bounds_;
75 XID window_; 75 XID window_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(NativeViewportX11); 77 DISALLOW_COPY_AND_ASSIGN(NativeViewportX11);
78 }; 78 };
79 79
80 // static 80 // static
81 scoped_ptr<NativeViewport> NativeViewport::Create( 81 scoped_ptr<NativeViewport> NativeViewport::Create(
82 shell::Context* context,
83 NativeViewportDelegate* delegate) { 82 NativeViewportDelegate* delegate) {
84 return scoped_ptr<NativeViewport>(new NativeViewportX11(delegate)).Pass(); 83 return scoped_ptr<NativeViewport>(new NativeViewportX11(delegate)).Pass();
85 } 84 }
86 85
87 } // namespace services 86 } // namespace services
88 } // namespace mojo 87 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698