mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL adds a sensor_service to sky/services and wires it into SkyShell The plan is to eventually use this data to implement shake-to-refresh. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/962043002
36 lines
922 B
C++
36 lines
922 B
C++
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SKY_SHELL_UI_INTERNALS_H_
|
|
#define SKY_SHELL_UI_INTERNALS_H_
|
|
|
|
#include "base/supports_user_data.h"
|
|
#include "dart/runtime/include/dart_api.h"
|
|
#include "mojo/public/interfaces/application/service_provider.mojom.h"
|
|
|
|
namespace sky {
|
|
namespace shell {
|
|
|
|
class Internals : public base::SupportsUserData::Data {
|
|
public:
|
|
virtual ~Internals();
|
|
|
|
static void Create(Dart_Isolate isolate,
|
|
mojo::ServiceProviderPtr service_provider);
|
|
|
|
mojo::Handle TakeServicesProvidedByEmbedder();
|
|
|
|
private:
|
|
explicit Internals(mojo::ServiceProviderPtr service_provider);
|
|
|
|
mojo::ServiceProviderPtr service_provider_;
|
|
|
|
MOJO_DISALLOW_COPY_AND_ASSIGN(Internals);
|
|
};
|
|
|
|
} // namespace shell
|
|
} // namespace sky
|
|
|
|
#endif // SKY_SHELL_UI_INTERNALS_H_
|