settings.h 1.4 KB
Newer Older
A
Adam Barth 已提交
1 2 3 4
// 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.

5 6
#ifndef FLUTTER_COMMON_SETTINGS_H_
#define FLUTTER_COMMON_SETTINGS_H_
A
Adam Barth 已提交
7

8 9
#include <stdint.h>

10
#include <string>
11
#include <vector>
12

A
Adam Barth 已提交
13 14
namespace blink {

15
struct Settings {
16 17 18 19 20 21 22 23 24 25 26 27 28 29
  bool enable_observatory = false;
  // Port on target will be auto selected by the OS. A message will be printed
  // on the target with the port after it has been selected.
  uint32_t observatory_port = 0;
  bool ipv6 = false;
  bool start_paused = false;
  bool trace_startup = false;
  bool endless_trace_buffer = false;
  bool enable_dart_profiling = false;
  bool use_test_fonts = false;
  bool dart_non_checked_mode = false;
  bool enable_software_rendering = false;
  bool using_blink = true;
  std::string aot_shared_library_path;
30
  std::string aot_snapshot_path;
31 32 33 34
  std::string aot_vm_snapshot_data_filename;
  std::string aot_vm_snapshot_instr_filename;
  std::string aot_isolate_snapshot_data_filename;
  std::string aot_isolate_snapshot_instr_filename;
35
  std::string application_library_path;
36
  std::string temp_directory_path;
37
  std::vector<std::string> dart_flags;
38
  std::string log_tag = "flutter";
A
Adam Barth 已提交
39

40 41
  static const Settings& Get();
  static void Set(const Settings& settings);
A
Adam Barth 已提交
42 43
};

44
}  // namespace blink
A
Adam Barth 已提交
45

46
#endif  // FLUTTER_COMMON_SETTINGS_H_