Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: ash/status_area/status_area_view.h

Issue 10056001: chromeos: Remove old status-area related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shell_delegate.h ('k') | ash/status_area/status_area_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « ash/shell_delegate.h ('k') | ash/status_area/status_area_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698