Sha256: 12c7dd94f7168338a9b55464a2ae30d13ccc4f5f4574a5f25f6d5cb21c9008f7

Contents?: true

Size: 630 Bytes

Versions: 14

Compression:

Stored size: 630 Bytes

Contents

module Redcar
  module HtmlController
    include Redcar::Observable
    
    # Reload the index page
    def reload_index
      notify_listeners(:reload_index)
    end
    
    # Override this to return a message if the user should be prompted
    # before closing the tab.
    def ask_before_closing
      nil
    end
    
    # Override this to run code right before the tab is closed.
    def close
      nil
    end
    
    # Call execute with a string of javascript to execute the script
    # in the context of the browser widget.
    def execute(script)
      notify_listeners(:execute_script, script)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
redcar-0.5.1 plugins/html_view/lib/html_controller.rb
redcar-0.5 plugins/html_view/lib/html_controller.rb
redcar-0.5.6dev plugins/html_view/lib/html_controller.rb
redcar-0.5.5dev plugins/html_view/lib/html_controller.rb
redcar-0.5.4dev plugins/html_view/lib/html_controller.rb
redcar-0.5.3dev plugins/html_view/lib/html_controller.rb
redcar-0.5.2dev plugins/html_view/lib/html_controller.rb
redcar-0.5.1dev plugins/html_view/lib/html_controller.rb
redcar-0.4.1 plugins/html_view/lib/html_controller.rb
redcar-0.4 plugins/html_view/lib/html_controller.rb
redcar-0.3.10.1dev plugins/html_view/lib/html_controller.rb
redcar-0.3.10.0dev plugins/html_view/lib/html_controller.rb
redcar-0.3.9 plugins/html_view/lib/html_controller.rb
redcar-0.3.9.0dev plugins/html_view/lib/html_controller.rb