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

Side by Side Diff: ash/common/system/tray/system_tray_item.h

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (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_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/login_status.h" 9 #include "ash/common/login_status.h"
10 #include "ash/common/shelf/shelf_types.h" 10 #include "ash/common/shelf/shelf_types.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual bool ShouldHideArrow() const; 97 virtual bool ShouldHideArrow() const;
98 98
99 // Returns true if this item needs to force the shelf to be visible when 99 // Returns true if this item needs to force the shelf to be visible when
100 // the shelf is in the auto-hide state. Default is true. 100 // the shelf is in the auto-hide state. Default is true.
101 virtual bool ShouldShowShelf() const; 101 virtual bool ShouldShowShelf() const;
102 102
103 // Returns the system tray that this item belongs to. 103 // Returns the system tray that this item belongs to.
104 SystemTray* system_tray() const { return system_tray_; } 104 SystemTray* system_tray() const { return system_tray_; }
105 105
106 bool restore_focus() const { return restore_focus_; } 106 bool restore_focus() const { return restore_focus_; }
107 void set_restore_focus(bool restore_focus) { 107 void set_restore_focus(bool restore_focus) { restore_focus_ = restore_focus; }
108 restore_focus_ = restore_focus;
109 }
110 108
111 private: 109 private:
112 SystemTray* system_tray_; 110 SystemTray* system_tray_;
113 bool restore_focus_; 111 bool restore_focus_;
114 112
115 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); 113 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem);
116 }; 114 };
117 115
118 } // namespace ash 116 } // namespace ash
119 117
120 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 118 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.cc ('k') | ash/common/system/tray/system_tray_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698