Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |