OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ |
| 6 #define ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/views/view.h" |
| 10 |
| 11 namespace views { |
| 12 class ImageView; |
| 13 } |
| 14 |
| 15 namespace ash { |
| 16 |
| 17 class SystemTrayItem; |
| 18 |
| 19 namespace internal { |
| 20 |
| 21 // A view with a chevron ('>') on the right edge. Clicking on the view brings up |
| 22 // the detailed view of the tray-item that owns it. |
| 23 class TrayItemMore : public views::View { |
| 24 public: |
| 25 explicit TrayItemMore(SystemTrayItem* owner); |
| 26 virtual ~TrayItemMore(); |
| 27 |
| 28 void AddMore(); |
| 29 |
| 30 private: |
| 31 // Overridden from views::View. |
| 32 virtual void Layout() OVERRIDE; |
| 33 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
| 34 |
| 35 SystemTrayItem* owner_; |
| 36 views::ImageView* more_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(TrayItemMore); |
| 39 }; |
| 40 |
| 41 } // namespace internal |
| 42 } // namespace ash |
| 43 |
| 44 #endif // ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ |
OLD | NEW |