| # Copyright 2016 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/ios/rules.gni") |
| |
| source_set("ui") { |
| sources = [ |
| "UIView+SizeClassSupport.h", |
| "UIView+SizeClassSupport.mm", |
| "animation_util.h", |
| "animation_util.mm", |
| "background_generator.h", |
| "background_generator.mm", |
| "browser_otr_state.h", |
| "browser_otr_state.mm", |
| "favicon_view.h", |
| "favicon_view.mm", |
| "file_locations.h", |
| "file_locations.mm", |
| "image_util.h", |
| "image_util.mm", |
| "native_content_controller.h", |
| "native_content_controller.mm", |
| "orientation_limiting_navigation_controller.h", |
| "orientation_limiting_navigation_controller.mm", |
| "prerender_final_status.h", |
| "reversed_animation.h", |
| "reversed_animation.mm", |
| "rtl_geometry.h", |
| "rtl_geometry.mm", |
| "show_mail_composer_util.h", |
| "show_mail_composer_util.mm", |
| "show_privacy_settings_util.h", |
| "show_privacy_settings_util.mm", |
| "side_swipe_gesture_recognizer.h", |
| "side_swipe_gesture_recognizer.mm", |
| "ui_util.h", |
| "ui_util.mm", |
| "uikit_ui_util.h", |
| "uikit_ui_util.mm", |
| "url_loader.h", |
| ] |
| deps = [ |
| "//base", |
| "//base:i18n", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/favicon", |
| "//ios/chrome/browser/ui/commands", |
| "//ios/public/provider/chrome/browser", |
| "//ios/web", |
| "//ui/base", |
| "//ui/gfx", |
| ] |
| allow_circular_includes_from = [ "//ios/chrome/browser/ui/commands" ] |
| libs = [ |
| "Accelerate.framework", |
| "CoreGraphics.framework", |
| "QuartzCore.framework", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "native_content_controller_unittest.mm", |
| "ui_util_unittest.mm", |
| "uikit_ui_util_unittest.mm", |
| ] |
| deps = [ |
| ":native_content_controller_test_xib", |
| ":ui", |
| "//base", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| "//url", |
| ] |
| } |
| |
| bundle_data_ib_file("native_content_controller_test_xib") { |
| visibility = [ ":unit_tests" ] |
| testonly = true |
| source = "native_content_controller_test.xib" |
| } |
| |
| bundle_data("resources") { |
| sources = [ |
| "resources/custom_row_voice.png", |
| "resources/custom_row_voice@2x.png", |
| "resources/custom_row_voice@2x~ipad.png", |
| "resources/custom_row_voice@3x.png", |
| "resources/custom_row_voice_pressed.png", |
| "resources/custom_row_voice_pressed@2x.png", |
| "resources/custom_row_voice_pressed@2x~ipad.png", |
| "resources/custom_row_voice_pressed@3x.png", |
| "resources/custom_row_voice_pressed~ipad.png", |
| "resources/custom_row_voice~ipad.png", |
| "resources/default_favicon.png", |
| "resources/default_favicon@2x.png", |
| "resources/default_favicon@3x.png", |
| "resources/default_favicon_incognito.png", |
| "resources/default_favicon_incognito@2x.png", |
| "resources/default_favicon_incognito@3x.png", |
| "resources/keyboard_bg_portrait_tablet.png", |
| "resources/keyboard_button.png", |
| "resources/keyboard_button@2x.png", |
| "resources/keyboard_button@2x~ipad.png", |
| "resources/keyboard_button@3x.png", |
| "resources/keyboard_button~ipad.png", |
| |
| # On iOS, the terms of service file need to be loaded from the application |
| # bundle, not from a datapack. As GetTermsOfServicePath() returns path to |
| # those files, they are added to //ios/chrome/browser/ui:resources. |
| "//components/resources/terms/terms_ar.html", |
| "//components/resources/terms/terms_bg.html", |
| "//components/resources/terms/terms_ca.html", |
| "//components/resources/terms/terms_cs.html", |
| "//components/resources/terms/terms_da.html", |
| "//components/resources/terms/terms_de.html", |
| "//components/resources/terms/terms_el.html", |
| "//components/resources/terms/terms_en-GB.html", |
| "//components/resources/terms/terms_en.html", |
| "//components/resources/terms/terms_es-419.html", |
| "//components/resources/terms/terms_es.html", |
| "//components/resources/terms/terms_fa.html", |
| "//components/resources/terms/terms_fi.html", |
| "//components/resources/terms/terms_fr.html", |
| "//components/resources/terms/terms_he.html", |
| "//components/resources/terms/terms_hi.html", |
| "//components/resources/terms/terms_hr.html", |
| "//components/resources/terms/terms_hu.html", |
| "//components/resources/terms/terms_id.html", |
| "//components/resources/terms/terms_it.html", |
| "//components/resources/terms/terms_ja.html", |
| "//components/resources/terms/terms_ko.html", |
| "//components/resources/terms/terms_lt.html", |
| "//components/resources/terms/terms_nb.html", |
| "//components/resources/terms/terms_nl.html", |
| "//components/resources/terms/terms_pl.html", |
| "//components/resources/terms/terms_pt-BR.html", |
| "//components/resources/terms/terms_pt-PT.html", |
| "//components/resources/terms/terms_ro.html", |
| "//components/resources/terms/terms_ru.html", |
| "//components/resources/terms/terms_sk.html", |
| "//components/resources/terms/terms_sr.html", |
| "//components/resources/terms/terms_sv.html", |
| "//components/resources/terms/terms_th.html", |
| "//components/resources/terms/terms_tr.html", |
| "//components/resources/terms/terms_uk.html", |
| "//components/resources/terms/terms_vi.html", |
| "//components/resources/terms/terms_zh-CN.html", |
| "//components/resources/terms/terms_zh-TW.html", |
| ] |
| outputs = [ |
| "{{bundle_resources_dir}}/{{source_file_part}}", |
| ] |
| } |