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 "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
10 #include "ui/views/accessible_pane_view.h" | 10 #include "ui/views/accessible_pane_view.h" |
11 #include "ui/views/widget/widget_delegate.h" | 11 #include "ui/views/widget/widget_delegate.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 class StatusAreaView : public views::WidgetDelegate, | 16 class StatusAreaView : public views::WidgetDelegate, |
17 public views::AccessiblePaneView { | 17 public views::AccessiblePaneView { |
18 public: | 18 public: |
19 StatusAreaView(); | 19 StatusAreaView(); |
20 virtual ~StatusAreaView(); | 20 virtual ~StatusAreaView(); |
21 | 21 |
22 // Overridden from views::View: | 22 // Overridden from views::View: |
23 virtual gfx::Size GetPreferredSize() OVERRIDE; | 23 virtual gfx::Size GetPreferredSize() OVERRIDE; |
24 virtual views::Widget* GetWidget() OVERRIDE; | 24 virtual views::Widget* GetWidget() OVERRIDE; |
25 virtual const views::Widget* GetWidget() const OVERRIDE; | 25 virtual const views::Widget* GetWidget() const OVERRIDE; |
26 | 26 |
27 private: | 27 private: |
28 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 28 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; |
29 | 29 |
30 SkBitmap status_mock_; | 30 SkBitmap status_mock_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); | 32 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace internal | 35 } // namespace internal |
36 } // namespace ash | 36 } // namespace ash |
37 | 37 |
38 #endif // ASH_STATUS_AREA_STATUS_AREA_VIEW_H_ | 38 #endif // ASH_STATUS_AREA_STATUS_AREA_VIEW_H_ |
OLD | NEW |