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

Side by Side Diff: Tools/GardeningServer/scripts/ui/actions.js

Issue 356273002: Remove StatusArea code from GOM it's dead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Tools/GardeningServer/scripts/ui.js ('k') | Tools/GardeningServer/scripts/ui_unittests.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 27 matching lines...) Expand all
38 event.stopPropagation(); 38 event.stopPropagation();
39 } 39 }
40 }.bind(this)); 40 }.bind(this));
41 }, 41 },
42 makeDefault: function() { 42 makeDefault: function() {
43 $(this).addClass('default'); 43 $(this).addClass('default');
44 return this; 44 return this;
45 } 45 }
46 }); 46 });
47 47
48 ui.actions.Close = base.extends(Action, {
49 init: function() {
50 this.textContent = 'Close';
51 this._eventName = 'close';
52 }
53 });
54
55 ui.actions.Examine = base.extends(Action, { 48 ui.actions.Examine = base.extends(Action, {
56 init: function() { 49 init: function() {
57 this.textContent = 'Examine'; 50 this.textContent = 'Examine';
58 this._eventName = 'examine'; 51 this._eventName = 'examine';
59 this.title = 'Examine these failures in detail.' 52 this.title = 'Examine these failures in detail.'
60 } 53 }
61 }); 54 });
62 55
63 ui.actions.ExpectFailure = base.extends(Action, {
64 init: function() {
65 this.textContent = 'Expect Failure';
66 this._eventName = 'expectfailure';
67 }
68 });
69
70 ui.actions.Next = base.extends(Action, { 56 ui.actions.Next = base.extends(Action, {
71 init: function() { 57 init: function() {
72 this.innerHTML = '▶'; 58 this.innerHTML = '▶';
73 this._eventName = 'next'; 59 this._eventName = 'next';
74 $(this).addClass('next'); 60 $(this).addClass('next');
75 } 61 }
76 }); 62 });
77 63
78 ui.actions.Previous = base.extends(Action, { 64 ui.actions.Previous = base.extends(Action, {
79 init: function() { 65 init: function() {
(...skipping 12 matching lines...) Expand all
92 }, 78 },
93 add: function(action) 79 add: function(action)
94 { 80 {
95 var item = document.createElement('li'); 81 var item = document.createElement('li');
96 item.appendChild(action); 82 item.appendChild(action);
97 $(this).append(item); 83 $(this).append(item);
98 } 84 }
99 }); 85 });
100 86
101 })(); 87 })();
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/ui.js ('k') | Tools/GardeningServer/scripts/ui_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698