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

Side by Side Diff: services/native_viewport/platform_viewport.h

Issue 1280613003: Allow native_viewport to create new native windows on demand on Android. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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
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 #ifndef SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_ 5 #ifndef SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
6 #define SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_ 6 #define SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "mojo/services/input_events/public/interfaces/input_events.mojom.h" 9 #include "mojo/services/input_events/public/interfaces/input_events.mojom.h"
10 #include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom. h" 10 #include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom. h"
(...skipping 23 matching lines...) Expand all
34 34
35 virtual ~PlatformViewport() {} 35 virtual ~PlatformViewport() {}
36 36
37 virtual void Init(const gfx::Rect& bounds) = 0; 37 virtual void Init(const gfx::Rect& bounds) = 0;
38 virtual void Show() = 0; 38 virtual void Show() = 0;
39 virtual void Hide() = 0; 39 virtual void Hide() = 0;
40 virtual void Close() = 0; 40 virtual void Close() = 0;
41 virtual gfx::Size GetSize() = 0; 41 virtual gfx::Size GetSize() = 0;
42 virtual void SetBounds(const gfx::Rect& bounds) = 0; 42 virtual void SetBounds(const gfx::Rect& bounds) = 0;
43 43
44 // Called when a new native surface has been created by the host system and
45 // should be used by this viewport. Returns whether the surface has been
46 // attached to or not.
47 virtual bool NewNativeSurfaceAvailable() = 0;
48
44 static scoped_ptr<PlatformViewport> Create(Delegate* delegate); 49 static scoped_ptr<PlatformViewport> Create(Delegate* delegate);
45 }; 50 };
46 51
47 } // namespace native_viewport 52 } // namespace native_viewport
48 53
49 #endif // SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_ 54 #endif // SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698