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.
5 #ifndef XWALK_RUNTIME_BROWSER_RUNTIME_DEFERED_UI_STRATEGY_H_
6 #define XWALK_RUNTIME_BROWSER_RUNTIME_DEFERED_UI_STRATEGY_H_
10 #include "xwalk/runtime/browser/runtime_ui_strategy.h"
11 #include "xwalk/runtime/browser/ui/native_app_window.h"
16 class RuntimeDeferedUIStrategy : public RuntimeUIStrategy {
18 RuntimeDeferedUIStrategy();
19 virtual ~RuntimeDeferedUIStrategy();
21 // Override from RuntimeUIStrategy.
22 virtual void Show(Runtime* runtime,
23 const NativeAppWindow::CreateParams& params) OVERRIDE;
25 void ShowStoredRuntimes();
28 std::map<Runtime*, NativeAppWindow::CreateParams> runtime_map_;
32 inline RuntimeDeferedUIStrategy*
33 ToRuntimeDeferedUIStrategy(RuntimeUIStrategy* ui_strategy) {
34 return static_cast<RuntimeDeferedUIStrategy*>(ui_strategy);
37 #endif // XWALK_RUNTIME_BROWSER_RUNTIME_DEFERED_UI_STRATEGY_H_