~ubuntu-branches/ubuntu/intrepid/miro/intrepid

« back to all changes in this revision

Viewing changes to platform/windows-xul/frontend_implementation/HTMLDisplay.py

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2008-02-09 13:37:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080209133710-9rs90q6gckvp1b6i
Tags: 1.1.2-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# You should have received a copy of the GNU General Public License
15
15
# along with this program; if not, write to the Free Software
16
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
17
#
 
18
# In addition, as a special exception, the copyright holders give
 
19
# permission to link the code of portions of this program with the OpenSSL
 
20
# library.
 
21
#
 
22
# You must obey the GNU General Public License in all respects for all of
 
23
# the code used other than OpenSSL. If you modify file(s) with this
 
24
# exception, you may extend this exception to your version of the file(s),
 
25
# but you are not obligated to do so. If you do not wish to do so, delete
 
26
# this exception statement from your version. If you delete this exception
 
27
# statement from all source files in the program, then also delete it here.
17
28
 
18
29
import threading
19
30
import socket
138
149
        self.area = None
139
150
 
140
151
    @deferUntilLoad
 
152
    def execJS(self, javascript):
 
153
        print "EXEC JS: ", javascript
 
154
        fullUrl = "javascript:%s" % javascript
 
155
        frontend.jsBridge.xulNavigateDisplay(self.area, fullUrl)
 
156
 
 
157
    @deferUntilLoad
141
158
    def navigateToFragment(self, fragment):
142
159
        fullUrl = "%s#%s" % (self.url, fragment)
143
160
        frontend.jsBridge.xulNavigateDisplay(self.area, fullUrl)