1 // Copyright (c) 2013 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 #ifndef XWALK_APPLICATION_BROWSER_APPLICATION_TIZEN_H_
5 #define XWALK_APPLICATION_BROWSER_APPLICATION_TIZEN_H_
7 #include "xwalk/application/browser/application.h"
10 #include "base/message_loop/message_pump_observer.h"
14 namespace application {
16 class ApplicationTizen : // NOLINT
17 #if defined(USE_OZONE)
18 public base::MessagePumpObserver,
22 virtual ~ApplicationTizen();
26 // We enforce ApplicationService ownership.
27 friend class ApplicationService;
28 ApplicationTizen(scoped_refptr<ApplicationData> data,
29 RuntimeContext* context,
30 Application::Observer* observer);
32 virtual void InitSecurityPolicy() OVERRIDE;
34 #if defined(USE_OZONE)
35 virtual base::EventStatus WillProcessEvent(
36 const base::NativeEvent& event) OVERRIDE;
37 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE;
41 inline ApplicationTizen* ToApplicationTizen(Application* app) {
42 return static_cast<ApplicationTizen*>(app);
45 } // namespace application
48 #endif // XWALK_APPLICATION_BROWSER_APPLICATION_TIZEN_H_