| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "ash/wm/overview/window_selector_item.h" | 5 #include "ash/wm/overview/window_selector_item.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "ash/shell_window_ids.h" | 12 #include "ash/shell_window_ids.h" |
| 13 #include "ash/wm/common/window_state.h" |
| 13 #include "ash/wm/overview/overview_animation_type.h" | 14 #include "ash/wm/overview/overview_animation_type.h" |
| 14 #include "ash/wm/overview/scoped_overview_animation_settings.h" | 15 #include "ash/wm/overview/scoped_overview_animation_settings.h" |
| 15 #include "ash/wm/overview/scoped_transform_overview_window.h" | 16 #include "ash/wm/overview/scoped_transform_overview_window.h" |
| 16 #include "ash/wm/overview/window_selector.h" | 17 #include "ash/wm/overview/window_selector.h" |
| 17 #include "ash/wm/overview/window_selector_controller.h" | 18 #include "ash/wm/overview/window_selector_controller.h" |
| 18 #include "ash/wm/window_state.h" | |
| 19 #include "base/auto_reset.h" | 19 #include "base/auto_reset.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
| 22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
| 23 #include "grit/ash_resources.h" | 23 #include "grit/ash_resources.h" |
| 24 #include "grit/ash_strings.h" | 24 #include "grit/ash_strings.h" |
| 25 #include "ui/aura/window.h" | 25 #include "ui/aura/window.h" |
| 26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 27 #include "ui/base/resource/resource_bundle.h" | 27 #include "ui/base/resource/resource_bundle.h" |
| 28 #include "ui/gfx/geometry/vector2d.h" | 28 #include "ui/gfx/geometry/vector2d.h" |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 close_button_transform); | 348 close_button_transform); |
| 349 } | 349 } |
| 350 | 350 |
| 351 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { | 351 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { |
| 352 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( | 352 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( |
| 353 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, | 353 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, |
| 354 GetWindow()->title())); | 354 GetWindow()->title())); |
| 355 } | 355 } |
| 356 | 356 |
| 357 } // namespace ash | 357 } // namespace ash |
| OLD | NEW |