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

Side by Side Diff: ash/common/system/status_area_widget_delegate.h

Issue 2109193002: mash: Convert StatusAreaWidgetDelegate to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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
« no previous file with comments | « ash/common/shelf/wm_shelf.h ('k') | ash/common/system/status_area_widget_delegate.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_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ 5 #ifndef ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_
6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ 6 #define ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/shelf/shelf_types.h" 9 #include "ash/common/shelf/shelf_types.h"
10 #include "ash/wm/gestures/shelf_gesture_handler.h"
11 #include "base/macros.h" 10 #include "base/macros.h"
12 #include "ui/gfx/image/image_skia.h" 11 #include "ui/gfx/image/image_skia.h"
13 #include "ui/views/accessible_pane_view.h" 12 #include "ui/views/accessible_pane_view.h"
14 #include "ui/views/widget/widget_delegate.h" 13 #include "ui/views/widget/widget_delegate.h"
15 14
16 namespace ash { 15 namespace ash {
17 class FocusCycler; 16 class FocusCycler;
18 17
18 // The View for the status area widget.
19 class ASH_EXPORT StatusAreaWidgetDelegate : public views::AccessiblePaneView, 19 class ASH_EXPORT StatusAreaWidgetDelegate : public views::AccessiblePaneView,
20 public views::WidgetDelegate { 20 public views::WidgetDelegate {
21 public: 21 public:
22 StatusAreaWidgetDelegate(); 22 StatusAreaWidgetDelegate();
23 ~StatusAreaWidgetDelegate() override; 23 ~StatusAreaWidgetDelegate() override;
24 24
25 // Add a tray view to the widget (e.g. system tray, web notifications). 25 // Add a tray view to the widget (e.g. system tray, web notifications).
26 void AddTray(views::View* tray); 26 void AddTray(views::View* tray);
27 27
28 // Called whenever layout might change (e.g. alignment changed). 28 // Called whenever layout might change (e.g. alignment changed).
(...skipping 25 matching lines...) Expand all
54 54
55 private: 55 private:
56 void UpdateWidgetSize(); 56 void UpdateWidgetSize();
57 57
58 // Sets a border on |child|. If |extend_border_to_edge| is true, then an extra 58 // Sets a border on |child|. If |extend_border_to_edge| is true, then an extra
59 // wide border is added to extend the view's hit region to the edge of the 59 // wide border is added to extend the view's hit region to the edge of the
60 // screen. 60 // screen.
61 void SetBorderOnChild(views::View* child, bool extend_border_to_edge); 61 void SetBorderOnChild(views::View* child, bool extend_border_to_edge);
62 62
63 const FocusCycler* focus_cycler_for_testing_; 63 const FocusCycler* focus_cycler_for_testing_;
64
65 // TODO(jamescook): Get this from WmShelf.
64 ShelfAlignment alignment_; 66 ShelfAlignment alignment_;
65 67
66 ShelfGestureHandler gesture_handler_;
67
68 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate); 68 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidgetDelegate);
69 }; 69 };
70 70
71 } // namespace ash 71 } // namespace ash
72 72
73 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_ 73 #endif // ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/wm_shelf.h ('k') | ash/common/system/status_area_widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698