common::AppDB* appdb = common::AppDB::GetInstance();
appdb->Set(kAppDBRuntimeSection, kAppDBRuntimeBundle,
appcontrol->encoded_bundle());
+ atom::Browser *browser_model = atom::Browser::Get();
+ if (browser_model->is_ready()) {
+ browser_model->AppControl(std::move(appcontrol));
+ } else {
+ browser_model->Launch(std::move(appcontrol));
+ }
}
void UiRuntime::OnLanguageChanged(const std::string& language) {
#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
#include "brightray/browser/brightray_paths.h"
-
+#include "tizen/common/resource_manager.h"
namespace atom {
Browser::Browser()
for (BrowserObserver& observer : observers_)
observer.OnResume();
}
+void Browser::AppControl(
+ std::unique_ptr<common::AppControl> appcontrol) {
+ std::unique_ptr<common::ResourceManager::Resource> res =
+ resource_manager_->GetStartResource(appcontrol.get());
+
+ bool do_reset = res->should_reset();
+//To do
+}
+void Browser::Launch(std::unique_ptr<common::AppControl> appcontrol) {
+//To do
+}
+
+
+
} // namespace atom
#include "base/strings/string16.h"
#include "base/values.h"
#include "native_mate/arguments.h"
-
+#include "tizen/common/app_control.h"
+#include "tizen/common/application_data.h"
+#include "tizen/common/resource_manager.h"
#if defined(OS_WIN)
#include "base/files/file_path.h"
#endif
~Browser();
static Browser* Get();
-
+ std::unique_ptr<common::ResourceManager> resource_manager_;
// Try to close all windows and quit the application.
void Quit();
void Hide();
void Show();
+ void AppControl(std::unique_ptr<common::AppControl> appcontrol);
+ void Launch(std::unique_ptr<common::AppControl> appcontrol);
#if defined(OS_MACOSX)
// Hide the application.
void Hide();