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

Side by Side Diff: ui/shell_dialogs/BUILD.gn

Issue 1409793002: Aura on Android: Stub implementation of SelectFileDialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@auraclank_upstream_snapshot
Patch Set: Addding a missing import. Created 5 years, 1 month 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 | ui/shell_dialogs/select_file_dialog_auraandroid.h » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/ui.gni") 5 import("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 } 9 }
10 10
11 component("shell_dialogs") { 11 component("shell_dialogs") {
12 sources = [ 12 sources = [
13 "android/shell_dialogs_jni_registrar.cc",
14 "android/shell_dialogs_jni_registrar.h",
15 "base_shell_dialog.cc", 13 "base_shell_dialog.cc",
16 "base_shell_dialog.h", 14 "base_shell_dialog.h",
17 "base_shell_dialog_win.cc", 15 "base_shell_dialog_win.cc",
18 "base_shell_dialog_win.h", 16 "base_shell_dialog_win.h",
19 "linux_shell_dialog.cc", 17 "linux_shell_dialog.cc",
20 "linux_shell_dialog.h", 18 "linux_shell_dialog.h",
21 "select_file_dialog.cc", 19 "select_file_dialog.cc",
22 "select_file_dialog.h", 20 "select_file_dialog.h",
23 "select_file_dialog_android.cc",
24 "select_file_dialog_android.h",
25 "select_file_dialog_factory.cc", 21 "select_file_dialog_factory.cc",
26 "select_file_dialog_factory.h", 22 "select_file_dialog_factory.h",
27 "select_file_dialog_mac.h", 23 "select_file_dialog_mac.h",
28 "select_file_dialog_mac.mm", 24 "select_file_dialog_mac.mm",
29 "select_file_dialog_win.cc", 25 "select_file_dialog_win.cc",
30 "select_file_dialog_win.h", 26 "select_file_dialog_win.h",
31 "select_file_policy.cc", 27 "select_file_policy.cc",
32 "select_file_policy.h", 28 "select_file_policy.h",
33 "selected_file_info.cc", 29 "selected_file_info.cc",
34 "selected_file_info.h", 30 "selected_file_info.h",
(...skipping 10 matching lines...) Expand all
45 ] 41 ]
46 42
47 if (use_aura) { 43 if (use_aura) {
48 if (is_mac) { 44 if (is_mac) {
49 # Will be automatically filtered out on non-Mac. 45 # Will be automatically filtered out on non-Mac.
50 sources -= [ "select_file_dialog_mac.mm" ] 46 sources -= [ "select_file_dialog_mac.mm" ]
51 } 47 }
52 deps += [ "//ui/aura" ] 48 deps += [ "//ui/aura" ]
53 } 49 }
54 50
55 if (is_android) { 51 if (is_android && !use_aura) {
52 sources += [
53 "android/shell_dialogs_jni_registrar.cc",
54 "android/shell_dialogs_jni_registrar.h",
55 "select_file_dialog_android.cc",
56 "select_file_dialog_android.h",
57 ]
56 deps += [ 58 deps += [
57 "//ui/android", 59 "//ui/android",
58 "//ui/android:ui_java", 60 "//ui/android:ui_java",
59 "//ui/base:ui_base_jni_headers", 61 "//ui/base:ui_base_jni_headers",
60 ] 62 ]
61 include_dirs = [ "$root_gen_dir/ui" ] 63 include_dirs = [ "$root_gen_dir/ui" ]
62 libs = [ "jnigraphics" ] 64 libs = [ "jnigraphics" ]
63 } 65 }
64 66
67 if (is_android && use_aura) {
68 sources += [
69 "select_file_dialog_auraandroid.cc",
70 "select_file_dialog_auraandroid.h",
71 ]
72 }
73
65 if (is_win) { 74 if (is_win) {
66 deps += [ "//win8:metro_viewer" ] 75 deps += [ "//win8:metro_viewer" ]
67 } 76 }
68 } 77 }
69 78
70 test("shell_dialogs_unittests") { 79 test("shell_dialogs_unittests") {
71 sources = [ 80 sources = [
72 "select_file_dialog_win_unittest.cc", 81 "select_file_dialog_win_unittest.cc",
73 ] 82 ]
74 83
75 deps = [ 84 deps = [
76 ":shell_dialogs", 85 ":shell_dialogs",
77 "//base", 86 "//base",
78 "//base/test:test_support", 87 "//base/test:test_support",
79 "//base/test:run_all_unittests", 88 "//base/test:run_all_unittests",
80 "//testing/gtest", 89 "//testing/gtest",
81 ] 90 ]
82 } 91 }
OLDNEW
« no previous file with comments | « no previous file | ui/shell_dialogs/select_file_dialog_auraandroid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698