WebBrowser/FeaturePermissions/FeaturePermissionBar.py

changeset 5034
203039d7e945
parent 4904
ea8f13f76d26
child 5389
9b1c800daff3
equal deleted inserted replaced
5033:d1c2651060ec 5034:203039d7e945
43 self.__feature = feature 43 self.__feature = feature
44 self.__page = page 44 self.__page = page
45 self.__manager = manager 45 self.__manager = manager
46 46
47 self.__permissionFeatureTexts = { 47 self.__permissionFeatureTexts = {
48 # TODO: Qt 5.7?
49 ## QWebEnginePage.Notifications:
50 ## self.tr("{0} wants to use desktop notifications."),
51 QWebEnginePage.Geolocation: 48 QWebEnginePage.Geolocation:
52 self.tr("{0} wants to use your position."), 49 self.tr("{0} wants to use your position."),
53 QWebEnginePage.MediaAudioCapture: 50 QWebEnginePage.MediaAudioCapture:
54 self.tr("{0} wants to use your microphone."), 51 self.tr("{0} wants to use your microphone."),
55 QWebEnginePage.MediaVideoCapture: 52 QWebEnginePage.MediaVideoCapture:
58 self.tr("{0} wants to use your microphone and camera."), 55 self.tr("{0} wants to use your microphone and camera."),
59 QWebEnginePage.MouseLock: 56 QWebEnginePage.MouseLock:
60 self.tr("{0} wants to lock your mouse."), 57 self.tr("{0} wants to lock your mouse."),
61 } 58 }
62 self.__permissionFeatureIconNames = { 59 self.__permissionFeatureIconNames = {
63 # TODO: Qt 5.7?
64 ## QWebEnginePage.Notifications: "notification.png",
65 QWebEnginePage.Geolocation: "geolocation.png", 60 QWebEnginePage.Geolocation: "geolocation.png",
66 QWebEnginePage.MediaAudioCapture: "audiocapture.png", 61 QWebEnginePage.MediaAudioCapture: "audiocapture.png",
67 QWebEnginePage.MediaVideoCapture: "camera.png", 62 QWebEnginePage.MediaVideoCapture: "camera.png",
68 QWebEnginePage.MediaAudioVideoCapture: "audio-video.png", 63 QWebEnginePage.MediaAudioVideoCapture: "audio-video.png",
69 QWebEnginePage.MouseLock: "mouse.png", 64 QWebEnginePage.MouseLock: "mouse.png",

eric ide

mercurial