|
@@ -58,6 +58,11 @@ function browserGenPage() {
|
|
|
<div class="controls"><button class="btn_normal_long"\
|
|
|
id="browser_sogou_btn_fetch">搜狗输入法信息快照</button></div>\
|
|
|
</div>\
|
|
|
+ <div class="clearboth" id="browser_screen_info_fetch_div" style="padding-top:50px">\
|
|
|
+ <div class="control-label" style="margin-top: 8px;"> </div>\
|
|
|
+ <div class="controls"><button class="btn_normal_long"\
|
|
|
+ id="browser_screen_info_fetch">屏幕显示信息获取</button></div>\
|
|
|
+ </div>\
|
|
|
</div>\
|
|
|
<div id="browser_activation_content" class="page_prompt_info page_scenes_info_text hide">\
|
|
|
</div>\
|
|
@@ -141,8 +146,6 @@ var browserController = (function() {
|
|
|
RVC.ResourceWatcherEntity.commErrorCallback(ret);
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
//V3.0
|
|
@@ -170,6 +173,29 @@ var browserController = (function() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function FetchScreenDisplayInfo() {
|
|
|
+ let req = new Request();
|
|
|
+ req.type = 1;//屏幕信息
|
|
|
+ req.reserved1 = 0;
|
|
|
+ req.reserved2 = 0;
|
|
|
+ req.timeout = 20000;
|
|
|
+
|
|
|
+ utilStartSubmitDialog();
|
|
|
+ RVC.ResourceWatcherEntity.FetchSystemSnapshot(req, function(ret) {
|
|
|
+ utilStopSubmitDialog();
|
|
|
+ if(ret.errorCode === 0) {
|
|
|
+ let result = JSON.parse(ret[RVC.EntityController.sigResponseUUID])
|
|
|
+ if(result.result == 0) {
|
|
|
+ utilStartAlertDialog(result.msg);
|
|
|
+ } else {
|
|
|
+ utilStartAlertDialog("获取信息失败:[" + result.result + "] " + result.msg);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ RVC.ResourceWatcherEntity.commErrorCallback(ret);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
function FetchSogouInputInfo() {
|
|
|
let req = new Request();
|
|
|
req.configType = 0;
|
|
@@ -335,6 +361,7 @@ var browserController = (function() {
|
|
|
$(document).on('click', '#btn_restart_chromium', restartBrowser);
|
|
|
$(document).on('click', '#browser_sogou_btn_restart', restartSogouProcess);
|
|
|
$(document).on('click', '#browser_sogou_btn_fetch', FetchSogouInputInfo);
|
|
|
+ $(document).on('click', '#browser_screen_info_fetch', FetchScreenDisplayInfo);
|
|
|
|
|
|
selectBrowserUseMode();
|
|
|
|