| 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_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #if defined(TOOLKIT_USES_GTK) | 9 #include "chrome/browser/chrome_browser_main_linux.h" |
| 10 #include "chrome/browser/chrome_browser_main_gtk.h" | |
| 11 typedef ChromeBrowserMainPartsGtk ChromeBrowserMainPartsBase; | |
| 12 #else | |
| 13 #include "chrome/browser/chrome_browser_main_posix.h" | |
| 14 #include "chrome/browser/chrome_browser_main_x11.h" | |
| 15 typedef ChromeBrowserMainPartsPosix ChromeBrowserMainPartsBase; | |
| 16 #endif | |
| 17 | 10 |
| 18 namespace chromeos { | 11 namespace chromeos { |
| 19 class BrightnessObserver; | 12 class BrightnessObserver; |
| 20 class SessionManagerObserver; | 13 class SessionManagerObserver; |
| 21 } // namespace chromeos | 14 } // namespace chromeos |
| 22 | 15 |
| 23 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsBase { | 16 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { |
| 24 public: | 17 public: |
| 25 explicit ChromeBrowserMainPartsChromeos(const MainFunctionParams& parameters); | 18 explicit ChromeBrowserMainPartsChromeos(const MainFunctionParams& parameters); |
| 26 | |
| 27 virtual ~ChromeBrowserMainPartsChromeos(); | 19 virtual ~ChromeBrowserMainPartsChromeos(); |
| 28 | 20 |
| 29 virtual void PreEarlyInitialization() OVERRIDE; | 21 virtual void PreEarlyInitialization() OVERRIDE; |
| 30 virtual void PreMainMessageLoopStart() OVERRIDE; | 22 virtual void PreMainMessageLoopStart() OVERRIDE; |
| 31 virtual void PreMainMessageLoopRun() OVERRIDE; | 23 virtual void PreMainMessageLoopRun() OVERRIDE; |
| 32 virtual void PostMainMessageLoopStart() OVERRIDE; | 24 virtual void PostMainMessageLoopStart() OVERRIDE; |
| 33 | 25 |
| 34 private: | 26 private: |
| 35 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; | 27 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; |
| 36 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; | 28 scoped_ptr<chromeos::SessionManagerObserver> session_manager_observer_; |
| 29 |
| 37 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | 30 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
| 38 }; | 31 }; |
| 39 | 32 |
| 40 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
| OLD | NEW |