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

Side by Side Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 10914206: [FileBrowser] Added go to gdrive menu item. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with master. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * FileManager constructor. 6 * FileManager constructor.
7 * 7 *
8 * FileManager objects encapsulate the functionality of the file selector 8 * FileManager objects encapsulate the functionality of the file selector
9 * dialogs, as well as the full screen file manager application (though the 9 * dialogs, as well as the full screen file manager application (though the
10 * latter is not yet implemented). 10 * latter is not yet implemented).
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 */ 67 */
68 FileManager.GOOGLE_DRIVE_BUY_STORAGE = 68 FileManager.GOOGLE_DRIVE_BUY_STORAGE =
69 'https://www.google.com/settings/storage'; 69 'https://www.google.com/settings/storage';
70 70
71 /** 71 /**
72 * Location of Google Drive specific help. 72 * Location of Google Drive specific help.
73 */ 73 */
74 FileManager.GOOGLE_DRIVE_HELP = 74 FileManager.GOOGLE_DRIVE_HELP =
75 'https://support.google.com/chromeos/?p=filemanager_drivehelp'; 75 'https://support.google.com/chromeos/?p=filemanager_drivehelp';
76 76
77 /**
78 * Location of Google Drive specific help.
79 */
80 FileManager.GOOGLE_DRIVE_ROOT = 'https://drive.google.com';
81
77 /** 82 /**
78 * Maximum amount of thumbnails in the preview pane. 83 * Maximum amount of thumbnails in the preview pane.
79 */ 84 */
80 var MAX_PREVIEW_THUMBNAIL_COUNT = 4; 85 var MAX_PREVIEW_THUMBNAIL_COUNT = 4;
81 86
82 /** 87 /**
83 * Maximum width or height of an image what pops up when the mouse hovers 88 * Maximum width or height of an image what pops up when the mouse hovers
84 * thumbnail in the bottom panel (in pixels). 89 * thumbnail in the bottom panel (in pixels).
85 */ 90 */
86 var IMAGE_HOVER_PREVIEW_SIZE = 200; 91 var IMAGE_HOVER_PREVIEW_SIZE = 200;
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 557
553 CommandUtil.registerCommand(doc, 'gdata-buy-more-space', 558 CommandUtil.registerCommand(doc, 'gdata-buy-more-space',
554 Commands.gdataBuySpaceCommand, this); 559 Commands.gdataBuySpaceCommand, this);
555 560
556 CommandUtil.registerCommand(doc, 'gdata-help', 561 CommandUtil.registerCommand(doc, 'gdata-help',
557 Commands.gdataHelpCommand, this); 562 Commands.gdataHelpCommand, this);
558 563
559 CommandUtil.registerCommand(doc, 'gdata-clear-local-cache', 564 CommandUtil.registerCommand(doc, 'gdata-clear-local-cache',
560 Commands.gdataClearCacheCommand, this); 565 Commands.gdataClearCacheCommand, this);
561 566
567 CommandUtil.registerCommand(doc, 'gdata-go-to-drive',
568 Commands.gdataGoToDriveCommand, this);
569
562 CommandUtil.registerCommand(doc, 'paste', 570 CommandUtil.registerCommand(doc, 'paste',
563 Commands.pasteFileCommand, doc, this.fileTransferController_); 571 Commands.pasteFileCommand, doc, this.fileTransferController_);
564 572
565 CommandUtil.registerCommand(doc, 'cut', Commands.defaultCommand, doc); 573 CommandUtil.registerCommand(doc, 'cut', Commands.defaultCommand, doc);
566 CommandUtil.registerCommand(doc, 'copy', Commands.defaultCommand, doc); 574 CommandUtil.registerCommand(doc, 'copy', Commands.defaultCommand, doc);
567 575
568 var inputs = this.dialogDom_.querySelectorAll( 576 var inputs = this.dialogDom_.querySelectorAll(
569 'input[type=text], input[type=search], textarea'); 577 'input[type=text], input[type=search], textarea');
570 578
571 for (i = 0; i < inputs.length; i++) { 579 for (i = 0; i < inputs.length; i++) {
(...skipping 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after
3663 this.dialogDom_.querySelector('#default-action-separator'); 3671 this.dialogDom_.querySelector('#default-action-separator');
3664 3672
3665 // TODO(dzvorygin): Here we use this hack, since 'hidden' is standard 3673 // TODO(dzvorygin): Here we use this hack, since 'hidden' is standard
3666 // attribute and we can't use it's setter as usual. 3674 // attribute and we can't use it's setter as usual.
3667 this.openWithCommand_.__lookupSetter__('hidden'). 3675 this.openWithCommand_.__lookupSetter__('hidden').
3668 call(this.openWithCommand_, !(defaultItem && isMultiple)); 3676 call(this.openWithCommand_, !(defaultItem && isMultiple));
3669 this.defaultActionMenuItem_.hidden = !defaultItem; 3677 this.defaultActionMenuItem_.hidden = !defaultItem;
3670 defaultActionSeparator.hidden = !defaultItem; 3678 defaultActionSeparator.hidden = !defaultItem;
3671 }; 3679 };
3672 })(); 3680 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698