/*
 * Copyright 2012 The Closure Compiler Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 *
 * @fileoverview an @externs file for the Angular Material library
 *
 */


/**
 * @const {Object}
 */
var md = {};


/******************************************************************************
 * $dialog Service
 *****************************************************************************/


/** @constructor */
md.$dialog = function() {};


/**
 * @typedef {{
 *   templateUrl: (string|undefined),
 *   template: (string|undefined),
 *   targetEvent: (Object|undefined),
 *   hasBackdrop: (boolean|undefined),
 *   clickOutsideToClose: (boolean|undefined),
 *   escapeToClose: (boolean|undefined),
 *   controller: (Function|string|undefined),
 *   locals: (Object|undefined),
 *   resolve: (Object|undefined),
 *   controllerAs: (string|undefined),
 *   parent: (Element|undefined)
 * }}
 */
md.$dialog.options;


/**
 * @typedef {{
 *   title: (function(string): md.$dialog.AlertConfig_),
 *   content: (function(string): md.$dialog.AlertConfig_),
 *   ok: (function(string): md.$dialog.AlertConfig_)
 * }}
 */
md.$dialog.AlertConfig_;


/**
 * @typedef {{
 *   title: (function(string): md.$dialog.ConfirmConfig_),
 *   content: (function(string): md.$dialog.ConfirmConfig_),
 *   ok: (function(string): md.$dialog.ConfirmConfig_),
 *   cancel: (function(string): md.$dialog.ConfirmConfig_)
 * }}
 */
md.$dialog.ConfirmConfig_;


/**
 * @param {md.$dialog.options|md.$dialog.ConfirmConfig_|
 *     md.$dialog.AlertConfig_} options
 * @return {angular.$q.Promise}
 */
md.$dialog.prototype.show = function(options) {};


/**
 * @type {function(*=)}
 */
md.$dialog.prototype.hide = function() {};


/**
 * @type {function(*=)}
 */
md.$dialog.prototype.cancel = function() {};


/** @return {!md.$dialog.AlertConfig_} */
md.$dialog.prototype.alert = function() {};


/** @return {!md.$dialog.ConfirmConfig_} */
md.$dialog.prototype.confirm = function() {};


/******************************************************************************
 * $toast Service
 *****************************************************************************/


/** @constructor */
md.$toast = function() {};


/**
 * @typedef {{
 *   templateUrl: (string|undefined),
 *   template: (string|undefined),
 *   hideDelay: (number|undefined),
 *   position: (string|undefined),
 *   controller: (Function|string|undefined),
 *   locals: (Object|undefined),
 *   resolve: (Object|undefined),
 *   controllerAs: (string|undefined)
 * }}
 */
md.$toast.options;


/**
 * @param {md.$toast.options} options
 * @return {angular.$q.Promise}
 */
md.$toast.prototype.show = function(options) {};


/**
 * @type {function(*=)}
 */
md.$toast.prototype.hide = function() {};


/**
 * @type {function(*=)}
 */
md.$toast.prototype.cancel = function() {};


/******************************************************************************
 * $sidenav Service
 *****************************************************************************/


/**
 * @typedef {{
 *   isOpen: function():boolean,
 *   toggle: function(),
 *   open: function(),
 *   close: function()
 * }}
 */
md._sidenavService;

/**
 * Sidenav service is actually a function that returns an object.
 * @typedef {
 *   function(string):md._sidenavService
 * }
 */
md.$sidenav;

@@ -3820,8 +3820,537 @@
 idenav;%0A
+%0A%0A/******************************************************************************%0A * $mdThemingProvider Service%0A *****************************************************************************/%0A%0A%0A/**%0A * @typedef %7B%7B%0A *   setDefaultTheme: function(string),%0A *   alwaysWatchTheme: function(boolean)%0A * %7D%7D%0A */%0Amd.$mdThemingProvider;%0A%0A/**%0A * @param %7Bstring%7D theme%0A */%0Amd.$mdThemingProvider.setDefaultTheme = function(theme) %7B%7D;%0A%0A/**%0A * @param %7Bboolean%7D alwaysWatch%0A */%0Amd.$mdThemingProvider.alwaysWatchTheme = function(alwaysWatch) %7B%7D;%0A

Add $mdThemingProvider to angular material externs.