| 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_STATUS_AREA_WIDGET_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ |
| 6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ | 6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/shelf/shelf_types.h" | 9 #include "ash/shelf/shelf_types.h" |
| 10 #include "ash/wm/gestures/shelf_gesture_handler.h" | 10 #include "ash/wm/gestures/shelf_gesture_handler.h" |
| 11 #include "ui/gfx/image/image_skia.h" | 11 #include "ui/gfx/image/image_skia.h" |
| 12 #include "ui/views/accessible_pane_view.h" | 12 #include "ui/views/accessible_pane_view.h" |
| 13 #include "ui/views/widget/widget_delegate.h" | 13 #include "ui/views/widget/widget_delegate.h" |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 namespace internal { | |
| 17 | |
| 18 class FocusCycler; | 16 class FocusCycler; |
| 19 | 17 |
| 20 class ASH_EXPORT StatusAreaWidgetDelegate : public views::AccessiblePaneView, | 18 class ASH_EXPORT StatusAreaWidgetDelegate : public views::AccessiblePaneView, |
| 21 public views::WidgetDelegate { | 19 public views::WidgetDelegate { |
| 22 public: | 20 public: |
| 23 StatusAreaWidgetDelegate(); | 21 StatusAreaWidgetDelegate(); |
| 24 virtual ~StatusAreaWidgetDelegate(); | 22 virtual ~StatusAreaWidgetDelegate(); |
| 25 | 23 |
| 26 // Add a tray view to the widget (e.g. system tray, web notifications). | 24 // Add a tray view to the widget (e.g. system tray, web notifications). |
| 27 void AddTray(views::View* tray); | 25 void AddTray(views::View* tray); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 57 void UpdateWidgetSize(); | 55 void UpdateWidgetSize(); |
| 58 | 56 |
| 59 const FocusCycler* focus_cycler_for_testing_; | 57 const FocusCycler* focus_cycler_for_testing_; |
| 60 ShelfAlignment alignment_; | 58 ShelfAlignment alignment_; |
| 61 | 59 |
| 62 ShelfGestureHandler gesture_handler_; | 60 ShelfGestureHandler gesture_handler_; |
| 63 | 61 |
| 64 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); | 62 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 } // namespace internal | |
| 68 } // namespace ash | 65 } // namespace ash |
| 69 | 66 |
| 70 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ | 67 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ |
| OLD | NEW |