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