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

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

Issue 8438064: Separate StatusAreaView from StatusAreaViewChromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_
6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_
7 #pragma once
8
9 #include "ui/gfx/native_widget_types.h"
10
11 namespace views {
12 class View;
13 } // namespace views
14
15 class Profile;
16
17 namespace chromeos {
18
19 // This class is an abstraction decoupling StatusAreaView from its host
20 // window.
21 class StatusAreaHost {
22 public:
23 // Different text styles for different types of backgrounds.
24 enum TextStyle {
25 kWhitePlain,
26 kGrayPlain,
27 kWhiteHaloed,
28 kGrayEmbossed
29 };
30
31 // The type of screen the host window is on.
32 enum ScreenMode {
33 kViewsLoginMode, // The host is for the views-based OOBE/login screens.
34 kWebUILoginMode, // The host is for the WebUI OOBE/login screens.
35 kBrowserMode, // The host is for browser.
36 kScreenLockerMode, // The host is for screen locker.
37 };
38
39 // Returns the Profile if this status area is inside the browser and has a
40 // profile. Otherwise, returns NULL.
41 virtual Profile* GetProfile() const = 0;
42
43 // Returns native window hosting the status area.
44 virtual gfx::NativeWindow GetNativeWindow() const = 0;
45
46 // Indicates if options dialog related to the button specified should be
47 // shown.
48 virtual bool ShouldOpenButtonOptions(
49 const views::View* button_view) const = 0;
50
51 // Opens options dialog related to the button specified.
52 virtual void OpenButtonOptions(const views::View* button_view) = 0;
53
54 // Executes browser command.
55 virtual void ExecuteBrowserCommand(int id) const = 0;
56
57 // Returns the text style.
58 virtual TextStyle GetTextStyle() const = 0;
59
60 // Returns the type of screen.
61 virtual ScreenMode GetScreenMode() const = 0;
62
63 // Invoked when a child button's visibility changes.
64 virtual void ButtonVisibilityChanged(views::View* button_view) = 0;
65
66 protected:
67 virtual ~StatusAreaHost() {}
68 };
69
70 } // namespace chromeos
71
72 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698