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

Side by Side Diff: mojo/services/native_viewport/platform_viewport_headless.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
(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/platform_viewport_headless.h"
6
7 namespace mojo {
8
9 PlatformViewportHeadless::PlatformViewportHeadless(Delegate* delegate)
10 : delegate_(delegate) {
11 }
12
13 PlatformViewportHeadless::~PlatformViewportHeadless() {
14 }
15
16 void PlatformViewportHeadless::Init(const gfx::Rect& bounds) {
17 bounds_ = bounds;
18 }
19
20 void PlatformViewportHeadless::Show() {
21 }
22
23 void PlatformViewportHeadless::Hide() {
24 }
25
26 void PlatformViewportHeadless::Close() {
27 delegate_->OnDestroyed();
28 }
29
30 gfx::Size PlatformViewportHeadless::GetSize() {
31 return bounds_.size();
32 }
33
34 void PlatformViewportHeadless::SetBounds(const gfx::Rect& bounds) {
35 bounds_ = bounds;
36 delegate_->OnBoundsChanged(bounds_);
37 }
38
39 void PlatformViewportHeadless::SetCapture() {
40 }
41
42 void PlatformViewportHeadless::ReleaseCapture() {
43 }
44
45 // static
46 scoped_ptr<PlatformViewport> PlatformViewportHeadless::Create(
47 Delegate* delegate) {
48 return scoped_ptr<PlatformViewport>(
49 new PlatformViewportHeadless(delegate)).Pass();
50 }
51
52 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/platform_viewport_headless.h ('k') | mojo/services/native_viewport/platform_viewport_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698