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

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

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: feedback Created 3 years, 8 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/window_selector.cc ('k') | ash/wm/overview/window_selector_unittest.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 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/wm/overview/window_selector_item.h" 5 #include "ash/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/material_design/material_design_controller.h" 10 #include "ash/material_design/material_design_controller.h"
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 params_label.visible_on_all_workspaces = true; 612 params_label.visible_on_all_workspaces = true;
613 params_label.layer_type = ui::LAYER_NOT_DRAWN; 613 params_label.layer_type = ui::LAYER_NOT_DRAWN;
614 params_label.name = "OverviewModeLabel"; 614 params_label.name = "OverviewModeLabel";
615 params_label.activatable = 615 params_label.activatable =
616 views::Widget::InitParams::Activatable::ACTIVATABLE_DEFAULT; 616 views::Widget::InitParams::Activatable::ACTIVATABLE_DEFAULT;
617 params_label.accept_events = true; 617 params_label.accept_events = true;
618 item_widget_.reset(new views::Widget); 618 item_widget_.reset(new views::Widget);
619 root_window_->GetRootWindowController() 619 root_window_->GetRootWindowController()
620 ->ConfigureWidgetInitParamsForContainer( 620 ->ConfigureWidgetInitParamsForContainer(
621 item_widget_.get(), 621 item_widget_.get(),
622 transform_window_.window()->GetParent()->GetShellWindowId(), 622 transform_window_.window()->GetParent()->aura_window()->id(),
623 &params_label); 623 &params_label);
624 item_widget_->set_focus_on_creation(false); 624 item_widget_->set_focus_on_creation(false);
625 item_widget_->Init(params_label); 625 item_widget_->Init(params_label);
626 WmWindow* widget_window = WmWindow::Get(item_widget_->GetNativeWindow()); 626 WmWindow* widget_window = WmWindow::Get(item_widget_->GetNativeWindow());
627 if (transform_window_.GetTopInset()) { 627 if (transform_window_.GetTopInset()) {
628 // For windows with headers the overview header fades in above the 628 // For windows with headers the overview header fades in above the
629 // original window header. 629 // original window header.
630 widget_window->GetParent()->StackChildAbove(widget_window, 630 widget_window->GetParent()->StackChildAbove(widget_window,
631 transform_window_.window()); 631 transform_window_.window());
632 } else { 632 } else {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 755
756 gfx::SlideAnimation* WindowSelectorItem::GetBackgroundViewAnimation() { 756 gfx::SlideAnimation* WindowSelectorItem::GetBackgroundViewAnimation() {
757 return background_view_ ? background_view_->animation() : nullptr; 757 return background_view_ ? background_view_->animation() : nullptr;
758 } 758 }
759 759
760 WmWindow* WindowSelectorItem::GetOverviewWindowForMinimizedStateForTest() { 760 WmWindow* WindowSelectorItem::GetOverviewWindowForMinimizedStateForTest() {
761 return transform_window_.GetOverviewWindowForMinimizedState(); 761 return transform_window_.GetOverviewWindowForMinimizedState();
762 } 762 }
763 763
764 } // namespace ash 764 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698