OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/system/chromeos/cast/tray_cast.h" | 5 #include "ash/system/cast/tray_cast.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "ash/common/cast_config_controller.h" | 12 #include "ash/common/cast_config_controller.h" |
13 #include "ash/common/material_design/material_design_controller.h" | 13 #include "ash/common/material_design/material_design_controller.h" |
14 #include "ash/common/session/session_state_delegate.h" | 14 #include "ash/common/session/session_state_delegate.h" |
15 #include "ash/common/shelf/wm_shelf_util.h" | 15 #include "ash/common/shelf/wm_shelf_util.h" |
16 #include "ash/common/system/chromeos/screen_security/screen_tray_item.h" | |
17 #include "ash/common/system/tray/fixed_sized_image_view.h" | |
18 #include "ash/common/system/tray/hover_highlight_view.h" | |
19 #include "ash/common/system/tray/system_tray.h" | |
20 #include "ash/common/system/tray/system_tray_delegate.h" | |
21 #include "ash/common/system/tray/throbber_view.h" | |
22 #include "ash/common/system/tray/tray_constants.h" | |
23 #include "ash/common/system/tray/tray_details_view.h" | |
24 #include "ash/common/system/tray/tray_item_more.h" | |
25 #include "ash/common/system/tray/tray_item_view.h" | |
26 #include "ash/common/system/tray/tray_utils.h" | |
27 #include "ash/common/wm_shell.h" | 16 #include "ash/common/wm_shell.h" |
28 #include "ash/public/cpp/shelf_types.h" | 17 #include "ash/public/cpp/shelf_types.h" |
29 #include "ash/public/interfaces/cast_config.mojom.h" | 18 #include "ash/public/interfaces/cast_config.mojom.h" |
30 #include "ash/resources/grit/ash_resources.h" | 19 #include "ash/resources/grit/ash_resources.h" |
31 #include "ash/resources/vector_icons/vector_icons.h" | 20 #include "ash/resources/vector_icons/vector_icons.h" |
32 #include "ash/strings/grit/ash_strings.h" | 21 #include "ash/strings/grit/ash_strings.h" |
| 22 #include "ash/system/screen_security/screen_tray_item.h" |
| 23 #include "ash/system/tray/fixed_sized_image_view.h" |
| 24 #include "ash/system/tray/hover_highlight_view.h" |
| 25 #include "ash/system/tray/system_tray.h" |
| 26 #include "ash/system/tray/system_tray_delegate.h" |
| 27 #include "ash/system/tray/throbber_view.h" |
| 28 #include "ash/system/tray/tray_constants.h" |
| 29 #include "ash/system/tray/tray_details_view.h" |
| 30 #include "ash/system/tray/tray_item_more.h" |
| 31 #include "ash/system/tray/tray_item_view.h" |
| 32 #include "ash/system/tray/tray_utils.h" |
33 #include "base/bind.h" | 33 #include "base/bind.h" |
34 #include "base/strings/utf_string_conversions.h" | 34 #include "base/strings/utf_string_conversions.h" |
35 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
36 #include "ui/base/resource/resource_bundle.h" | 36 #include "ui/base/resource/resource_bundle.h" |
37 #include "ui/gfx/image/image.h" | 37 #include "ui/gfx/image/image.h" |
38 #include "ui/gfx/paint_vector_icon.h" | 38 #include "ui/gfx/paint_vector_icon.h" |
39 #include "ui/gfx/text_elider.h" | 39 #include "ui/gfx/text_elider.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/button.h" | 42 #include "ui/views/controls/button/button.h" |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 | 563 |
564 return false; | 564 return false; |
565 } | 565 } |
566 | 566 |
567 void TrayCast::OnCastingSessionStartedOrStopped(bool started) { | 567 void TrayCast::OnCastingSessionStartedOrStopped(bool started) { |
568 is_mirror_casting_ = started; | 568 is_mirror_casting_ = started; |
569 UpdatePrimaryView(); | 569 UpdatePrimaryView(); |
570 } | 570 } |
571 | 571 |
572 } // namespace ash | 572 } // namespace ash |
OLD | NEW |