| 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" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // Overridden from ui::EventHandler: | 44 // Overridden from ui::EventHandler: |
| 45 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 45 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 46 | 46 |
| 47 // views::WidgetDelegate overrides: | 47 // views::WidgetDelegate overrides: |
| 48 virtual bool CanActivate() const OVERRIDE; | 48 virtual bool CanActivate() const OVERRIDE; |
| 49 virtual void DeleteDelegate() OVERRIDE; | 49 virtual void DeleteDelegate() OVERRIDE; |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 // Overridden from views::View: | 52 // Overridden from views::View: |
| 53 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 53 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; |
| 54 virtual void ChildVisibilityChanged(views::View* child) OVERRIDE; |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 void UpdateWidgetSize(); | 57 void UpdateWidgetSize(); |
| 57 | 58 |
| 58 const FocusCycler* focus_cycler_for_testing_; | 59 const FocusCycler* focus_cycler_for_testing_; |
| 59 ShelfAlignment alignment_; | 60 ShelfAlignment alignment_; |
| 60 | 61 |
| 61 ShelfGestureHandler gesture_handler_; | 62 ShelfGestureHandler gesture_handler_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); | 64 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace internal | 67 } // namespace internal |
| 67 } // namespace ash | 68 } // namespace ash |
| 68 | 69 |
| 69 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ | 70 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ |
| OLD | NEW |