GeoView : Code optmization.
svn: r11476
This commit is contained in:
parent
32b1de70cf
commit
21dde898a9
@ -151,13 +151,13 @@ class Renderer():
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def go_back(self):
|
def go_back(self):
|
||||||
raise NotImplementedError
|
self.window.go_back();
|
||||||
|
|
||||||
def can_go_back(self):
|
def can_go_back(self):
|
||||||
return self.window.can_go_back()
|
return self.window.can_go_back()
|
||||||
|
|
||||||
def go_forward(self):
|
def go_forward(self):
|
||||||
raise NotImplementedError
|
self.window.go_forward();
|
||||||
|
|
||||||
def can_go_forward(self):
|
def can_go_forward(self):
|
||||||
return self.window.can_go_forward()
|
return self.window.can_go_forward()
|
||||||
@ -187,12 +187,6 @@ class RendererWebkit(Renderer):
|
|||||||
def refresh(self):
|
def refresh(self):
|
||||||
self.window.reload();
|
self.window.reload();
|
||||||
|
|
||||||
def go_back(self):
|
|
||||||
self.window.go_back();
|
|
||||||
|
|
||||||
def go_forward(self):
|
|
||||||
self.window.go_forward();
|
|
||||||
|
|
||||||
def execute_script(self,url):
|
def execute_script(self,url):
|
||||||
self.window.execute_script(url);
|
self.window.execute_script(url);
|
||||||
|
|
||||||
@ -221,12 +215,6 @@ class RendererMozilla(Renderer):
|
|||||||
def refresh(self):
|
def refresh(self):
|
||||||
self.window.reload(0);
|
self.window.reload(0);
|
||||||
|
|
||||||
def go_back(self):
|
|
||||||
self.window.go_back();
|
|
||||||
|
|
||||||
def go_forward(self):
|
|
||||||
self.window.go_forward();
|
|
||||||
|
|
||||||
def __set_mozembed_proxy(self):
|
def __set_mozembed_proxy(self):
|
||||||
"""
|
"""
|
||||||
Try to see if we have some proxy environment variable.
|
Try to see if we have some proxy environment variable.
|
||||||
|
Loading…
Reference in New Issue
Block a user