mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
After this patch, we no longer link with Mojo. We still use some gn definitions from //mojo to create Dart packages.
40 lines
885 B
C++
40 lines
885 B
C++
// Copyright 2016 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 FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_
|
|
#define FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_
|
|
|
|
namespace flutter {
|
|
namespace runtime {
|
|
|
|
struct ResourcesEntry {
|
|
const char* path_;
|
|
const char* resource_;
|
|
int length_;
|
|
};
|
|
|
|
} // namespace runtime
|
|
} // namespace flutter
|
|
|
|
namespace blink {
|
|
|
|
class EmbedderResources {
|
|
public:
|
|
EmbedderResources(flutter::runtime::ResourcesEntry* resources_table);
|
|
|
|
static const int kNoSuchInstance;
|
|
|
|
int ResourceLookup(const char* path, const char** resource);
|
|
const char* Path(int idx);
|
|
|
|
private:
|
|
flutter::runtime::ResourcesEntry* At(int idx);
|
|
|
|
flutter::runtime::ResourcesEntry* resources_table_;
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif // FLUTTER_RUNTIME_EMBEDDER_RESOURCES_H_
|