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

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

Issue 1114383002: Show overview mode button in TouchView with open modal window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; 45 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override;
46 void SetShelfAlignment(ShelfAlignment alignment) override; 46 void SetShelfAlignment(ShelfAlignment alignment) override;
47 47
48 private: 48 private:
49 friend class OverviewButtonTrayTest; 49 friend class OverviewButtonTrayTest;
50 50
51 // Creates a new border for the icon. The padding is determined based on the 51 // Creates a new border for the icon. The padding is determined based on the
52 // alignment of the shelf. 52 // alignment of the shelf.
53 void SetIconBorderForShelfAlignment(); 53 void SetIconBorderForShelfAlignment();
54 54
55 // Sets the icon to visible if maximize mode is enabled and 55 // Shows or hides the overview button. The button be shown when the user is
bruthig 2015/05/01 17:43:34 nit: missing "will"? "The button be shown..."
tdanderson 2015/05/01 18:07:31 Done.
56 // WindowSelectorController::CanSelect. 56 // in maximize mode and is in an active desktop environment, otherwise the
57 // button should be hidden.
57 void UpdateIconVisibility(); 58 void UpdateIconVisibility();
58 59
59 // Weak pointer, will be parented by TrayContainer for its lifetime. 60 // Weak pointer, will be parented by TrayContainer for its lifetime.
60 views::ImageView* icon_; 61 views::ImageView* icon_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(OverviewButtonTray); 63 DISALLOW_COPY_AND_ASSIGN(OverviewButtonTray);
63 }; 64 };
64 65
65 } // namespace ash 66 } // namespace ash
66 67
67 #endif // ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ 68 #endif // ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/overview/overview_button_tray.cc » ('j') | ash/system/overview/overview_button_tray_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698