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

Side by Side Diff: chrome/browser/chromeos/status/status_area_view_chromeos.h

Issue 8509027: Add status area to Aura builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move status area view ids back to chromeos Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/status/status_area_view.h" 9 #include "chrome/browser/chromeos/status/status_area_view.h"
10 10
11 #include "chrome/browser/chromeos/cros/power_library.h" 11 #include "chrome/browser/chromeos/cros/power_library.h"
12 #include "chrome/browser/chromeos/system/timezone_settings.h" 12 #include "chrome/browser/chromeos/system/timezone_settings.h"
13 #include "chrome/browser/chromeos/view_ids.h" 13 #include "chrome/browser/chromeos/view_ids.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 class StatusAreaViewChromeos : public StatusAreaView, 17 class StatusAreaViewChromeos : public StatusAreaView,
18 public PowerLibrary::Observer, 18 public PowerLibrary::Observer,
19 public system::TimezoneSettings::Observer { 19 public system::TimezoneSettings::Observer {
20 public: 20 public:
21 // The type of screen the host window is on. 21 // The type of screen the host window is on.
22 enum ScreenMode { 22 enum ScreenMode {
23 LOGIN_MODE_VIEWS, // The host is for the views-based OOBE/login screens. 23 LOGIN_MODE_VIEWS, // The host is for the views-based OOBE/login screens.
24 LOGIN_MODE_WEBUI, // The host is for the WebUI OOBE/login screens. 24 LOGIN_MODE_WEBUI, // The host is for the WebUI OOBE/login screens.
25 BROWSER_MODE, // The host is for browser. 25 BROWSER_MODE, // The host is for browser.
26 SCREEN_LOCKER_MODE, // The host is for screen locker. 26 SCREEN_LOCKER_MODE, // The host is for screen locker.
27 }; 27 };
28 28
29 // Commands to be passed to StatusAreaButton::Delegate:ExecuteCommand().
30 enum Command {
31 SHOW_LANGUAGE_OPTIONS,
32 SHOW_NETWORK_OPTIONS,
33 SHOW_SYSTEM_OPTIONS
34 };
35
36 explicit StatusAreaViewChromeos(); 29 explicit StatusAreaViewChromeos();
37 virtual ~StatusAreaViewChromeos(); 30 virtual ~StatusAreaViewChromeos();
38 31
39 void Init(StatusAreaButton::Delegate* delegate, ScreenMode screen_mode); 32 void Init(StatusAreaButton::Delegate* delegate, ScreenMode screen_mode);
40 33
41 // PowerLibrary::Observer: 34 // PowerLibrary::Observer:
42 virtual void SystemResumed() OVERRIDE; 35 virtual void SystemResumed() OVERRIDE;
43 36
44 // TimezoneSettings::Observer: 37 // TimezoneSettings::Observer:
45 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE; 38 virtual void TimezoneChanged(const icu::TimeZone& timezone) OVERRIDE;
46 39
47 // Sets default use 24hour clock mode. 40 // Sets default use 24hour clock mode.
48 void SetDefaultUse24HourClock(bool use_24hour_clock); 41 void SetDefaultUse24HourClock(bool use_24hour_clock);
49 42
50 // Convenience function to add buttons to a status area for ChromeOS. 43 // Convenience function to add buttons to a status area for ChromeOS.
51 static void AddChromeosButtons(StatusAreaView* status_area, 44 static void AddChromeosButtons(StatusAreaView* status_area,
52 StatusAreaButton::Delegate* delegate, 45 StatusAreaButton::Delegate* delegate,
53 ScreenMode screen_mode); 46 ScreenMode screen_mode);
54 47
55 private: 48 private:
56 void UpdateClockText(); 49 void UpdateClockText();
57 50
58 DISALLOW_COPY_AND_ASSIGN(StatusAreaViewChromeos); 51 DISALLOW_COPY_AND_ASSIGN(StatusAreaViewChromeos);
59 }; 52 };
60 53
61 } // namespace chromeos 54 } // namespace chromeos
62 55
63 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_ 56 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/status_area_view.cc ('k') | chrome/browser/ui/views/aura/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698