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

Side by Side Diff: chrome/browser/resources/chromeos/select_to_speak/BUILD.gn

Issue 2782993002: Add an options page to Select-to-Speak and allow setting voice name, rate (Closed)
Patch Set: fix unit tests Created 3 years, 8 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 | « no previous file | chrome/browser/resources/chromeos/select_to_speak/checked.png » ('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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//chrome/test/base/js2gtest.gni") 7 import("//chrome/test/base/js2gtest.gni")
8 import("//chrome/browser/resources/chromeos/chromevox/run_jsbundler.gni") 8 import("//chrome/browser/resources/chromeos/chromevox/run_jsbundler.gni")
9 9
10 assert(is_chromeos) 10 assert(is_chromeos)
11 11
12 select_to_speak_out_dir = "$root_out_dir/resources/chromeos/select_to_speak" 12 select_to_speak_out_dir = "$root_out_dir/resources/chromeos/select_to_speak"
13 13
14 group("select_to_speak") { 14 group("select_to_speak") {
15 deps = [ 15 deps = [
16 ":select_to_speak_copied_files", 16 ":select_to_speak_copied_files",
17 ":select_to_speak_guest_manifest", 17 ":select_to_speak_guest_manifest",
18 ":select_to_speak_manifest", 18 ":select_to_speak_manifest",
19 "//chrome/browser/resources/chromeos/select_to_speak/strings:select_to_speak _strings", 19 "//chrome/browser/resources/chromeos/select_to_speak/strings:select_to_speak _strings",
20 ] 20 ]
21 } 21 }
22 22
23 # Instead of setting up one copy target for each subdirectory, use a script 23 # Instead of setting up one copy target for each subdirectory, use a script
24 # to copy all files. 24 # to copy all files.
25 run_jsbundler("select_to_speak_copied_files") { 25 run_jsbundler("select_to_speak_copied_files") {
26 mode = "copy" 26 mode = "copy"
27 dest_dir = select_to_speak_out_dir 27 dest_dir = select_to_speak_out_dir
28 sources = [ 28 sources = [
29 "checked.png",
30 "options.css",
31 "options.html",
29 "select_to_speak.js", 32 "select_to_speak.js",
33 "select_to_speak_main.js",
34 "select_to_speak_options.js",
35 "unchecked.png",
30 ] 36 ]
31 rewrite_rules = [ 37 rewrite_rules = [
32 rebase_path(".", root_build_dir) + ":", 38 rebase_path(".", root_build_dir) + ":",
33 rebase_path(closure_library_dir, root_build_dir) + ":closure", 39 rebase_path(closure_library_dir, root_build_dir) + ":closure",
34 ] 40 ]
35 } 41 }
36 42
37 # TODO: refactor this into another file like generate_manifest.gni 43 # TODO: refactor this into another file like generate_manifest.gni
38 # to share with other extensions. 44 # to share with other extensions.
39 template("manifest") { 45 template("manifest") {
(...skipping 27 matching lines...) Expand all
67 } 73 }
68 74
69 manifest("select_to_speak_manifest") { 75 manifest("select_to_speak_manifest") {
70 output_file = "$select_to_speak_out_dir/manifest.json" 76 output_file = "$select_to_speak_out_dir/manifest.json"
71 } 77 }
72 78
73 manifest("select_to_speak_guest_manifest") { 79 manifest("select_to_speak_guest_manifest") {
74 output_file = "$select_to_speak_out_dir/manifest_guest.json" 80 output_file = "$select_to_speak_out_dir/manifest_guest.json"
75 is_guest_manifest = true 81 is_guest_manifest = true
76 } 82 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/select_to_speak/checked.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698