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

Side by Side Diff: mojo/spy/ui/dev_server.py

Issue 281623007: Add mojo web UI framework based on Nat's TVCM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed a few Created 6 years, 7 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
« no previous file with comments | « mojo/spy/ui/__init__.py ('k') | mojo/spy/ui/spy.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import optparse 5 import optparse
6 import tvcm 6 import tvcm
7 7
8 from telemetry.web_components import web_components_project 8 from ui import spy_project
9 9
10 10
11 def Main(port, args): 11 def Main(port, args):
12 parser = optparse.OptionParser() 12 parser = optparse.OptionParser()
13 _, args = parser.parse_args(args) 13 _, args = parser.parse_args(args)
14 14
15 project = web_components_project.WebComponentsProject() 15 project = spy_project.SpyProject()
16 server = tvcm.DevServer( 16 server = tvcm.DevServer(
17 port=port, project=project) 17 port=port, project=project)
18 18
19 def IsTestModuleResourcePartOfTelemetry(module_resource): 19 def IsTestModuleResourcePartOfSpy(module_resource):
20 return module_resource.absolute_path.startswith(project.telemetry_path) 20 return module_resource.absolute_path.startswith(project.spy_path)
21 21
22 server.test_module_resource_filter = IsTestModuleResourcePartOfTelemetry 22 server.test_module_resource_filter = IsTestModuleResourcePartOfSpy
23 return server.serve_forever() 23 return server.serve_forever()
OLDNEW
« no previous file with comments | « mojo/spy/ui/__init__.py ('k') | mojo/spy/ui/spy.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698