| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/config/features.gni") | |
| 6 import("//build/config/ui.gni") | |
| 7 import("//testing/test.gni") | |
| 8 import("//ui/base/ui_features.gni") | |
| 9 | |
| 10 assert(use_aura) | |
| 11 assert(enable_hidpi) | |
| 12 | |
| 13 # This target contains window management code used by both mash and ash. It | |
| 14 # should not use aura::Window, but may use parts of aura client code that don't | |
| 15 # depend upon aura::Window directly or indirectly. | |
| 16 component("ash_wm_common") { | |
| 17 sources = [ | |
| 18 "always_on_top_controller.cc", | |
| 19 "always_on_top_controller.h", | |
| 20 "background_animator.cc", | |
| 21 "background_animator.h", | |
| 22 "container_finder.cc", | |
| 23 "container_finder.h", | |
| 24 "default_state.cc", | |
| 25 "default_state.h", | |
| 26 "default_window_resizer.cc", | |
| 27 "default_window_resizer.h", | |
| 28 "dock/docked_window_layout_manager.cc", | |
| 29 "dock/docked_window_layout_manager.h", | |
| 30 "dock/docked_window_layout_manager_observer.h", | |
| 31 "dock/docked_window_resizer.cc", | |
| 32 "dock/docked_window_resizer.h", | |
| 33 "drag_details.cc", | |
| 34 "drag_details.h", | |
| 35 "fullscreen_window_finder.cc", | |
| 36 "fullscreen_window_finder.h", | |
| 37 "panels/panel_layout_manager.cc", | |
| 38 "panels/panel_layout_manager.h", | |
| 39 "panels/panel_window_resizer.cc", | |
| 40 "panels/panel_window_resizer.h", | |
| 41 "root_window_finder.cc", | |
| 42 "root_window_finder.h", | |
| 43 "shelf/wm_shelf.h", | |
| 44 "shelf/wm_shelf_constants.cc", | |
| 45 "shelf/wm_shelf_constants.h", | |
| 46 "shelf/wm_shelf_observer.h", | |
| 47 "shelf/wm_shelf_types.h", | |
| 48 "shelf/wm_shelf_util.cc", | |
| 49 "shelf/wm_shelf_util.h", | |
| 50 "switchable_windows.cc", | |
| 51 "switchable_windows.h", | |
| 52 "window_animation_types.h", | |
| 53 "window_parenting_utils.cc", | |
| 54 "window_parenting_utils.h", | |
| 55 "window_positioner.cc", | |
| 56 "window_positioner.h", | |
| 57 "window_positioning_utils.cc", | |
| 58 "window_positioning_utils.h", | |
| 59 "window_resizer.cc", | |
| 60 "window_resizer.h", | |
| 61 "window_state.cc", | |
| 62 "window_state.h", | |
| 63 "window_state_delegate.cc", | |
| 64 "window_state_delegate.h", | |
| 65 "window_state_observer.h", | |
| 66 "window_state_util.cc", | |
| 67 "window_state_util.h", | |
| 68 "wm_activation_observer.h", | |
| 69 "wm_display_observer.h", | |
| 70 "wm_event.cc", | |
| 71 "wm_event.h", | |
| 72 "wm_globals.cc", | |
| 73 "wm_globals.h", | |
| 74 "wm_layout_manager.h", | |
| 75 "wm_lookup.cc", | |
| 76 "wm_lookup.h", | |
| 77 "wm_overview_mode_observer.h", | |
| 78 "wm_root_window_controller.h", | |
| 79 "wm_root_window_controller_observer.h", | |
| 80 "wm_screen_util.cc", | |
| 81 "wm_screen_util.h", | |
| 82 "wm_snap_to_pixel_layout_manager.cc", | |
| 83 "wm_snap_to_pixel_layout_manager.h", | |
| 84 "wm_toplevel_window_event_handler.cc", | |
| 85 "wm_toplevel_window_event_handler.h", | |
| 86 "wm_types.cc", | |
| 87 "wm_types.h", | |
| 88 "wm_user_metrics_action.h", | |
| 89 "wm_window.h", | |
| 90 "wm_window_observer.h", | |
| 91 "wm_window_property.h", | |
| 92 "wm_window_tracker.h", | |
| 93 "workspace/magnetism_matcher.cc", | |
| 94 "workspace/magnetism_matcher.h", | |
| 95 "workspace/multi_window_resize_controller.cc", | |
| 96 "workspace/multi_window_resize_controller.h", | |
| 97 "workspace/phantom_window_controller.cc", | |
| 98 "workspace/phantom_window_controller.h", | |
| 99 "workspace/two_step_edge_cycler.cc", | |
| 100 "workspace/two_step_edge_cycler.h", | |
| 101 "workspace/workspace_layout_manager.cc", | |
| 102 "workspace/workspace_layout_manager.h", | |
| 103 "workspace/workspace_layout_manager_backdrop_delegate.h", | |
| 104 "workspace/workspace_layout_manager_delegate.h", | |
| 105 "workspace/workspace_types.h", | |
| 106 "workspace/workspace_window_resizer.cc", | |
| 107 "workspace/workspace_window_resizer.h", | |
| 108 ] | |
| 109 | |
| 110 configs += [ "//build/config:precompiled_headers" ] | |
| 111 | |
| 112 defines = [ "ASH_WM_COMMON_IMPLEMENTATION" ] | |
| 113 | |
| 114 deps = [ | |
| 115 "//ash/wm/common/resources", | |
| 116 "//base", | |
| 117 "//skia", | |
| 118 | |
| 119 # TODO(sky): remove aura dependencies. Currently the usage is for | |
| 120 # aura/client code, and not aura::Window, but it would be nice to remove | |
| 121 # this entirely. | |
| 122 "//ui/aura", | |
| 123 "//ui/base", | |
| 124 "//ui/compositor", | |
| 125 "//ui/display", | |
| 126 "//ui/events", | |
| 127 "//ui/events:events_base", | |
| 128 "//ui/gfx", | |
| 129 "//ui/gfx/geometry", | |
| 130 "//ui/keyboard", | |
| 131 "//ui/views", | |
| 132 "//ui/wm", | |
| 133 ] | |
| 134 | |
| 135 if (is_win) { | |
| 136 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 137 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
| 138 } | |
| 139 } | |
| OLD | NEW |