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/common/wm/overview/window_selector_item.h" | 5 #include "ash/common/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/common/material_design/material_design_controller.h" | 10 #include "ash/common/material_design/material_design_controller.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "base/time/time.h" | 28 #include "base/time/time.h" |
29 #include "grit/ash_resources.h" | 29 #include "grit/ash_resources.h" |
30 #include "grit/ash_strings.h" | 30 #include "grit/ash_strings.h" |
31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
32 #include "ui/base/resource/resource_bundle.h" | 32 #include "ui/base/resource/resource_bundle.h" |
33 #include "ui/gfx/canvas.h" | 33 #include "ui/gfx/canvas.h" |
34 #include "ui/gfx/geometry/safe_integer_conversions.h" | 34 #include "ui/gfx/geometry/safe_integer_conversions.h" |
35 #include "ui/gfx/geometry/vector2d.h" | 35 #include "ui/gfx/geometry/vector2d.h" |
36 #include "ui/gfx/paint_vector_icon.h" | 36 #include "ui/gfx/paint_vector_icon.h" |
37 #include "ui/gfx/transform_util.h" | 37 #include "ui/gfx/transform_util.h" |
38 #include "ui/gfx/vector_icons.h" | 38 #include "ui/gfx/vector_icons_public.h" |
39 #include "ui/strings/grit/ui_strings.h" | 39 #include "ui/strings/grit/ui_strings.h" |
40 #include "ui/views/background.h" | 40 #include "ui/views/background.h" |
41 #include "ui/views/border.h" | 41 #include "ui/views/border.h" |
42 #include "ui/views/controls/button/image_button.h" | 42 #include "ui/views/controls/button/image_button.h" |
43 #include "ui/views/layout/box_layout.h" | 43 #include "ui/views/layout/box_layout.h" |
44 #include "ui/views/window/non_client_view.h" | 44 #include "ui/views/window/non_client_view.h" |
45 #include "ui/wm/core/shadow.h" | 45 #include "ui/wm/core/shadow.h" |
46 #include "ui/wm/core/window_util.h" | 46 #include "ui/wm/core/window_util.h" |
47 | 47 |
48 namespace ash { | 48 namespace ash { |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 window_label_selector_window->SetOpacity(opacity); | 664 window_label_selector_window->SetOpacity(opacity); |
665 } | 665 } |
666 | 666 |
667 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { | 667 void WindowSelectorItem::UpdateCloseButtonAccessibilityName() { |
668 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( | 668 close_button_->SetAccessibleName(l10n_util::GetStringFUTF16( |
669 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, | 669 IDS_ASH_OVERVIEW_CLOSE_ITEM_BUTTON_ACCESSIBLE_NAME, |
670 GetWindow()->GetTitle())); | 670 GetWindow()->GetTitle())); |
671 } | 671 } |
672 | 672 |
673 } // namespace ash | 673 } // namespace ash |
OLD | NEW |