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

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

Issue 2053001: Fix crash when opening "Select certificate file" in OOBE. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: added correct way to check for OOBE/login mode 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual void ChildPreferredSizeChanged(View* child); 44 virtual void ChildPreferredSizeChanged(View* child);
45 virtual void LocaleChanged(); 45 virtual void LocaleChanged();
46 46
47 // Overridden from StatusAreaHost: 47 // Overridden from StatusAreaHost:
48 virtual Profile* GetProfile() const { return NULL; } 48 virtual Profile* GetProfile() const { return NULL; }
49 virtual gfx::NativeWindow GetNativeWindow() const; 49 virtual gfx::NativeWindow GetNativeWindow() const;
50 virtual bool ShouldOpenButtonOptions( 50 virtual bool ShouldOpenButtonOptions(
51 const views::View* button_view) const; 51 const views::View* button_view) const;
52 virtual void OpenButtonOptions(const views::View* button_view) const; 52 virtual void OpenButtonOptions(const views::View* button_view) const;
53 virtual bool IsButtonVisible(const views::View* button_view) const; 53 virtual bool IsButtonVisible(const views::View* button_view) const;
54 virtual bool IsBrowserMode() const;
54 55
55 private: 56 private:
56 // Creates and adds the status_area. 57 // Creates and adds the status_area.
57 void InitStatusArea(); 58 void InitStatusArea();
58 // Creates and adds the labels for version and boot time. 59 // Creates and adds the labels for version and boot time.
59 void InitInfoLabels(); 60 void InitInfoLabels();
60 61
61 // Invokes SetWindowType for the window. This is invoked during startup and 62 // Invokes SetWindowType for the window. This is invoked during startup and
62 // after we've painted. 63 // after we've painted.
63 void UpdateWindowType(); 64 void UpdateWindowType();
(...skipping 22 matching lines...) Expand all
86 // manager. 87 // manager.
87 // TODO(sky): nuke this when the wm knows when chrome has painted. 88 // TODO(sky): nuke this when the wm knows when chrome has painted.
88 bool did_paint_; 89 bool did_paint_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(BackgroundView); 91 DISALLOW_COPY_AND_ASSIGN(BackgroundView);
91 }; 92 };
92 93
93 } // namespace chromeos 94 } // namespace chromeos
94 95
95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_BACKGROUND_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/frame/browser_view.cc ('k') | chrome/browser/chromeos/login/background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698