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

Side by Side Diff: ui/gfx/BUILD.gn

Issue 2030033003: Replace cc::ViewportSelectionBound with gfx::SelectionBound (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Further cleanup Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/config.gni") 9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 "platform_font_mac.mm", 148 "platform_font_mac.mm",
149 "platform_font_win.cc", 149 "platform_font_win.cc",
150 "platform_font_win.h", 150 "platform_font_win.h",
151 "scoped_cg_context_save_gstate_mac.h", 151 "scoped_cg_context_save_gstate_mac.h",
152 "scoped_ns_graphics_context_save_gstate_mac.h", 152 "scoped_ns_graphics_context_save_gstate_mac.h",
153 "scoped_ns_graphics_context_save_gstate_mac.mm", 153 "scoped_ns_graphics_context_save_gstate_mac.mm",
154 "scoped_ui_graphics_push_context_ios.h", 154 "scoped_ui_graphics_push_context_ios.h",
155 "scoped_ui_graphics_push_context_ios.mm", 155 "scoped_ui_graphics_push_context_ios.mm",
156 "scrollbar_size.cc", 156 "scrollbar_size.cc",
157 "scrollbar_size.h", 157 "scrollbar_size.h",
158 "selection_bound.cc",
159 "selection_bound.h",
160 "selection_model.cc", 158 "selection_model.cc",
161 "selection_model.h", 159 "selection_model.h",
162 "sequential_id_generator.cc", 160 "sequential_id_generator.cc",
163 "sequential_id_generator.h", 161 "sequential_id_generator.h",
164 "shadow_value.cc", 162 "shadow_value.cc",
165 "shadow_value.h", 163 "shadow_value.h",
166 "skbitmap_operations.cc", 164 "skbitmap_operations.cc",
167 "skbitmap_operations.h", 165 "skbitmap_operations.h",
168 "skia_util.cc", 166 "skia_util.cc",
169 "skia_util.h", 167 "skia_util.h",
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 230 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
233 "//build/config/compiler:no_size_t_to_int_warning", 231 "//build/config/compiler:no_size_t_to_int_warning",
234 ] 232 ]
235 233
236 # This is part of the gfx component in the component build. 234 # This is part of the gfx component in the component build.
237 defines = [ "GFX_IMPLEMENTATION" ] 235 defines = [ "GFX_IMPLEMENTATION" ]
238 236
239 public_deps = [ 237 public_deps = [
240 ":memory_buffer_sources", 238 ":memory_buffer_sources",
241 ":native_widget_types", 239 ":native_widget_types",
240 ":selection_bound_sources",
242 "//base", 241 "//base",
243 "//skia", 242 "//skia",
244 "//third_party/icu", 243 "//third_party/icu",
245 "//ui/gfx/geometry", 244 "//ui/gfx/geometry",
246 "//ui/gfx/range", 245 "//ui/gfx/range",
247 ] 246 ]
248 deps = [ 247 deps = [
249 ":gfx_export", 248 ":gfx_export",
250 "//base", 249 "//base",
251 "//base:base_static", 250 "//base:base_static",
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 source_set("native_widget_types") { 576 source_set("native_widget_types") {
578 public = [ 577 public = [
579 "native_widget_types.h", 578 "native_widget_types.h",
580 ] 579 ]
581 580
582 public_deps = [ 581 public_deps = [
583 "//base", 582 "//base",
584 ] 583 ]
585 } 584 }
586 585
586 group("selection_bound") {
587 if (is_component_build) {
588 public_deps = [
589 ":gfx",
590 ]
591 } else {
592 public_deps = [
593 ":selection_bound_sources",
594 ]
595 }
596 }
597
598 # Depend on this to use selection_bound.h without pulling in all of gfx.
599 source_set("selection_bound_sources") {
600 visibility = [ ":*" ]
601
602 sources = [
603 "gfx_export.h",
604 "selection_bound.cc",
605 "selection_bound.h",
606 ]
607
608 defines = [ "GFX_IMPLEMENTATION" ]
609
610 public_deps = [
611 "//base",
612 "//ui/gfx/geometry",
613 ]
614 }
615
587 # The GPU memory buffer stuff is separate from "gfx" to allow GPU-related 616 # The GPU memory buffer stuff is separate from "gfx" to allow GPU-related
588 # things to use these files without pulling in all of gfx, which includes large 617 # things to use these files without pulling in all of gfx, which includes large
589 # things like Skia. 618 # things like Skia.
590 # 619 #
591 # The structure here allows the memory buffer to be part of the gfx component 620 # The structure here allows the memory buffer to be part of the gfx component
592 # in the component build, but be a separate source set in a static build. 621 # in the component build, but be a separate source set in a static build.
593 group("memory_buffer") { 622 group("memory_buffer") {
594 if (is_component_build) { 623 if (is_component_build) {
595 public_deps = [ 624 public_deps = [
596 ":gfx", 625 ":gfx",
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 if (is_android) { 861 if (is_android) {
833 generate_jni("gfx_jni_headers") { 862 generate_jni("gfx_jni_headers") {
834 sources = [ 863 sources = [
835 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 864 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
836 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 865 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
837 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 866 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
838 ] 867 ]
839 jni_package = "gfx" 868 jni_package = "gfx"
840 } 869 }
841 } 870 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698