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

Side by Side Diff: ash/system/overview/overview_button_tray.h

Issue 308683002: Move MaximizeModeWindowManager to the controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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
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 #ifndef ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ 5 #ifndef ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_
6 #define ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ 6 #define ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "ash/system/tray/tray_background_view.h" 10 #include "ash/system/tray/tray_background_view.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const views::TrayBubbleView* bubble_view) OVERRIDE; 44 const views::TrayBubbleView* bubble_view) OVERRIDE;
45 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; 45 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE;
46 46
47 private: 47 private:
48 friend class OverviewButtonTrayTest; 48 friend class OverviewButtonTrayTest;
49 49
50 // Creates a new border for the icon. The padding is determined based on the 50 // Creates a new border for the icon. The padding is determined based on the
51 // alignment of the shelf. 51 // alignment of the shelf.
52 void SetIconBorderForShelfAlignment(); 52 void SetIconBorderForShelfAlignment();
53 53
54 // Sets the icon to visible if |maximize_mode_enabled| and 54 // Sets the icon to visible if maximize mode is enabled and
55 // WindowSelectorController::CanSelect. 55 // WindowSelectorController::CanSelect.
56 void UpdateIconVisibility(bool maximize_mode_enabled); 56 void UpdateIconVisibility();
57 57
58 // Weak pointer, will be parented by TrayContainer for its lifetime. 58 // Weak pointer, will be parented by TrayContainer for its lifetime.
59 views::ImageView* icon_; 59 views::ImageView* icon_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(OverviewButtonTray); 61 DISALLOW_COPY_AND_ASSIGN(OverviewButtonTray);
62 }; 62 };
63 63
64 } // namespace ash 64 } // namespace ash
65 65
66 #endif // ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ 66 #endif // ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc ('k') | ash/system/overview/overview_button_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698