blob: f5f5f74687fdfc32e70432084991b1ce904abbd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_
#define CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_
#include "base/memory/scoped_ptr.h"
#if defined(TOOLKIT_USES_GTK)
#include "chrome/browser/chrome_browser_main_gtk.h"
typedef ChromeBrowserMainPartsGtk ChromeBrowserMainPartsBase;
#else
#include "chrome/browser/chrome_browser_main_posix.h"
#include "chrome/browser/chrome_browser_main_x11.h"
typedef ChromeBrowserMainPartsPosix ChromeBrowserMainPartsBase;
#endif
namespace chromeos {
class BrightnessObserver;
} // namespace chromeos
class ChromeBrowserMainPartsChromeos : public ChromeBrowserMainPartsBase {
public:
explicit ChromeBrowserMainPartsChromeos(const MainFunctionParams& parameters);
virtual ~ChromeBrowserMainPartsChromeos();
virtual void PreEarlyInitialization() OVERRIDE;
virtual void PreMainMessageLoopStart() OVERRIDE;
virtual void PreMainMessageLoopRun() OVERRIDE;
virtual void PostMainMessageLoopStart() OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsChromeos);
private:
scoped_ptr<chromeos::BrightnessObserver> brightness_observer_;
};
#endif // CHROME_BROWSER_CHROMEOS_CHROME_BROWSER_MAIN_CHROMEOS_H_
|