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

Unified Diff: services/keyboard_native/BUILD.gn

Issue 1149293002: Add the ability for keys to be drawn as an image. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Addressed nits Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | services/keyboard_native/key_layout.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/keyboard_native/BUILD.gn
diff --git a/services/keyboard_native/BUILD.gn b/services/keyboard_native/BUILD.gn
index e3064ea43cc9eba36cac4efffb4d234ce3895d3d..a52b517cc0441d4a3123f3b4f7ee8854062aac06 100644
--- a/services/keyboard_native/BUILD.gn
+++ b/services/keyboard_native/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//mojo/public/mojo_application.gni")
+import("//mojo/tools/embed/rules.gni")
mojo_native_application("keyboard_native") {
sources = [
@@ -26,6 +27,10 @@ mojo_native_application("keyboard_native") {
]
deps = [
+ ":action_icon",
+ ":delete_icon",
+ ":lower_case_icon",
+ ":upper_case_icon",
"//base",
"//mojo/application",
"//mojo/public/cpp/bindings",
@@ -43,6 +48,31 @@ mojo_native_application("keyboard_native") {
"//mojo/services/view_manager/public/cpp",
"//mojo/skia",
"//skia",
+ "//ui/gfx",
"//ui/gfx/geometry",
]
}
+
+embed_file("action_icon") {
+ source = "res/Emoticon.png"
+ namespace = "keyboard_native"
+ variable = "kActionIcon"
+}
+
+embed_file("delete_icon") {
+ source = "res/Delete.png"
+ namespace = "keyboard_native"
+ variable = "kDeleteIcon"
+}
+
+embed_file("lower_case_icon") {
+ source = "res/ArrowDown.png"
+ namespace = "keyboard_native"
+ variable = "kLowerCaseIcon"
+}
+
+embed_file("upper_case_icon") {
+ source = "res/ArrowUp.png"
+ namespace = "keyboard_native"
+ variable = "kUpperCaseIcon"
+}
« no previous file with comments | « DEPS ('k') | services/keyboard_native/key_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698