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

Side by Side Diff: sky/shell/ui/platform_impl.h

Issue 959773005: Share sky::PlatformImpl bettween sky_viewer and SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/shell/ui/engine.cc ('k') | sky/shell/ui/platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 #ifndef SKY_SHELL_UI_PLATFORM_IMPL_H_
6 #define SKY_SHELL_UI_PLATFORM_IMPL_H_
7
8 #include "base/message_loop/message_loop.h"
9 #include "mojo/public/interfaces/application/service_provider.mojom.h"
10 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
11 #include "sky/engine/public/platform/Platform.h"
12
13 namespace sky {
14 namespace shell {
15
16 class PlatformImpl : public blink::Platform {
17 public:
18 explicit PlatformImpl(mojo::ServiceProviderPtr service_provider);
19 ~PlatformImpl() override;
20
21 // blink::Platform:
22 blink::WebString defaultLocale() override;
23 base::SingleThreadTaskRunner* mainThreadTaskRunner() override;
24 mojo::NetworkService* networkService() override;
25
26 private:
27 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
28 mojo::ServiceProviderPtr service_provider_;
29 mojo::NetworkServicePtr network_service_;
30
31 DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
32 };
33
34 } // namespace shell
35 } // namespace sky
36
37 #endif // SKY_SHELL_UI_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « sky/shell/ui/engine.cc ('k') | sky/shell/ui/platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698