Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


// 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.


#include "base/basictypes.h"
#include "chrome/browser/views/accessible_toolbar_view.h"
#include "views/view.h"

namespace chromeos {

class ClockMenuButton;
class FeedbackMenuButton;
class LanguageMenuButton;
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 AccessibleToolbarView {
  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_; }
  LanguageMenuButton* language_view() { return language_view_; }
  NetworkMenuButton* network_view() { return network_view_; }
  PowerMenuButton* power_view() { return power_view_; }

  StatusAreaHost* host_;

  ClockMenuButton* clock_view_;
  FeedbackMenuButton* feedback_view_;
  LanguageMenuButton* language_view_;
  NetworkMenuButton* network_view_;
  PowerMenuButton* power_view_;


}  // namespace chromeos


Generated by  Doxygen 1.6.0   Back to index