Index: components/sad_tab/BUILD.gn |
diff --git a/components/dom_distiller/webui/BUILD.gn b/components/sad_tab/BUILD.gn |
similarity index 41% |
copy from components/dom_distiller/webui/BUILD.gn |
copy to components/sad_tab/BUILD.gn |
index 98f9d479907b018f7271505735d2e84687d00026..d292ed4dd3ae8633bf554f780fe9f48b57d5c9c0 100644 |
--- a/components/dom_distiller/webui/BUILD.gn |
+++ b/components/sad_tab/BUILD.gn |
@@ -2,23 +2,36 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-# GYP version: components/dom_distiller.gyp:dom_distiller_webui |
-static_library("webui") { |
+import("//build/config/ui.gni") |
+ |
+static_library("sad_tab") { |
sources = [ |
- "dom_distiller_handler.cc", |
- "dom_distiller_handler.h", |
- "dom_distiller_ui.cc", |
- "dom_distiller_ui.h", |
+ "sad_tab.cc", |
+ "sad_tab.h", |
+ "sad_tab_client.h", |
+ "sad_tab_helper.cc", |
+ "sad_tab_helper.h", |
+ "sad_tab_types.h", |
+ "url_constants.cc", |
+ "url_constants.h", |
] |
deps = [ |
"//base", |
- "//components/dom_distiller/core", |
- "//components/dom_distiller/core/proto", |
"//components/resources", |
"//components/strings", |
"//content/public/browser", |
- "//skia", |
- "//sync", |
+ "//ui/base", |
+ "//url", |
] |
+ |
+ if (toolkit_views) { |
+ sources += [ |
+ "views/sad_tab_view.cc", |
+ "views/sad_tab_view.h", |
+ ] |
+ deps += [ |
+ "//ui/views", |
+ ] |
+ } |
} |