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

Side by Side Diff: services/native_viewport/BUILD.gn

Issue 1280613003: Allow native_viewport to create new native windows on demand on Android. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 | services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAndroid.java » ('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("//mojo/public/mojo_application.gni") 6 import("//mojo/public/mojo_application.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/config.gni") 9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 import("//mojo/public/tools/bindings/mojom.gni")
11 12
12 group("native_viewport") { 13 group("native_viewport") {
13 deps = [ 14 deps = [
14 ":lib", 15 ":lib",
15 ":native_viewport_java", 16 ":native_viewport_java",
16 ":jni_headers", 17 ":jni_headers",
17 ] 18 ]
18 } 19 }
19 20
20 android_library("native_viewport_java") { 21 android_library("native_viewport_java") {
21 java_files = 22 java_files =
22 [ "android/src/org/chromium/mojo/PlatformViewportAndroid.java" ] 23 [ "android/src/org/chromium/mojo/PlatformViewportAndroid.java" ]
23 24
24 deps = [ 25 deps = [
25 "//base:base_java", 26 "//base:base_java",
26 "//services/keyboard", 27 "//services/keyboard",
27 "//mojo/services/keyboard/public/interfaces:interfaces_java", 28 "//mojo/services/keyboard/public/interfaces:interfaces_java",
28 "//mojo/public/java:bindings", 29 "//mojo/public/java:bindings",
29 "//mojo/public/java:system", 30 "//mojo/public/java:system",
30 ] 31 ]
31 } 32 }
32 33
33 generate_jni("jni_headers") { 34 generate_jni("jni_headers") {
34 sources = [ 35 sources = [
35 "android/src/org/chromium/mojo/PlatformViewportAndroid.java", 36 "android/src/org/chromium/mojo/PlatformViewportAndroid.java",
36 ] 37 ]
37 38
38 jni_package = "mojo" 39 jni_package = "mojo"
39 } 40 }
41
42 mojom("interfaces") {
43 sources = [
44 "native_viewport_internal.mojom",
45 ]
46 }
40 } else { 47 } else {
41 mojo_native_application("native_viewport") { 48 mojo_native_application("native_viewport") {
42 output_name = "native_viewport_service" 49 output_name = "native_viewport_service"
43 sources = [ 50 sources = [
44 "main.cc", 51 "main.cc",
45 ] 52 ]
46 deps = [ 53 deps = [
47 ":lib", 54 ":lib",
48 "//base", 55 "//base",
49 "//mojo/application", 56 "//mojo/application",
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 "//mojo/services/native_viewport/public/interfaces", 100 "//mojo/services/native_viewport/public/interfaces",
94 "//ui/events", 101 "//ui/events",
95 "//ui/events/platform", 102 "//ui/events/platform",
96 "//ui/gfx", 103 "//ui/gfx",
97 "//ui/gfx/geometry", 104 "//ui/gfx/geometry",
98 "//ui/gl", 105 "//ui/gl",
99 "//ui/platform_window", 106 "//ui/platform_window",
100 ] 107 ]
101 108
102 if (is_android) { 109 if (is_android) {
103 deps += [ ":jni_headers" ] 110 deps += [
111 ":interfaces",
112 ":jni_headers",
113 ]
104 } 114 }
105 115
106 if (use_x11) { 116 if (use_x11) {
107 deps += [ "//ui/platform_window/x11" ] 117 deps += [ "//ui/platform_window/x11" ]
108 } else { 118 } else {
109 sources -= [ "platform_viewport_x11.cc" ] 119 sources -= [ "platform_viewport_x11.cc" ]
110 } 120 }
111 121
112 if (is_win) { 122 if (is_win) {
113 deps += [ "//ui/platform_window/win" ] 123 deps += [ "//ui/platform_window/win" ]
114 } 124 }
115 } 125 }
OLDNEW
« no previous file with comments | « no previous file | services/native_viewport/android/src/org/chromium/mojo/PlatformViewportAndroid.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698