| OLD | NEW |
| 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_LEGACY_WINDOW_MANAGER_INITIAL_BROWSER_WINDOW_OBS
ERVER_H_ | 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_ | 6 #define CHROME_BROWSER_CHROMEOS_LEGACY_WINDOW_MANAGER_INITIAL_BROWSER_WINDOW_OBS
ERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // when it sees the first Chrome browser window get mapped post-login. Tests | 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 | 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 | 24 // window manager running for Aura builds, so we make Chrome replicate this |
| 25 // behavior itself. | 25 // behavior itself. |
| 26 // | 26 // |
| 27 // TODO(derat): Once Aura is fully in use in Chrome OS, remove this and make | 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. | 28 // tests instead use pyauto to communicate with Chrome. |
| 29 class InitialBrowserWindowObserver : public content::NotificationObserver { | 29 class InitialBrowserWindowObserver : public content::NotificationObserver { |
| 30 public: | 30 public: |
| 31 InitialBrowserWindowObserver(); | 31 InitialBrowserWindowObserver(); |
| 32 ~InitialBrowserWindowObserver() {} | 32 virtual ~InitialBrowserWindowObserver() {} |
| 33 | 33 |
| 34 // content::NotificationObserver implementation: | 34 // content::NotificationObserver implementation: |
| 35 virtual void Observe(int type, | 35 virtual void Observe(int type, |
| 36 const content::NotificationSource& source, | 36 const content::NotificationSource& source, |
| 37 const content::NotificationDetails& details) OVERRIDE; | 37 const content::NotificationDetails& details) OVERRIDE; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 content::NotificationRegistrar registrar_; | 40 content::NotificationRegistrar registrar_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(InitialBrowserWindowObserver); | 42 DISALLOW_COPY_AND_ASSIGN(InitialBrowserWindowObserver); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace chromeos | 45 } // namespace chromeos |
| 46 | 46 |
| 47 #endif // CHROME_BROWSER_CHROMEOS_LEGACY_WINDOW_MANAGER_INITIAL_BROWSER_WINDOW_
OBSERVER_H_ | 47 #endif // CHROME_BROWSER_CHROMEOS_LEGACY_WINDOW_MANAGER_INITIAL_BROWSER_WINDOW_
OBSERVER_H_ |
| OLD | NEW |