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 "chrome/browser/chromeos/ui/focus_ring_controller.h" | 5 #include "chrome/browser/chromeos/ui/focus_ring_controller.h" |
6 | 6 |
7 #include "ash/common/system/tray/actionable_view.h" | 7 #include "ash/system/tray/actionable_view.h" |
8 #include "ash/common/system/tray/tray_background_view.h" | 8 #include "ash/system/tray/tray_background_view.h" |
9 #include "ash/common/system/tray/tray_popup_header_button.h" | 9 #include "ash/system/tray/tray_popup_header_button.h" |
10 #include "ash/wm/window_util.h" | 10 #include "ash/wm/window_util.h" |
11 #include "chrome/browser/chromeos/ui/focus_ring_layer.h" | 11 #include "chrome/browser/chromeos/ui/focus_ring_layer.h" |
12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
13 #include "ui/views/controls/button/label_button.h" | 13 #include "ui/views/controls/button/label_button.h" |
14 #include "ui/views/view.h" | 14 #include "ui/views/view.h" |
15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 FocusRingController::FocusRingController() | 19 FocusRingController::FocusRingController() |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 views::View* focused_now) { | 139 views::View* focused_now) { |
140 } | 140 } |
141 | 141 |
142 void FocusRingController::OnDidChangeFocus(views::View* focused_before, | 142 void FocusRingController::OnDidChangeFocus(views::View* focused_before, |
143 views::View* focused_now) { | 143 views::View* focused_now) { |
144 DCHECK_EQ(focused_now, widget_->GetFocusManager()->GetFocusedView()); | 144 DCHECK_EQ(focused_now, widget_->GetFocusManager()->GetFocusedView()); |
145 UpdateFocusRing(); | 145 UpdateFocusRing(); |
146 } | 146 } |
147 | 147 |
148 } // namespace chromeos | 148 } // namespace chromeos |
OLD | NEW |