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

Side by Side Diff: sky/viewer/document_view.h

Issue 1203143004: Make it possible to run Sky apps offline (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: gn check Created 5 years, 5 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
« no previous file with comments | « sky/viewer/dart_library_provider_impl.cc ('k') | sky/viewer/document_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SKY_VIEWER_DOCUMENT_VIEW_H_ 5 #ifndef SKY_VIEWER_DOCUMENT_VIEW_H_
6 #define SKY_VIEWER_DOCUMENT_VIEW_H_ 6 #define SKY_VIEWER_DOCUMENT_VIEW_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "mojo/public/cpp/application/lazy_interface_ptr.h" 10 #include "mojo/public/cpp/application/lazy_interface_ptr.h"
(...skipping 11 matching lines...) Expand all
22 #include "sky/compositor/layer_client.h" 22 #include "sky/compositor/layer_client.h"
23 #include "sky/compositor/layer_host_client.h" 23 #include "sky/compositor/layer_host_client.h"
24 #include "sky/engine/public/platform/ServiceProvider.h" 24 #include "sky/engine/public/platform/ServiceProvider.h"
25 #include "sky/engine/public/sky/sky_view.h" 25 #include "sky/engine/public/sky/sky_view.h"
26 #include "sky/engine/public/sky/sky_view_client.h" 26 #include "sky/engine/public/sky/sky_view_client.h"
27 #include "sky/engine/public/web/WebFrameClient.h" 27 #include "sky/engine/public/web/WebFrameClient.h"
28 #include "sky/engine/public/web/WebViewClient.h" 28 #include "sky/engine/public/web/WebViewClient.h"
29 #include "sky/services/testing/test_harness.mojom.h" 29 #include "sky/services/testing/test_harness.mojom.h"
30 #include "ui/events/gestures/gesture_types.h" 30 #include "ui/events/gestures/gesture_types.h"
31 31
32
33 namespace mojo { 32 namespace mojo {
34 class ViewManager; 33 class ViewManager;
35 class View; 34 class View;
36 } 35 }
37 36
38 namespace sky { 37 namespace sky {
39 class Rasterizer; 38 class Rasterizer;
40 class RasterizerBitmap; 39 class RasterizerBitmap;
41 class Layer; 40 class Layer;
42 class LayerHost; 41 class LayerHost;
42 class DartLibraryProviderImpl;
43 43
44 class DocumentView : public blink::ServiceProvider, 44 class DocumentView : public blink::ServiceProvider,
45 public blink::WebFrameClient, 45 public blink::WebFrameClient,
46 public blink::WebViewClient, 46 public blink::WebViewClient,
47 public blink::SkyViewClient, 47 public blink::SkyViewClient,
48 public mojo::ViewManagerDelegate, 48 public mojo::ViewManagerDelegate,
49 public mojo::ViewObserver, 49 public mojo::ViewObserver,
50 public sky::LayerClient, 50 public sky::LayerClient,
51 public sky::LayerHostClient, 51 public sky::LayerHostClient,
52 public ui::GestureConsumer { 52 public ui::GestureConsumer {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 mojo::ServiceProviderPtr imported_services_; 142 mojo::ServiceProviderPtr imported_services_;
143 mojo::InterfaceRequest<mojo::ServiceProvider> services_provided_to_embedder_; 143 mojo::InterfaceRequest<mojo::ServiceProvider> services_provided_to_embedder_;
144 mojo::ServiceProviderPtr services_provided_by_embedder_; 144 mojo::ServiceProviderPtr services_provided_by_embedder_;
145 mojo::Shell* shell_; 145 mojo::Shell* shell_;
146 TestHarnessPtr test_harness_; 146 TestHarnessPtr test_harness_;
147 mojo::NavigatorHostPtr navigator_host_; 147 mojo::NavigatorHostPtr navigator_host_;
148 std::unique_ptr<blink::SkyView> sky_view_; 148 std::unique_ptr<blink::SkyView> sky_view_;
149 blink::WebView* web_view_; 149 blink::WebView* web_view_;
150 mojo::View* root_; 150 mojo::View* root_;
151 mojo::ViewManagerClientFactory view_manager_client_factory_; 151 mojo::ViewManagerClientFactory view_manager_client_factory_;
152 scoped_ptr<DartLibraryProviderImpl> library_provider_;
152 scoped_ptr<LayerHost> layer_host_; 153 scoped_ptr<LayerHost> layer_host_;
153 scoped_refptr<Layer> root_layer_; 154 scoped_refptr<Layer> root_layer_;
154 RasterizerBitmap* bitmap_rasterizer_; // Used for pixel tests. 155 RasterizerBitmap* bitmap_rasterizer_; // Used for pixel tests.
155 mojo::ServiceRegistryPtr service_registry_; 156 mojo::ServiceRegistryPtr service_registry_;
156 scoped_ptr<mojo::StrongBinding<mojo::ServiceProvider>> 157 scoped_ptr<mojo::StrongBinding<mojo::ServiceProvider>>
157 service_registry_service_provider_binding_; 158 service_registry_service_provider_binding_;
159
158 base::WeakPtrFactory<DocumentView> weak_factory_; 160 base::WeakPtrFactory<DocumentView> weak_factory_;
159 161
160 DISALLOW_COPY_AND_ASSIGN(DocumentView); 162 DISALLOW_COPY_AND_ASSIGN(DocumentView);
161 }; 163 };
162 164
163 } // namespace sky 165 } // namespace sky
164 166
165 #endif // SKY_VIEWER_DOCUMENT_VIEW_H_ 167 #endif // SKY_VIEWER_DOCUMENT_VIEW_H_
OLDNEW
« no previous file with comments | « sky/viewer/dart_library_provider_impl.cc ('k') | sky/viewer/document_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698