Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / BUILD.gn
index dbd8d43..f08a99f 100644 (file)
@@ -19,7 +19,10 @@ static_library("ui") {
   defines = []
   libs = []
 
-  configs += [ "//build/config/compiler:wexit_time_destructors" ]
+  configs += [
+    "//build/config/compiler:wexit_time_destructors",
+    "//third_party/WebKit/public:debug_devtools",
+  ]
 
   # Since browser and browser_ui actually depend on each other,
   # we must omit the dependency from browser_ui to browser.
@@ -43,6 +46,7 @@ static_library("ui") {
     "//chrome/browser/net:cert_logger_proto",
     "//chrome/common",
     "//chrome/common/net",
+    "//components/app_modal_dialogs",
     "//components/auto_login_parser",
     "//components/dom_distiller/webui",
     "//components/feedback/proto",
@@ -64,6 +68,7 @@ static_library("ui") {
     "//ui/accessibility",
     "//ui/base",
     "//ui/events",
+    "//ui/events:gesture_detection",
     "//ui/gfx",
     "//ui/gfx/geometry",
     "//ui/message_center",
@@ -83,10 +88,9 @@ static_library("ui") {
       "//chrome/installer/util",
       "//components/autofill/content/browser:risk_proto",
       "//components/power",
-      "//device/bluetooth",
       "//device/nfc",
       "//media",
-      "//mojo/system",
+      "//mojo/edk/system",
       "//net:net_with_v8",
       "//storage/browser",
       "//storage/common",
@@ -119,7 +123,13 @@ static_library("ui") {
     deps += [ "//net" ]
   }
 
-  if (printing_mode != 0) {
+  if (!is_android && !is_ios) {
+    sources += rebase_path(gypi_values.chrome_browser_ui_non_mobile_sources,
+                           ".", "//chrome")
+    deps += [ "//device/bluetooth" ]
+  }
+
+  if (enable_basic_printing || enable_print_preview) {
     deps += [ "//printing" ]
   }
 
@@ -142,9 +152,6 @@ static_library("ui") {
       #"//native_client/src/trusted/service_runtime/service_runtime.gyp:sel",  TODO(GYP)
     ]
   }
-  if (debug_devtools) {
-    defines += [ "DEBUG_DEVTOOLS=1" ]
-  }
   if (enable_configuration_policy) {
     sources += rebase_path(gypi_values.chrome_browser_ui_policy_sources,
                            ".", "//chrome")
@@ -167,7 +174,7 @@ static_library("ui") {
     sources += rebase_path(gypi_values.chrome_browser_ui_chromeos_sources,
                            ".", "//chrome")
     deps += [
-      #"browser_chromeos",  TODO(GYP)
+      "//chrome/browser/chromeos",
     ]
   } else {
     sources += rebase_path(gypi_values.chrome_browser_ui_non_chromeos_sources,
@@ -193,9 +200,25 @@ static_library("ui") {
     sources += rebase_path(gypi_values.chrome_browser_ui_non_ash_sources,
                            ".", "//chrome")
   }
+  if (use_athena) {
+    sources += rebase_path(gypi_values.chrome_browser_ui_athena_sources,
+                           ".", "//chrome")
+  } else {  # Not athena.
+    if (!is_android) {
+      sources += rebase_path(
+          gypi_values.chrome_browser_ui_non_athena_non_android_sources,
+          ".", "//chrome")
+    }
+    if (use_ash) {
+      sources += rebase_path(
+          gypi_values.chrome_browser_ui_ash_non_athena_sources,
+          ".", "//chrome")
+    }
+  }
   if (toolkit_views) {
     sources += rebase_path(gypi_values.chrome_browser_ui_views_sources,
                            ".", "//chrome")
+    deps += [ "//components/constrained_window" ]
     if (!is_chromeos) {
       sources += rebase_path(
           gypi_values.chrome_browser_ui_views_non_chromeos_sources,
@@ -205,11 +228,14 @@ static_library("ui") {
       sources += rebase_path(
           gypi_values.chrome_browser_ui_views_non_mac_sources,
           ".", "//chrome")
+      deps += [
+        "//extensions/components/native_app_window",
+      ]
     }
     if (use_ash) {
       sources += rebase_path(gypi_values.chrome_browser_ui_ash_views_sources,
                              ".", "//chrome")
-      }
+    }
   }
   if (use_aura && !use_ozone && is_desktop_linux) {
     deps += [
@@ -249,7 +275,7 @@ static_library("ui") {
   if (!enable_themes) {
     sources -= [ "webui/theme_source.cc" ]
   }
-  if (printing_mode == 1) {
+  if (enable_print_preview) {
     sources += rebase_path(gypi_values.chrome_browser_ui_print_preview_sources,
                            ".", "//chrome")
   }
@@ -344,6 +370,10 @@ static_library("ui") {
       sources += rebase_path(gypi_values.chrome_browser_ui_x11_sources,
                              ".", "//chrome")
       configs += [ "//build/config/linux:x11" ]
+      deps += [ "//ui/events/devices" ]
+      if (is_chromeos) {
+        sources -= [ "views/tabs/window_finder_x11.cc" ]
+      }
     }
   }
 
@@ -439,11 +469,16 @@ source_set("test_support") {
     "pdf/pdf_browsertest_base.h",
     "test/test_confirm_bubble_model.cc",
     "test/test_confirm_bubble_model.h",
-    "views/find_bar_host_unittest_util_views.cc",
     "website_settings/mock_permission_bubble_request.cc",
     "website_settings/mock_permission_bubble_request.h",
   ]
 
+  if (toolkit_views) {
+    sources += [
+      "views/find_bar_host_unittest_util_views.cc",
+    ]
+  }
+
   public_deps = [
     ":ui",
   ]