| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_STATUS_AREA_STATUS_AREA_VIEW_H_ | |
| 6 #define ASH_STATUS_AREA_STATUS_AREA_VIEW_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "ash/ash_export.h" | |
| 10 #include "third_party/skia/include/core/SkBitmap.h" | |
| 11 #include "ui/views/accessible_pane_view.h" | |
| 12 #include "ui/views/widget/widget_delegate.h" | |
| 13 | |
| 14 namespace ash { | |
| 15 namespace internal { | |
| 16 | |
| 17 class FocusCycler; | |
| 18 | |
| 19 class ASH_EXPORT StatusAreaView : public views::WidgetDelegate, | |
| 20 public views::AccessiblePaneView { | |
| 21 public: | |
| 22 StatusAreaView(); | |
| 23 virtual ~StatusAreaView(); | |
| 24 | |
| 25 // Sets the focus cycler. | |
| 26 void SetFocusCyclerForTesting(const FocusCycler* focus_cycler); | |
| 27 | |
| 28 // Overridden from views::AccessiblePaneView. | |
| 29 virtual View* GetDefaultFocusableChild() OVERRIDE; | |
| 30 | |
| 31 // Overridden from views::View: | |
| 32 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | |
| 33 virtual views::Widget* GetWidget() OVERRIDE; | |
| 34 virtual const views::Widget* GetWidget() const OVERRIDE; | |
| 35 | |
| 36 // views::WidgetDelegate overrides: | |
| 37 virtual bool CanActivate() const OVERRIDE; | |
| 38 virtual void DeleteDelegate() OVERRIDE; | |
| 39 | |
| 40 private: | |
| 41 const FocusCycler* focus_cycler_for_testing_; | |
| 42 | |
| 43 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); | |
| 44 }; | |
| 45 | |
| 46 } // namespace internal | |
| 47 } // namespace ash | |
| 48 | |
| 49 #endif // ASH_STATUS_AREA_STATUS_AREA_VIEW_H_ | |
| OLD | NEW |