void SetObserver(Observer* observer) { observer_ = observer; }
- // Create a new Runtime instance with the given browsing context and URL.
- static Runtime* Create(RuntimeContext*, const GURL&, Observer* = NULL);
// Create a new Runtime instance which binds to a default app window.
static Runtime* CreateWithDefaultWindow(RuntimeContext*,
const GURL&, Observer* = NULL);
RuntimeContext* runtime_context() const { return runtime_context_; }
gfx::Image app_icon() const { return app_icon_; }
- static void SetGlobalObserverForTesting(Observer* observer);
+#if defined(OS_TIZEN_MOBILE)
+ void CloseRootWindow();
+#endif
protected:
Runtime(content::WebContents* web_contents, Observer* observer);
virtual void CloseContents(content::WebContents* source) OVERRIDE;
virtual void WebContentsCreated(content::WebContents* source_contents,
int64 source_frame_id,
- const string16& frame_name,
+ const base::string16& frame_name,
const GURL& target_url,
content::WebContents* new_contents) OVERRIDE;
virtual void DidNavigateMainFramePostCommit(
const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual content::ColorChooser* OpenColorChooser(
content::WebContents* web_contents,
- SkColor initial_color) OVERRIDE;
+ SkColor initial_color,
+ const std::vector<content::ColorSuggestion>& suggestions) OVERRIDE;
virtual void RunFileChooser(
content::WebContents* web_contents,
const content::FileChooserParams& params) OVERRIDE;
// NativeAppWindowDelegate implementation.
virtual void OnWindowDestroyed() OVERRIDE;
+ void ApplyWindowDefaultParams(NativeAppWindow::CreateParams* params);
+ void ApplyFullScreenParam(NativeAppWindow::CreateParams* params);
+
+#if defined(OS_TIZEN_MOBILE)
+ void ApplyRootWindowParams(NativeAppWindow::CreateParams* params);
+ void SetRootWindow(NativeAppWindow* window);
+ void InitRootWindow();
+#endif
+
// The browsing context.
xwalk::RuntimeContext* runtime_context_;
NativeAppWindow* window_;
+#if defined(OS_TIZEN_MOBILE)
+ NativeAppWindow* root_window_;
+#endif
+
gfx::Image app_icon_;
base::WeakPtrFactory<Runtime> weak_ptr_factory_;