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

Side by Side Diff: ash/common/wm/window_cycle_list.cc

Issue 2799993003: Removes couple of methods from WmWindow (Closed)
Patch Set: 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/common/wm/overview/window_selector_item.cc ('k') | ash/common/wm_window.h » ('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/common/wm/window_cycle_list.h" 5 #include "ash/common/wm/window_cycle_list.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 9
10 #include "ash/common/wm/mru_window_tracker.h" 10 #include "ash/common/wm/mru_window_tracker.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // This view represents a single WmWindow by displaying a title and a thumbnail 63 // This view represents a single WmWindow by displaying a title and a thumbnail
64 // of the window's contents. 64 // of the window's contents.
65 class WindowPreviewView : public views::View, public aura::WindowObserver { 65 class WindowPreviewView : public views::View, public aura::WindowObserver {
66 public: 66 public:
67 explicit WindowPreviewView(WmWindow* window) 67 explicit WindowPreviewView(WmWindow* window)
68 : window_title_(new views::Label), 68 : window_title_(new views::Label),
69 preview_background_(new views::View), 69 preview_background_(new views::View),
70 mirror_view_(window->CreateViewWithRecreatedLayers().release()), 70 mirror_view_(window->CreateViewWithRecreatedLayers().release()),
71 window_observer_(this) { 71 window_observer_(this) {
72 window_observer_.Add(window->aura_window()); 72 window_observer_.Add(window->aura_window());
73 window_title_->SetText(window->GetTitle()); 73 window_title_->SetText(window->aura_window()->GetTitle());
74 window_title_->SetHorizontalAlignment(gfx::ALIGN_LEFT); 74 window_title_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
75 window_title_->SetEnabledColor(SK_ColorWHITE); 75 window_title_->SetEnabledColor(SK_ColorWHITE);
76 window_title_->SetAutoColorReadabilityEnabled(false); 76 window_title_->SetAutoColorReadabilityEnabled(false);
77 // Background is not fully opaque, so subpixel rendering won't look good. 77 // Background is not fully opaque, so subpixel rendering won't look good.
78 window_title_->SetSubpixelRenderingEnabled(false); 78 window_title_->SetSubpixelRenderingEnabled(false);
79 // The base font is 12pt (for English) so this comes out to 14pt. 79 // The base font is 12pt (for English) so this comes out to 14pt.
80 const int kLabelSizeDelta = 2; 80 const int kLabelSizeDelta = 2;
81 window_title_->SetFontList( 81 window_title_->SetFontList(
82 window_title_->font_list().DeriveWithSizeDelta(kLabelSizeDelta)); 82 window_title_->font_list().DeriveWithSizeDelta(kLabelSizeDelta));
83 const int kAboveLabelPadding = 5; 83 const int kAboveLabelPadding = 5;
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 widget_rect.set_height(widget_height); 542 widget_rect.set_height(widget_height);
543 params.bounds = widget_rect; 543 params.bounds = widget_rect;
544 widget->Init(params); 544 widget->Init(params);
545 545
546 screen_observer_.Add(display::Screen::GetScreen()); 546 screen_observer_.Add(display::Screen::GetScreen());
547 widget->Show(); 547 widget->Show();
548 cycle_ui_widget_ = widget; 548 cycle_ui_widget_ = widget;
549 } 549 }
550 550
551 } // namespace ash 551 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/overview/window_selector_item.cc ('k') | ash/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698