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

Side by Side Diff: services/native_viewport/platform_viewport_win.cc

Issue 769173002: Move native_viewport and gles2 service impls to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
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/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
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
OLDNEW
« no previous file with comments | « services/native_viewport/platform_viewport_stub.cc ('k') | services/native_viewport/platform_viewport_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698