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

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

Issue 1998933002: Update shelf spacing in Chrome OS according to the MD specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments & Refactor border around item implementation 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_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 TrayContainer* tray_container() const { return tray_container_; } 146 TrayContainer* tray_container() const { return tray_container_; }
147 wm::ShelfAlignment shelf_alignment() const { return shelf_alignment_; } 147 wm::ShelfAlignment shelf_alignment() const { return shelf_alignment_; }
148 TrayEventFilter* tray_event_filter() { return tray_event_filter_.get(); } 148 TrayEventFilter* tray_event_filter() { return tray_event_filter_.get(); }
149 149
150 ShelfLayoutManager* GetShelfLayoutManager(); 150 ShelfLayoutManager* GetShelfLayoutManager();
151 151
152 // Updates the arrow visibility based on the launcher visibility. 152 // Updates the arrow visibility based on the launcher visibility.
153 void UpdateBubbleViewArrow(views::TrayBubbleView* bubble_view); 153 void UpdateBubbleViewArrow(views::TrayBubbleView* bubble_view);
154 154
155 virtual void GetHitRegionInsets(gfx::Insets& insets);
bruthig 2016/06/03 20:18:17 Google style guide says: "All parameters passed by
156
155 private: 157 private:
156 class TrayWidgetObserver; 158 class TrayWidgetObserver;
157 159
158 // Called from Initialize after all status area trays have been created. 160 // Called from Initialize after all status area trays have been created.
159 // Sets the border based on the position of the view. 161 // Sets the border based on the position of the view.
160 void SetTrayBorder(); 162 void SetTrayBorder();
161 163
162 // ui::ImplicitAnimationObserver: 164 // ui::ImplicitAnimationObserver:
163 void OnImplicitAnimationsCompleted() override; 165 void OnImplicitAnimationsCompleted() override;
164 bool RequiresNotificationWhenAnimatorDestroyed() const override; 166 bool RequiresNotificationWhenAnimatorDestroyed() const override;
(...skipping 27 matching lines...) Expand all
192 194
193 std::unique_ptr<TrayWidgetObserver> widget_observer_; 195 std::unique_ptr<TrayWidgetObserver> widget_observer_;
194 std::unique_ptr<TrayEventFilter> tray_event_filter_; 196 std::unique_ptr<TrayEventFilter> tray_event_filter_;
195 197
196 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); 198 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView);
197 }; 199 };
198 200
199 } // namespace ash 201 } // namespace ash
200 202
201 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ 203 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698