// Copyright (c) 2013 Intel Corporation. All rights reserved.
+// Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef XWALK_APPLICATION_BROWSER_APPLICATION_TIZEN_H_
#define XWALK_APPLICATION_BROWSER_APPLICATION_TIZEN_H_
+#include <string>
+
#include "base/event_types.h"
-#include "content/browser/screen_orientation/screen_orientation_provider.h"
#include "xwalk/application/browser/application.h"
+#include "xwalk/application/common/tizen/cookie_manager.h"
#if defined(USE_OZONE)
#include "ui/events/platform/platform_event_observer.h"
#if defined(USE_OZONE)
public ui::PlatformEventObserver,
#endif
- public Application, public content::ScreenOrientationProvider {
+ public Application {
public:
virtual ~ApplicationTizen();
void Hide();
+ void Suspend();
+ void Resume();
+
+ void RemoveAllCookies();
+ void SetUserAgentString(const std::string& user_agent_string);
private:
- // We enforce ApplicationService ownership.
- friend class ApplicationService;
+ friend class Application;
ApplicationTizen(scoped_refptr<ApplicationData> data,
- RuntimeContext* context,
- Application::Observer* observer);
+ RuntimeContext* context);
virtual bool Launch(const LaunchParams& launch_params) OVERRIDE;
- virtual void InitSecurityPolicy() OVERRIDE;
+
+ virtual base::FilePath GetSplashScreenPath() OVERRIDE;
#if defined(USE_OZONE)
virtual void WillProcessEvent(const ui::PlatformEvent& event) OVERRIDE;
virtual void DidProcessEvent(const ui::PlatformEvent& event) OVERRIDE;
#endif
- // content::ScreenOrientationProvider overrides:
- virtual void LockOrientation(
- blink::WebScreenOrientationLockType orientations) OVERRIDE;
- virtual void UnlockOrientation() OVERRIDE;
+ scoped_ptr<CookieManager> cookie_manager_;
+ bool is_suspended_;
};
inline ApplicationTizen* ToApplicationTizen(Application* app) {