| 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 "default_state.cc", |
| 23 "default_state.h", |
| 24 "default_window_resizer.cc", |
| 25 "default_window_resizer.h", |
| 26 "dock/docked_window_layout_manager.cc", |
| 27 "dock/docked_window_layout_manager.h", |
| 28 "dock/docked_window_layout_manager_observer.h", |
| 29 "dock/docked_window_resizer.cc", |
| 30 "dock/docked_window_resizer.h", |
| 31 "drag_details.cc", |
| 32 "drag_details.h", |
| 33 "fullscreen_window_finder.cc", |
| 34 "fullscreen_window_finder.h", |
| 35 "panels/panel_layout_manager.cc", |
| 36 "panels/panel_layout_manager.h", |
| 37 "panels/panel_window_resizer.cc", |
| 38 "panels/panel_window_resizer.h", |
| 39 "root_window_finder.cc", |
| 40 "root_window_finder.h", |
| 41 "shelf/wm_shelf.h", |
| 42 "shelf/wm_shelf_constants.cc", |
| 43 "shelf/wm_shelf_constants.h", |
| 44 "shelf/wm_shelf_observer.h", |
| 45 "shelf/wm_shelf_types.h", |
| 46 "shelf/wm_shelf_util.cc", |
| 47 "shelf/wm_shelf_util.h", |
| 48 "switchable_windows.cc", |
| 49 "switchable_windows.h", |
| 50 "window_animation_types.h", |
| 51 "window_parenting_utils.cc", |
| 52 "window_parenting_utils.h", |
| 53 "window_positioner.cc", |
| 54 "window_positioner.h", |
| 55 "window_positioning_utils.cc", |
| 56 "window_positioning_utils.h", |
| 57 "window_resizer.cc", |
| 58 "window_resizer.h", |
| 59 "window_state.cc", |
| 60 "window_state.h", |
| 61 "window_state_delegate.cc", |
| 62 "window_state_delegate.h", |
| 63 "window_state_observer.h", |
| 64 "window_state_util.cc", |
| 65 "window_state_util.h", |
| 66 "wm_activation_observer.h", |
| 67 "wm_display_observer.h", |
| 68 "wm_event.cc", |
| 69 "wm_event.h", |
| 70 "wm_globals.cc", |
| 71 "wm_globals.h", |
| 72 "wm_layout_manager.h", |
| 73 "wm_lookup.cc", |
| 74 "wm_lookup.h", |
| 75 "wm_overview_mode_observer.h", |
| 76 "wm_root_window_controller.h", |
| 77 "wm_root_window_controller_observer.h", |
| 78 "wm_screen_util.cc", |
| 79 "wm_screen_util.h", |
| 80 "wm_snap_to_pixel_layout_manager.cc", |
| 81 "wm_snap_to_pixel_layout_manager.h", |
| 82 "wm_types.cc", |
| 83 "wm_types.h", |
| 84 "wm_user_metrics_action.h", |
| 85 "wm_window.h", |
| 86 "wm_window_observer.h", |
| 87 "wm_window_property.h", |
| 88 "wm_window_tracker.h", |
| 89 "workspace/magnetism_matcher.cc", |
| 90 "workspace/magnetism_matcher.h", |
| 91 "workspace/multi_window_resize_controller.cc", |
| 92 "workspace/multi_window_resize_controller.h", |
| 93 "workspace/phantom_window_controller.cc", |
| 94 "workspace/phantom_window_controller.h", |
| 95 "workspace/two_step_edge_cycler.cc", |
| 96 "workspace/two_step_edge_cycler.h", |
| 97 "workspace/workspace_layout_manager.cc", |
| 98 "workspace/workspace_layout_manager.h", |
| 99 "workspace/workspace_layout_manager_backdrop_delegate.h", |
| 100 "workspace/workspace_layout_manager_delegate.h", |
| 101 "workspace/workspace_types.h", |
| 102 "workspace/workspace_window_resizer.cc", |
| 103 "workspace/workspace_window_resizer.h", |
| 104 ] |
| 105 |
| 106 configs += [ "//build/config:precompiled_headers" ] |
| 107 |
| 108 defines = [ "ASH_WM_COMMON_IMPLEMENTATION" ] |
| 109 |
| 110 public_deps = [ |
| 111 "//ash/resources", |
| 112 "//ash/strings", |
| 113 ] |
| 114 deps = [ |
| 115 "//ash/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/gfx", |
| 128 "//ui/gfx/geometry", |
| 129 "//ui/keyboard", |
| 130 "//ui/views", |
| 131 "//ui/wm", |
| 132 ] |
| 133 |
| 134 if (is_win) { |
| 135 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 136 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 137 } |
| 138 } |
| OLD | NEW |