| 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_COMMON_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
| 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/common/system/tray/special_popup_row.h" | 9 #include "ash/common/system/tray/special_popup_row.h" |
| 10 #include "ash/common/system/tray/view_click_listener.h" | 10 #include "ash/common/system/tray/view_click_listener.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Overridden to handle clicks on subclass-specific views. | 69 // Overridden to handle clicks on subclass-specific views. |
| 70 virtual void HandleViewClicked(views::View* view); | 70 virtual void HandleViewClicked(views::View* view); |
| 71 | 71 |
| 72 // Overridden to handle button presses on subclass-specific buttons. | 72 // Overridden to handle button presses on subclass-specific buttons. |
| 73 virtual void HandleButtonPressed(views::Button* sender, | 73 virtual void HandleButtonPressed(views::Button* sender, |
| 74 const ui::Event& event); | 74 const ui::Event& event); |
| 75 | 75 |
| 76 // Creates and adds subclass-specific buttons to the title row. | 76 // Creates and adds subclass-specific buttons to the title row. |
| 77 virtual void CreateExtraTitleRowButtons(); | 77 virtual void CreateExtraTitleRowButtons(); |
| 78 | 78 |
| 79 // Overridden to show WebUI settings for subclass-specific detailed views. | |
| 80 virtual void ShowSettings(); | |
| 81 | |
| 82 // Transition to default view from details view. If |title_row_| has focus | 79 // Transition to default view from details view. If |title_row_| has focus |
| 83 // before transition, the default view should focus on the owner of this | 80 // before transition, the default view should focus on the owner of this |
| 84 // details view. | 81 // details view. |
| 85 void TransitionToDefaultView(); | 82 void TransitionToDefaultView(); |
| 86 | 83 |
| 87 SystemTrayItem* owner_; | 84 SystemTrayItem* owner_; |
| 88 SpecialPopupRow* title_row_; | 85 SpecialPopupRow* title_row_; |
| 89 FixedSizedScrollView* scroller_; | 86 FixedSizedScrollView* scroller_; |
| 90 views::View* scroll_content_; | 87 views::View* scroll_content_; |
| 91 ScrollBorder* scroll_border_; // Weak reference | 88 ScrollBorder* scroll_border_; // Weak reference |
| 92 | 89 |
| 93 // The back button that appears in the material design title row. Not owned. | 90 // The back button that appears in the material design title row. Not owned. |
| 94 views::Button* back_button_; | 91 views::Button* back_button_; |
| 95 | 92 |
| 96 // The settings button that appears in the material design title row. Not | |
| 97 // owned. | |
| 98 views::Button* settings_button_; | |
| 99 | |
| 100 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView); | 93 DISALLOW_COPY_AND_ASSIGN(TrayDetailsView); |
| 101 }; | 94 }; |
| 102 | 95 |
| 103 } // namespace ash | 96 } // namespace ash |
| 104 | 97 |
| 105 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ | 98 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_DETAILS_VIEW_H_ |
| OLD | NEW |