Messaging over debug channel.

This commit is contained in:
Ben Vanik
2013-12-22 00:21:35 -08:00
parent a9378eb7eb
commit 80d8dc02aa
13 changed files with 319 additions and 20 deletions

View File

@@ -13,9 +13,13 @@ var module = angular.module('xe.ui.navbar', []);
module.controller('NavbarController', function(
$scope, $state, app, log) {
$rootScope, $scope, $state, app, log) {
$scope.connectClicked = function() {
$scope.refresh = function() {
$rootScope.$emit('refresh');
};
$scope.connect = function() {
// TODO(benvanik): show a fancy dialog or something.
var oldSession = app.session;
app.connect().then(function(session) {
@@ -34,7 +38,7 @@ module.controller('NavbarController', function(
});
};
$scope.openClicked = function() {
$scope.open = function() {
var inputEl = document.createElement('input');
inputEl.type = 'file';
inputEl.accept = '.xe-trace,application/x-extension-xe-trace';