| 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/material_design/material_design_controller.h" | 10 #include "ash/material_design/material_design_controller.h" |
| 11 #include "ash/screen_util.h" | 11 #include "ash/screen_util.h" |
| 12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 13 #include "ash/shell_window_ids.h" | 13 #include "ash/shell_window_ids.h" |
| 14 #include "ash/wm/common/window_state.h" | 14 #include "ash/wm/common/window_state.h" |
| 15 #include "ash/wm/overview/overview_animation_type.h" | 15 #include "ash/wm/overview/overview_animation_type.h" |
| 16 #include "ash/wm/overview/scoped_overview_animation_settings.h" | 16 #include "ash/wm/overview/scoped_overview_animation_settings.h" |
| 17 #include "ash/wm/overview/scoped_transform_overview_window.h" | 17 #include "ash/wm/overview/scoped_transform_overview_window.h" |
| 18 #include "ash/wm/overview/window_selector.h" | 18 #include "ash/wm/overview/window_selector.h" |
| 19 #include "ash/wm/overview/window_selector_controller.h" | 19 #include "ash/wm/overview/window_selector_controller.h" |
| 20 #include "base/auto_reset.h" | 20 #include "base/auto_reset.h" |
| 21 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
| 22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
| 24 #include "grit/ash_resources.h" | 24 #include "grit/ash_resources.h" |
| 25 #include "grit/ash_strings.h" | 25 #include "grit/ash_strings.h" |
| 26 #include "ui/accessibility/ax_enums.h" |
| 26 #include "ui/aura/client/aura_constants.h" | 27 #include "ui/aura/client/aura_constants.h" |
| 27 #include "ui/aura/window.h" | 28 #include "ui/aura/window.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
| 29 #include "ui/base/resource/resource_bundle.h" | 30 #include "ui/base/resource/resource_bundle.h" |
| 30 #include "ui/gfx/geometry/safe_integer_conversions.h" | 31 #include "ui/gfx/geometry/safe_integer_conversions.h" |
| 31 #include "ui/gfx/geometry/vector2d.h" | 32 #include "ui/gfx/geometry/vector2d.h" |
| 32 #include "ui/gfx/transform_util.h" | 33 #include "ui/gfx/transform_util.h" |
| 33 #include "ui/strings/grit/ui_strings.h" | 34 #include "ui/strings/grit/ui_strings.h" |
| 34 #include "ui/views/border.h" | 35 #include "ui/views/border.h" |
| 35 #include "ui/views/controls/button/image_button.h" | 36 #include "ui/views/controls/button/image_button.h" |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 420 } |
| 420 } | 421 } |
| 421 | 422 |
| 422 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { | 423 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { |
| 423 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( | 424 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( |
| 424 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, | 425 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, |
| 425 GetWindow()->title())); | 426 GetWindow()->title())); |
| 426 } | 427 } |
| 427 | 428 |
| 428 } // namespace ash | 429 } // namespace ash |
| OLD | NEW |