| 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/common/shelf/shelf_types.h" | 9 #include "ash/common/shelf/shelf_types.h" |
| 10 #include "ash/wm/gestures/shelf_gesture_handler.h" | 10 #include "ash/wm/gestures/shelf_gesture_handler.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void DeleteDelegate() override; | 48 void DeleteDelegate() override; |
| 49 | 49 |
| 50 protected: | 50 protected: |
| 51 // Overridden from views::View: | 51 // Overridden from views::View: |
| 52 void ChildPreferredSizeChanged(views::View* child) override; | 52 void ChildPreferredSizeChanged(views::View* child) override; |
| 53 void ChildVisibilityChanged(views::View* child) override; | 53 void ChildVisibilityChanged(views::View* child) override; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 void UpdateWidgetSize(); | 56 void UpdateWidgetSize(); |
| 57 | 57 |
| 58 // Sets a border on |child|. If |extend_border_to_edge| is true, then an extra |
| 59 // wide border is added to extend the view's hit region to the edge of the |
| 60 // screen. |
| 61 void SetBorderOnChild(views::View* child, bool extend_border_to_edge); |
| 62 |
| 58 const FocusCycler* focus_cycler_for_testing_; | 63 const FocusCycler* focus_cycler_for_testing_; |
| 59 ShelfAlignment alignment_; | 64 ShelfAlignment alignment_; |
| 60 | 65 |
| 61 ShelfGestureHandler gesture_handler_; | 66 ShelfGestureHandler gesture_handler_; |
| 62 | 67 |
| 63 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); | 68 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); |
| 64 }; | 69 }; |
| 65 | 70 |
| 66 } // namespace ash | 71 } // namespace ash |
| 67 | 72 |
| 68 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ | 73 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ |
| OLD | NEW |