OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_SYSTEM_FRACTIONAL_VIEW_SCALE_DETAILED_VIEW_H_ |
| 6 #define ASH_SYSTEM_FRACTIONAL_VIEW_SCALE_DETAILED_VIEW_H_ |
| 7 |
| 8 #include "ash/system/tray/tray_details_view.h" |
| 9 #include "base/macros.h" |
| 10 |
| 11 namespace views { |
| 12 class View; |
| 13 } |
| 14 |
| 15 namespace ash { |
| 16 class HoverHighlightView; |
| 17 |
| 18 namespace tray { |
| 19 |
| 20 class ScaleDetailedView : public TrayDetailsView { |
| 21 public: |
| 22 explicit ScaleDetailedView(SystemTrayItem* owner); |
| 23 |
| 24 ~ScaleDetailedView() override; |
| 25 |
| 26 private: |
| 27 HoverHighlightView* AddScrollListItem(const base::string16& text, |
| 28 bool highlight, |
| 29 bool checked); |
| 30 |
| 31 void UpdateScrollableList(); |
| 32 |
| 33 // TrayDetailsView: |
| 34 void HandleViewClicked(views::View* view) override; |
| 35 |
| 36 std::map<views::View*, double> view_to_scale_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(ScaleDetailedView); |
| 39 }; |
| 40 |
| 41 } // namespace tray |
| 42 } // namespace ash |
| 43 |
| 44 #endif // ASH_SYSTEM_FRACTIONAL_VIEW_SCALE_DETAILED_VIEW_H_ |
OLD | NEW |