OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/transparent_activate_window_button.h" | 5 #include "ash/wm/overview/transparent_activate_window_button.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // Explicitly specify the display so that the window doesn't change root | 126 // Explicitly specify the display so that the window doesn't change root |
127 // windows and cause the z-order of the transparent overlays to be updated. | 127 // windows and cause the z-order of the transparent overlays to be updated. |
128 window->SetBoundsInScreen(bounds, display); | 128 window->SetBoundsInScreen(bounds, display); |
129 } | 129 } |
130 | 130 |
131 void TransparentActivateWindowButton::SendFocusAlert() const { | 131 void TransparentActivateWindowButton::SendFocusAlert() const { |
132 event_handler_widget_->GetContentsView()-> | 132 event_handler_widget_->GetContentsView()-> |
133 NotifyAccessibilityEvent(ui::AX_EVENT_FOCUS, true); | 133 NotifyAccessibilityEvent(ui::AX_EVENT_FOCUS, true); |
134 } | 134 } |
135 | 135 |
136 void TransparentActivateWindowButton::StackAbove( | |
137 TransparentActivateWindowButton* activate_button) { | |
138 aura::Window* this_window = event_handler_widget_->GetNativeWindow(); | |
139 aura::Window* other_window = activate_button->event_handler_widget_-> | |
140 GetNativeWindow(); | |
141 this_window->parent()->StackChildAbove(this_window, other_window); | |
142 } | |
143 | |
144 } // namespace ash | 136 } // namespace ash |
OLD | NEW |