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