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

Side by Side Diff: ash/wm/overview/window_selector_window.h

Issue 256413004: Relayout windows in overview when display size changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge and remove extra newline. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/overview/window_selector_unittest.cc ('k') | ash/wm/overview/window_selector_window.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 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
7 7
8 #include "ash/wm/overview/scoped_transform_overview_window.h" 8 #include "ash/wm/overview/scoped_transform_overview_window.h"
9 #include "ash/wm/overview/window_selector_item.h" 9 #include "ash/wm/overview/window_selector_item.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 30 matching lines...) Expand all
41 virtual void SetItemBounds(aura::Window* root_window, 41 virtual void SetItemBounds(aura::Window* root_window,
42 const gfx::Rect& target_bounds, 42 const gfx::Rect& target_bounds,
43 bool animate) OVERRIDE; 43 bool animate) OVERRIDE;
44 44
45 // views::ButtonListener: 45 // views::ButtonListener:
46 virtual void ButtonPressed(views::Button* sender, 46 virtual void ButtonPressed(views::Button* sender,
47 const ui::Event& event) OVERRIDE; 47 const ui::Event& event) OVERRIDE;
48 private: 48 private:
49 // Creates the close button window if it does not exist and updates the bounds 49 // Creates the close button window if it does not exist and updates the bounds
50 // to match the window selector item. 50 // to match the window selector item.
51 void UpdateCloseButtonBounds(aura::Window* root_window); 51 void UpdateCloseButtonBounds(aura::Window* root_window, bool animate);
52 52
53 // The window with a scoped transform represented by this selector item. 53 // The window with a scoped transform represented by this selector item.
54 ScopedTransformOverviewWindow transform_window_; 54 ScopedTransformOverviewWindow transform_window_;
55 55
56 // An easy to access close button for the window in this item. 56 // An easy to access close button for the window in this item.
57 scoped_ptr<views::Widget> close_button_; 57 scoped_ptr<views::Widget> close_button_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow); 59 DISALLOW_COPY_AND_ASSIGN(WindowSelectorWindow);
60 }; 60 };
61 61
62 } // namespace ash 62 } // namespace ash
63 63
64 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_ 64 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector_unittest.cc ('k') | ash/wm/overview/window_selector_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698