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

Side by Side Diff: chrome/browser/chromeos/login/background_view.h

Issue 1927002: Hiding status area on welcome screen. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: nit fixes Created 10 years, 7 months 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/background_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_LOGIN_BACKGROUND_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_
7 7
8 #include "chrome/browser/chromeos/boot_times_loader.h" 8 #include "chrome/browser/chromeos/boot_times_loader.h"
9 #include "chrome/browser/chromeos/cros/cros_library.h" 9 #include "chrome/browser/chromeos/cros/cros_library.h"
10 #include "chrome/browser/chromeos/version_loader.h" 10 #include "chrome/browser/chromeos/version_loader.h"
(...skipping 16 matching lines...) Expand all
27 class BackgroundView : public views::View, public StatusAreaHost { 27 class BackgroundView : public views::View, public StatusAreaHost {
28 public: 28 public:
29 BackgroundView(); 29 BackgroundView();
30 30
31 // Creates a window containing an instance of WizardContentsView as the root 31 // Creates a window containing an instance of WizardContentsView as the root
32 // view. The caller is responsible for showing (and closing) the returned 32 // view. The caller is responsible for showing (and closing) the returned
33 // widget. The BackgroundView is set in |view|. 33 // widget. The BackgroundView is set in |view|.
34 static views::Widget* CreateWindowContainingView(const gfx::Rect& bounds, 34 static views::Widget* CreateWindowContainingView(const gfx::Rect& bounds,
35 BackgroundView** view); 35 BackgroundView** view);
36 36
37 // Toggles status area visibility.
38 void SetStatusAreaVisible(bool visible);
39
37 protected: 40 protected:
38 // Overridden from views::View: 41 // Overridden from views::View:
39 virtual void Paint(gfx::Canvas* canvas); 42 virtual void Paint(gfx::Canvas* canvas);
40 virtual void Layout(); 43 virtual void Layout();
41 virtual void ChildPreferredSizeChanged(View* child); 44 virtual void ChildPreferredSizeChanged(View* child);
42 virtual void LocaleChanged(); 45 virtual void LocaleChanged();
43 46
44 // Overridden from StatusAreaHost: 47 // Overridden from StatusAreaHost:
45 virtual Profile* GetProfile() const { return NULL; } 48 virtual Profile* GetProfile() const { return NULL; }
46 virtual gfx::NativeWindow GetNativeWindow() const; 49 virtual gfx::NativeWindow GetNativeWindow() const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // manager. 86 // manager.
84 // TODO(sky): nuke this when the wm knows when chrome has painted. 87 // TODO(sky): nuke this when the wm knows when chrome has painted.
85 bool did_paint_; 88 bool did_paint_;
86 89
87 DISALLOW_COPY_AND_ASSIGN(BackgroundView); 90 DISALLOW_COPY_AND_ASSIGN(BackgroundView);
88 }; 91 };
89 92
90 } // namespace chromeos 93 } // namespace chromeos
91 94
92 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ 95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698