blob: 5fbae5fd3580fa1761886eb6d359e51ef43f7000 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_
#define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_
#pragma once
#include "base/basictypes.h"
#include "chrome/browser/views/accessible_pane_view.h"
#include "views/view.h"
namespace chromeos {
class ClockMenuButton;
class FeedbackMenuButton;
class InputMethodMenuButton;
class NetworkMenuButton;
class PowerMenuButton;
class StatusAreaHost;
// This class is used to wrap the small informative widgets in the upper-right
// of the window title bar. It is used on ChromeOS only.
class StatusAreaView : public AccessiblePaneView {
public:
explicit StatusAreaView(StatusAreaHost* host);
virtual ~StatusAreaView() {}
virtual void Init();
// views::View* overrides.
virtual gfx::Size GetPreferredSize();
virtual void Layout();
virtual void ChildPreferredSizeChanged(View* child);
ClockMenuButton* clock_view() { return clock_view_; }
FeedbackMenuButton* feedback_view() { return feedback_view_; }
InputMethodMenuButton* input_method_view() { return input_method_view_; }
NetworkMenuButton* network_view() { return network_view_; }
PowerMenuButton* power_view() { return power_view_; }
private:
StatusAreaHost* host_;
ClockMenuButton* clock_view_;
FeedbackMenuButton* feedback_view_;
InputMethodMenuButton* input_method_view_;
NetworkMenuButton* network_view_;
PowerMenuButton* power_view_;
DISALLOW_COPY_AND_ASSIGN(StatusAreaView);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_
|