Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
| 7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 assert(use_aura) | 9 assert(use_aura) |
| 10 | 10 |
| 11 mojom("mojom") { | |
| 12 sources = [ | |
| 13 "app_list_presenter.mojom", | |
| 14 ] | |
| 15 deps = [ | |
| 16 "//services/ui/public/interfaces", | |
| 17 ] | |
| 18 | |
| 19 export_class_attribute = "APP_LIST_PRESENTER_EXPORT" | |
|
mfomitchev
2016/12/12 22:59:49
Cool. Are these new in mojo? Are they actually nec
msw
2016/12/12 23:47:54
I don't know how new they are; but they fixed my c
mfomitchev
2016/12/13 01:14:13
Thanks for the explanation.
| |
| 20 export_define = "APP_LIST_PRESENTER_IMPLEMENTATION=1" | |
| 21 export_header = "ui/app_list/presenter/app_list_presenter_export.h" | |
| 22 } | |
| 23 | |
| 11 component("presenter") { | 24 component("presenter") { |
| 12 sources = [ | 25 sources = [ |
| 26 "app_list.cc", | |
| 27 "app_list.h", | |
| 13 "app_list_presenter.h", | 28 "app_list_presenter.h", |
| 14 "app_list_presenter_delegate.cc", | 29 "app_list_presenter_delegate.cc", |
| 15 "app_list_presenter_delegate.h", | 30 "app_list_presenter_delegate.h", |
| 16 "app_list_presenter_delegate_factory.h", | 31 "app_list_presenter_delegate_factory.h", |
| 17 "app_list_presenter_export.h", | 32 "app_list_presenter_export.h", |
| 18 "app_list_presenter_impl.cc", | 33 "app_list_presenter_impl.cc", |
| 19 "app_list_presenter_impl.h", | 34 "app_list_presenter_impl.h", |
| 20 "app_list_view_delegate_factory.cc", | 35 "app_list_view_delegate_factory.cc", |
| 21 "app_list_view_delegate_factory.h", | 36 "app_list_view_delegate_factory.h", |
| 22 ] | 37 ] |
| 23 | 38 |
| 24 defines = [ "APP_LIST_PRESENTER_IMPLEMENTATION" ] | 39 defines = [ "APP_LIST_PRESENTER_IMPLEMENTATION" ] |
| 25 | 40 |
| 26 public_deps = [ | 41 public_deps = [ |
| 42 ":mojom", | |
| 27 "//base", | 43 "//base", |
| 44 "//mojo/public/cpp/bindings", | |
| 28 "//ui/app_list", | 45 "//ui/app_list", |
| 29 "//ui/aura", | 46 "//ui/aura", |
| 30 "//ui/compositor", | 47 "//ui/compositor", |
| 31 "//ui/gfx/geometry", | 48 "//ui/gfx/geometry", |
| 32 "//ui/views", | 49 "//ui/views", |
| 33 | 50 |
| 34 # Temporary dependency to fix compile flake in http://crbug.com/611898. | 51 # Temporary dependency to fix compile flake in http://crbug.com/611898. |
| 35 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. | 52 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. |
| 36 "//ui/accessibility:ax_gen", | 53 "//ui/accessibility:ax_gen", |
| 37 ] | 54 ] |
| 38 } | 55 } |
| 39 | 56 |
| 40 mojom("mojom") { | |
| 41 sources = [ | |
| 42 "app_list_presenter.mojom", | |
| 43 ] | |
| 44 deps = [ | |
| 45 "//services/ui/public/interfaces", | |
| 46 ] | |
| 47 } | |
| 48 | |
| 49 static_library("test_support") { | 57 static_library("test_support") { |
| 50 sources = [ | 58 sources = [ |
| 51 "test/app_list_presenter_impl_test_api.cc", | 59 "test/app_list_presenter_impl_test_api.cc", |
| 52 "test/app_list_presenter_impl_test_api.h", | 60 "test/app_list_presenter_impl_test_api.h", |
| 53 | 61 |
| 54 # Temporary dependency to fix compile flake in http://crbug.com/611898. | 62 # Temporary dependency to fix compile flake in http://crbug.com/611898. |
| 55 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. | 63 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. |
| 56 "//ui/accessibility:ax_gen", | 64 "//ui/accessibility:ax_gen", |
| 57 ] | 65 ] |
| 58 | 66 |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 87 | 95 |
| 88 # Temporary dependency to fix compile flake in http://crbug.com/611898. | 96 # Temporary dependency to fix compile flake in http://crbug.com/611898. |
| 89 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. | 97 # TODO(tapted): Remove once http://crbug.com/612382 is fixed. |
| 90 "//ui/accessibility:ax_gen", | 98 "//ui/accessibility:ax_gen", |
| 91 ] | 99 ] |
| 92 | 100 |
| 93 data_deps = [ | 101 data_deps = [ |
| 94 "//ui/resources:ui_test_pak_data", | 102 "//ui/resources:ui_test_pak_data", |
| 95 ] | 103 ] |
| 96 } | 104 } |
| OLD | NEW |