ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / components / webui_generator / resources / context.js
blob0bd28f1d5f0fa8d17c2524d2c0a9fe1a3d7c2f4c
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 (function(global) {
6 var has_cr = !!global.cr;
7 var cr_define_bckp = null;
8 if (has_cr && global.cr.define)
9 cr_define_bckp = global.cr.define;
10 if (!has_cr)
11 global.cr = {}
12 global.cr.define = function(_, define) {
13 global.wug = global.wug || {}
14 global.wug.Context = define().ScreenContext;
16 <include src="../../../chrome/browser/resources/chromeos/login/screen_context.js">
17 if (!has_cr)
18 delete global.cr;
19 if (cr_define_bckp)
20 global.cr.define = cr_define_bckp;
21 })(this);