Commit 7da9492c authored by rbpotter's avatar rbpotter Committed by Commit Bot

Print Preview Compontentization: Add closure targets

Add individual closure compiler targets for data elements needed by new
UI.

Bug: 773928
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: If4f877da51d174e06b09ac4618f7ac1c56096cae
Reviewed-on: https://chromium-review.googlesource.com/792014Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519514}
parent 6387be41
......@@ -25,6 +25,15 @@
],
},
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
}
},
{
'target_name': 'print_preview_utils',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'data/compiled_resources2.gyp:size',
'data/compiled_resources2.gyp:coordinate2d'
],
'includes': ['../../../../third_party/closure_compiler/compile_js2.gypi'],
},
],
}
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'destination',
'dependencies': [
'../compiled_resources2.gyp:print_preview_utils',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:load_time_data',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'document_info',
'dependencies': [
'margins',
'size',
'coordinate2d',
'printable_area',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
'<(DEPTH)/ui/webui/resources/js/cr/compiled_resources2.gyp:event_target',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'margins',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'printable_area',
'dependencies': [
'size',
'coordinate2d',
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'size',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
{
'target_name': 'coordinate2d',
'dependencies': [
'<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr',
],
'includes': ['../../../../../third_party/closure_compiler/compile_js2.gypi'],
},
]
}
......@@ -2,6 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
cr.exportPath('print_preview.ticket_items');
/**
* Enumeration of the orientations of margins.
* @enum {string}
*/
print_preview.ticket_items.CustomMarginsOrientation = {
TOP: 'top',
RIGHT: 'right',
BOTTOM: 'bottom',
LEFT: 'left'
};
cr.define('print_preview', function() {
'use strict';
......
......@@ -2,19 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
cr.exportPath('print_preview.ticket_items');
/**
* Enumeration of the orientations of margins.
* @enum {string}
*/
print_preview.ticket_items.CustomMarginsOrientation = {
TOP: 'top',
RIGHT: 'right',
BOTTOM: 'bottom',
LEFT: 'left'
};
cr.define('print_preview.ticket_items', function() {
'use strict';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment