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

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

Issue 2523523002: Add ink drop ripple to status tray (Closed)
Patch Set: Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TRAY_POPUP_UTILS_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
7 7
8 #include "ash/common/login_status.h" 8 #include "ash/common/login_status.h"
9 #include "ash/common/system/tray/tray_popup_ink_drop_style.h" 9 #include "ash/common/system/tray/tray_popup_ink_drop_style.h"
10 #include "ash/common/system/tray/tri_view.h" 10 #include "ash/common/system/tray/tri_view.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 static std::unique_ptr<views::InkDropMask> CreateInkDropMask( 161 static std::unique_ptr<views::InkDropMask> CreateInkDropMask(
162 TrayPopupInkDropStyle ink_drop_style, 162 TrayPopupInkDropStyle ink_drop_style,
163 const views::View* host); 163 const views::View* host);
164 164
165 // Returns true if it is possible to open WebUI settings in a browser window, 165 // Returns true if it is possible to open WebUI settings in a browser window,
166 // i.e., the user is logged in, not on the lock screen, and not in a secondary 166 // i.e., the user is logged in, not on the lock screen, and not in a secondary
167 // account flow. 167 // account flow.
168 static bool CanOpenWebUISettings(LoginStatus status); 168 static bool CanOpenWebUISettings(LoginStatus status);
169 169
170 private: 170 private:
171 // Returns the effective ink drop insets for |host| according to the
172 // |ink_drop_style|.
173 static gfx::Insets GetInkDropInsets(TrayPopupInkDropStyle ink_drop_style);
174
171 // Returns the effective ink drop bounds for |host| according to the 175 // Returns the effective ink drop bounds for |host| according to the
172 // |ink_drop_style|. 176 // |ink_drop_style|.
173 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style, 177 static gfx::Rect GetInkDropBounds(TrayPopupInkDropStyle ink_drop_style,
174 const views::View* host); 178 const views::View* host);
175 179
176 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils); 180 DISALLOW_IMPLICIT_CONSTRUCTORS(TrayPopupUtils);
177 }; 181 };
178 182
179 } // namespace ash 183 } // namespace ash
180 184
181 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_ 185 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_POPUP_UTILS_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_background_view.cc ('k') | ash/common/system/tray/tray_popup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698