| Index: chrome/browser/chromeos/status/status_area_view_chromeos.h
|
| diff --git a/chrome/browser/chromeos/status/status_area_view_chromeos.h b/chrome/browser/chromeos/status/status_area_view_chromeos.h
|
| deleted file mode 100644
|
| index 6e6a42b6f3d19c42e8e0a8d446a294092bb8de0f..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/chromeos/status/status_area_view_chromeos.h
|
| +++ /dev/null
|
| @@ -1,74 +0,0 @@
|
| -// Copyright (c) 2012 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_CHROMEOS_H_
|
| -#define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_
|
| -#pragma once
|
| -
|
| -#include "chrome/browser/chromeos/status/status_area_view.h"
|
| -
|
| -#include "chrome/browser/chromeos/system/timezone_settings.h"
|
| -#include "chrome/browser/chromeos/view_ids.h"
|
| -#include "chromeos/dbus/power_manager_client.h"
|
| -
|
| -class ClockMenuButton;
|
| -
|
| -namespace chromeos {
|
| -
|
| -class StatusAreaViewChromeos : public StatusAreaView,
|
| - public PowerManagerClient::Observer,
|
| - public system::TimezoneSettings::Observer {
|
| - public:
|
| - // The type of screen the host window is on.
|
| - enum ScreenMode {
|
| - LOGIN_MODE_WEBUI, // The host is for the WebUI OOBE/login screens.
|
| - BROWSER_MODE, // The host is for browser.
|
| - SCREEN_LOCKER_MODE, // The host is for screen locker.
|
| - };
|
| -
|
| - // True if the browser is visible (i.e. not login/OOBE).
|
| - static bool IsBrowserMode();
|
| -
|
| - // True if not logged in into user session (i.e. login/OOBE).
|
| - // It's not always !IsBrowserMode() as there's SCREEN_LOCKER_MODE which
|
| - // is inside user session, using login host and browser is not available.
|
| - static bool IsLoginMode();
|
| -
|
| - // True if user is logged in but browser session is not available
|
| - // as screen lock is active.
|
| - static bool IsScreenLockMode();
|
| -
|
| - // Sets current screen mode.
|
| - static void SetScreenMode(ScreenMode mode);
|
| -
|
| - explicit StatusAreaViewChromeos();
|
| - virtual ~StatusAreaViewChromeos();
|
| -
|
| - void Init(StatusAreaButton::Delegate* delegate);
|
| -
|
| - // PowerManagerClient::Observer:
|
| - virtual void SystemResumed() OVERRIDE;
|
| -
|
| - // TimezoneSettings::Observer:
|
| - virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE;
|
| -
|
| - // Convenience function to add buttons to a status area for ChromeOS.
|
| - // |clock_button| (if non-NULL) is set to the ClockMenuButton that is created
|
| - // by this method.
|
| - static void AddChromeosButtons(StatusAreaView* status_area,
|
| - StatusAreaButton::Delegate* delegate,
|
| - ClockMenuButton** clock_button);
|
| -
|
| - private:
|
| - // Current screen mode of the status area.
|
| - static ScreenMode screen_mode_;
|
| -
|
| - void UpdateClockText();
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(StatusAreaViewChromeos);
|
| -};
|
| -
|
| -} // namespace chromeos
|
| -
|
| -#endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_
|
|
|