Upstream version 8.36.169.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / xwalk_runner_tizen.h
1 // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef XWALK_RUNTIME_BROWSER_XWALK_RUNNER_TIZEN_H_
6 #define XWALK_RUNTIME_BROWSER_XWALK_RUNNER_TIZEN_H_
7
8 #include <string>
9
10 #include "xwalk/runtime/browser/xwalk_runner.h"
11 #include "xwalk/runtime/browser/tizen/tizen_locale_listener.h"
12
13 namespace xwalk {
14
15 // Main object customizations for the Tizen port of Crosswalk. Any objects
16 // specific to Tizen should be created here.
17 class XWalkRunnerTizen : public XWalkRunner {
18  public:
19   // See documentation in xwalk_runner.h about when it is valid to access
20   // XWalkRunner directly. Relying too much on this accessor makes code harder
21   // to change and harder to reason about.
22   static XWalkRunnerTizen* GetInstance();
23
24   virtual ~XWalkRunnerTizen();
25
26   virtual void PreMainMessageLoopRun() OVERRIDE;
27
28  private:
29   friend class XWalkRunner;
30   XWalkRunnerTizen();
31
32   TizenLocaleListener tizen_locale_listener_;
33 };
34
35 }  // namespace xwalk
36
37 #endif  // XWALK_RUNTIME_BROWSER_XWALK_RUNNER_TIZEN_H_