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

Side by Side Diff: ash/system/tray/tray_details_view.h

Issue 2821363002: cros: Disable system tray help/lock buttons during supervised user creation (Closed)
Patch Set: fix browser test 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/system/tiles/tray_tiles_unittest.cc ('k') | ash/system/tray/tray_details_view.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TRAY_TRAY_DETAILS_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_
6 #define ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/login_status.h"
12 #include "ash/system/tray/tray_constants.h" 11 #include "ash/system/tray/tray_constants.h"
13 #include "ash/system/tray/view_click_listener.h" 12 #include "ash/system/tray/view_click_listener.h"
14 #include "base/macros.h" 13 #include "base/macros.h"
15 #include "base/timer/timer.h" 14 #include "base/timer/timer.h"
16 #include "ui/views/controls/button/button.h" 15 #include "ui/views/controls/button/button.h"
17 #include "ui/views/view.h" 16 #include "ui/views/view.h"
18 17
19 namespace views { 18 namespace views {
20 class BoxLayout; 19 class BoxLayout;
21 class CustomButton; 20 class CustomButton;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void Reset(); 71 void Reset();
73 72
74 // Shows or hides the progress bar below the title row. It occupies the same 73 // Shows or hides the progress bar below the title row. It occupies the same
75 // space as the separator, so when shown the separator is hidden. If 74 // space as the separator, so when shown the separator is hidden. If
76 // |progress_bar_| doesn't already exist it will be created. 75 // |progress_bar_| doesn't already exist it will be created.
77 void ShowProgress(double value, bool visible); 76 void ShowProgress(double value, bool visible);
78 77
79 // Helper functions which create and return the settings and help buttons, 78 // Helper functions which create and return the settings and help buttons,
80 // respectively, used in the material design top-most header row. The caller 79 // respectively, used in the material design top-most header row. The caller
81 // assumes ownership of the returned buttons. 80 // assumes ownership of the returned buttons.
82 views::CustomButton* CreateSettingsButton(LoginStatus status, 81 views::CustomButton* CreateSettingsButton(int setting_accessible_name_id);
83 int setting_accessible_name_id); 82 views::CustomButton* CreateHelpButton();
84 views::CustomButton* CreateHelpButton(LoginStatus status);
85 83
86 TriView* tri_view() { return tri_view_; } 84 TriView* tri_view() { return tri_view_; }
87 85
88 private: 86 private:
89 friend class test::TrayDetailsViewTest; 87 friend class test::TrayDetailsViewTest;
90 88
91 // Overridden to handle clicks on subclass-specific views. 89 // Overridden to handle clicks on subclass-specific views.
92 virtual void HandleViewClicked(views::View* view); 90 virtual void HandleViewClicked(views::View* view);
93 91
94 // Overridden to handle button presses on subclass-specific buttons. 92 // Overridden to handle button presses on subclass-specific buttons.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 128
131 // Used to delay the transition to the default view. 129 // Used to delay the transition to the default view.
132 base::OneShotTimer transition_delay_timer_; 130 base::OneShotTimer transition_delay_timer_;
133 131
134 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView); 132 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView);
135 }; 133 };
136 134
137 } // namespace ash 135 } // namespace ash
138 136
139 #endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ 137 #endif // ASH_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tiles/tray_tiles_unittest.cc ('k') | ash/system/tray/tray_details_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698