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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
10 #include "ash/wm/shelf_types.h" | 10 #include "ash/wm/shelf_types.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 // views::WidgetDelegate overrides: | 45 // views::WidgetDelegate overrides: |
46 virtual bool CanActivate() const OVERRIDE; | 46 virtual bool CanActivate() const OVERRIDE; |
47 virtual void DeleteDelegate() OVERRIDE; | 47 virtual void DeleteDelegate() OVERRIDE; |
48 | 48 |
49 protected: | 49 protected: |
50 // Overridden from views::View: | 50 // Overridden from views::View: |
51 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 51 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
52 | 52 |
53 private: | 53 private: |
| 54 void UpdateWidgetSize(); |
| 55 |
54 const FocusCycler* focus_cycler_for_testing_; | 56 const FocusCycler* focus_cycler_for_testing_; |
55 ShelfAlignment alignment_; | 57 ShelfAlignment alignment_; |
56 | 58 |
57 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); | 59 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); |
58 }; | 60 }; |
59 | 61 |
60 } // namespace internal | 62 } // namespace internal |
61 } // namespace ash | 63 } // namespace ash |
62 | 64 |
63 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ | 65 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ |
OLD | NEW |