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

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

Issue 826423008: Use local ids for Surfaces APIs that can only apply to local surfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NATIVE_VIEWPORT_IMPL_H_ 5 #ifndef SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_
6 #define SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ 6 #define SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "cc/surfaces/surface_id.h" 10 #include "cc/surfaces/surface_id.h"
11 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" 11 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h"
12 #include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom. h" 12 #include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom. h"
13 #include "mojo/services/surfaces/public/interfaces/surfaces_service.mojom.h" 13 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
14 #include "services/native_viewport/platform_viewport.h" 14 #include "services/native_viewport/platform_viewport.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 16
17 namespace ui { 17 namespace ui {
18 class Event; 18 class Event;
19 } 19 }
20 20
21 namespace mojo { 21 namespace mojo {
22 class ApplicationImpl; 22 class ApplicationImpl;
23 } 23 }
(...skipping 28 matching lines...) Expand all
52 52
53 private: 53 private:
54 void ProcessOnMetricsChanged(); 54 void ProcessOnMetricsChanged();
55 55
56 bool is_headless_; 56 bool is_headless_;
57 scoped_ptr<PlatformViewport> platform_viewport_; 57 scoped_ptr<PlatformViewport> platform_viewport_;
58 scoped_ptr<ViewportSurface> viewport_surface_; 58 scoped_ptr<ViewportSurface> viewport_surface_;
59 uint64_t widget_id_; 59 uint64_t widget_id_;
60 mojo::ViewportMetricsPtr metrics_; 60 mojo::ViewportMetricsPtr metrics_;
61 mojo::GpuPtr gpu_service_; 61 mojo::GpuPtr gpu_service_;
62 mojo::SurfacesServicePtr surfaces_service_; 62 mojo::SurfacePtr surface_;
63 cc::SurfaceId child_surface_id_; 63 cc::SurfaceId child_surface_id_;
64 bool waiting_for_event_ack_; 64 bool waiting_for_event_ack_;
65 mojo::Callback<void(uint64_t)> create_callback_; 65 mojo::Callback<void(uint64_t)> create_callback_;
66 mojo::NativeViewportEventDispatcherPtr event_dispatcher_; 66 mojo::NativeViewportEventDispatcherPtr event_dispatcher_;
67 base::WeakPtrFactory<NativeViewportImpl> weak_factory_; 67 base::WeakPtrFactory<NativeViewportImpl> weak_factory_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl); 69 DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl);
70 }; 70 };
71 71
72 } // namespace native_viewport 72 } // namespace native_viewport
73 73
74 #endif // SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_ 74 #endif // SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_
OLDNEW
« no previous file with comments | « services/fake_surfaces/fake_surfaces_service_application.cc ('k') | services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698