Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Side by Side Diff: ash/wm/overview/transparent_activate_window_button.cc

Issue 844763006: Change overview mode to so that docked panel windows are not grouped together. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed stale pointer in ScopedTransformOverviewWindow. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/overview/transparent_activate_window_button.h ('k') | ash/wm/overview/window_grid.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/wm/overview/transparent_activate_window_button.h ('k') | ash/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698