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

Side by Side Diff: chrome/browser/chromeos/legacy_window_manager/initial_browser_window_observer.h

Issue 8539051: aura: Touch state file after first browser is ready. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update more includes 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_LEGACY_WINDOW_MANAGER_INITIAL_BROWSER_WINDOW_OBS ERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_LEGACY_WINDOW_MANAGER_INITIAL_BROWSER_WINDOW_OBS ERVER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h"
13
14 namespace content {
15 class NotificationDetails;
16 class NotificationSource;
17 }
18
19 namespace chromeos {
20
21 // The old X window manager for Chrome OS touches a file under /var/run/state
22 // when it sees the first Chrome browser window get mapped post-login. Tests
23 // then watch for this file to determine when login is completed. There's no X
24 // window manager running for Aura builds, so we make Chrome replicate this
25 // behavior itself.
26 //
27 // TODO(derat): Once Aura is fully in use in Chrome OS, remove this and make
28 // tests instead use pyauto to communicate with Chrome.
29 class InitialBrowserWindowObserver : public content::NotificationObserver {
30 public:
31 InitialBrowserWindowObserver();
32 ~InitialBrowserWindowObserver() {}
33
34 // content::NotificationObserver implementation:
35 virtual void Observe(int type,
36 const content::NotificationSource& source,
37 const content::NotificationDetails& details) OVERRIDE;
38
39 private:
40 content::NotificationRegistrar registrar_;
41
42 DISALLOW_COPY_AND_ASSIGN(InitialBrowserWindowObserver);
43 };
44
45 } // namespace chromeos
46
47 #endif // CHROME_BROWSER_CHROMEOS_LEGACY_WINDOW_MANAGER_INITIAL_BROWSER_WINDOW_ OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698