summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/Speedometer/resources/flightjs-example-app/app/boot/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webkit/PerformanceTests/Speedometer/resources/flightjs-example-app/app/boot/page.js')
-rw-r--r--third_party/webkit/PerformanceTests/Speedometer/resources/flightjs-example-app/app/boot/page.js47
1 files changed, 47 insertions, 0 deletions
diff --git a/third_party/webkit/PerformanceTests/Speedometer/resources/flightjs-example-app/app/boot/page.js b/third_party/webkit/PerformanceTests/Speedometer/resources/flightjs-example-app/app/boot/page.js
new file mode 100644
index 0000000000..f561f8e2c6
--- /dev/null
+++ b/third_party/webkit/PerformanceTests/Speedometer/resources/flightjs-example-app/app/boot/page.js
@@ -0,0 +1,47 @@
+'use strict';
+
+define(
+
+ [
+ 'app/component_data/mail_items',
+ 'app/component_data/compose_box',
+ 'app/component_data/move_to',
+ 'app/component_ui/mail_items',
+ 'app/component_ui/mail_controls',
+ 'app/component_ui/compose_box',
+ 'app/component_ui/folders',
+ 'app/component_ui/move_to_selector'
+ ],
+
+ function(
+ MailItemsData,
+ ComposeBoxData,
+ MoveToData,
+ MailItemsUI,
+ MailControlsUI,
+ ComposeBoxUI,
+ FoldersUI,
+ MoveToSelectorUI) {
+
+ function initialize() {
+ MailItemsData.attachTo(document);
+ ComposeBoxData.attachTo(document, {
+ selectedFolders: ['inbox']
+ });
+ MoveToData.attachTo(document);
+ MailItemsUI.attachTo('#mail_items', {
+ itemContainerSelector: '#mail_items_TB',
+ selectedFolders: ['inbox']
+ });
+ MailControlsUI.attachTo('#mail_controls');
+ ComposeBoxUI.attachTo('#compose_box');
+ FoldersUI.attachTo('#folders');
+ MoveToSelectorUI.attachTo('#move_to_selector', {
+ moveActionSelector: '#move_mail',
+ selectedFolders: ['inbox']
+ });
+ }
+
+ return initialize;
+ }
+);