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 } // namespace chromeos | 13 } // namespace chromeos |
21 | 14 |
22 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsBase { | 15 class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsLinux { |
23 public: | 16 public: |
24 explicit ChromeBrowserMainPartsChromeos(const MainFunctionParams& parameters); | 17 explicit ChromeBrowserMainPartsChromeos(const MainFunctionParams& parameters); |
25 | |
26 virtual ~ChromeBrowserMainPartsChromeos(); | 18 virtual ~ChromeBrowserMainPartsChromeos(); |
27 | 19 |
28 virtual void PreEarlyInitialization() OVERRIDE; | 20 virtual void PreEarlyInitialization() OVERRIDE; |
29 virtual void PreMainMessageLoopStart() OVERRIDE; | 21 virtual void PreMainMessageLoopStart() OVERRIDE; |
30 virtual void PreMainMessageLoopRun() OVERRIDE; | 22 virtual void PreMainMessageLoopRun() OVERRIDE; |
31 virtual void PostMainMessageLoopStart() OVERRIDE; | 23 virtual void PostMainMessageLoopStart() OVERRIDE; |
32 | 24 |
33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); | 25 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos); |
tfarina
2011/10/15 22:17:29
Can we move this to the end of private section?
| |
34 | 26 |
35 private: | 27 private: |
36 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; | 28 scoped_ptr<chromeos::BrightnessObserver> brightness_observer_; |
37 }; | 29 }; |
38 | 30 |
39 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ | 31 #endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_ |
OLD | NEW |