This adds the hw_screen module which is responsible for receiving rendered HTML from a POS client and sending it to a running Chromium browser. This is done by sending Remote Debugging Protocol messages over a WebSocket provided by Chromium. This allows hw_screen to evaluate arbitrary JS. This is used to seamlessly (without flickering) update the browser. This also includes changes to the POSBox. X, Chromium and some miscellaneous other programs were added. Functionality was added that automatically displays a fullscreen, UI-less Chromium browser when the POSBox starts up. This is accomplished through x_application.sh, which gets executed only when a display is detected. After the browser starts, it will display a specific screen until it receives the first order update from a POS client. Creates a public controller to be able to display the interface on an external device not connected to the posbox (e.g. tablet) Courtesy of JOV, LPE, ODO and MAT
23 lines
991 B
Python
23 lines
991 B
Python
# -*- coding: utf-8 -*-
|
|
##############################################################################
|
|
#
|
|
# OpenERP, Open Source Management Solution
|
|
# Copyright (C) 2004-2015 Tiny SPRL (<http://tiny.be>).
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
##############################################################################
|
|
|
|
import main
|