Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Unified Diff: experimental/webgtt/javascript/button.js

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/webgtt/graph.cc ('k') | experimental/webgtt/javascript/canvas.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webgtt/javascript/button.js
diff --git a/experimental/webgtt/javascript/button.js b/experimental/webgtt/javascript/button.js
deleted file mode 100644
index f1fba7c859244fcea6f00e569f70268f48a17f4d..0000000000000000000000000000000000000000
--- a/experimental/webgtt/javascript/button.js
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be found
-// in the LICENSE file.
-
-/**
- * @fileoverview This file contains the JavaScript required for the WebGTT
- * application, specifically, the implementation of the ColoringButton class.
- * This implementation provides functions for manipulating a coloring button,
- * and adding/managing event handlers for a coloring button.
- *
- * @author ragad@google.com (Raga Gopalakrishnan)
- */
-
-/**
- * This constant holds the default text for the coloring button.
- * @type {string}
- * @const
- */
-BUTTON_TEXT = 'Get a valid coloring';
-
-/**
- * This class is used to represent a coloring button.
- *
- * @param {object} coloringButton Handle to the DOM object representing the
- * button.
- * @param {object} graph1 Reference to the graph associated with the button.
- * @constructor
- */
-ColoringButton = function (coloringButton, graph1) {
- this.coloringButton = coloringButton;
- this.graph1 = graph1;
-
- this.coloringButton.disabled = true;
- this.setText('Please wait...');
-};
-
-/**
- * This function disables/enables the coloring button.
- *
- * @param {boolean} disabled The value to be assigned to
- * coloringButton.disabled.
- */
-ColoringButton.prototype.setDisabled = function (isDisabled) {
- this.coloringButton.disabled = isDisabled;
-};
-
-/**
- * This function sets the text on the coloring button.
- *
- * @param {string} buttonText The text to be displayed on the coloring button.
- */
-ColoringButton.prototype.setText = function (buttonText) {
- this.coloringButton.innerHTML = buttonText;
-};
-
-/**
- * This function handles the click event on the coloring button. Note that the
- * event object passed to this function is of no use here.
- *
- * @param {object} e The Event object containing information about the click
- * event.
- */
-ColoringButton.prototype.handleColoringButtonClick = function (e) {
- canvas1.setEditMode(false);
- this.setDisabled(true);
- this.setText('Please wait...');
- naclModule1.postMessage(
- '::' +
- this.graph1.getAdjacencyMatrix().toString() +
- '::' +
- '0' +
- '::');
-};
« no previous file with comments | « experimental/webgtt/graph.cc ('k') | experimental/webgtt/javascript/canvas.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698