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

Side by Side Diff: Source/devtools/front_end/devtools.html

Issue 1157733004: [DevTools] Cleanup frontend-in-iframe support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/devtools.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!--
2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 -->
6 <!doctype html>
7 <html>
8 <head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8">
10 <meta http-equiv="Content-Security-Policy" content="object-src 'none'; scrip t-src 'self' 'unsafe-eval' 'unsafe-inline' https://chrome-devtools-frontend.apps pot.com">
11 <style>
12 html {
13 height: 100%;
14 overflow: hidden;
15 }
16 .fill {
17 position: absolute;
18 width: 100%;
19 height: 100%;
20 overflow: hidden;
21 border: 0;
22 margin: 0;
23 }
24 </style>
25 <script type="text/javascript" src="devtools.js"></script>
26 </head>
27 <body class="fill undocked" id="-blink-dev-tools">
28 <script>
29 (function() {
30 var _queryParamsObject = { __proto__: null };
31
32 (function parseQueryParameters()
33 {
34 var queryParams = location.search;
35 if (!queryParams)
36 return;
37 var params = queryParams.substring(1).split("&");
38 for (var i = 0; i < params.length; ++i) {
39 var pair = params[i].split("=");
40 var name = pair.shift();
41 _queryParamsObject[name] = pair.join("=");
42 }
43 })();
44
45 function constructQueryParams(banned)
46 {
47 var params = [];
48 for (var key in _queryParamsObject) {
49 if (!key || banned.indexOf(key) !== -1)
50 continue;
51 params.push(key + "=" + _queryParamsObject[key]);
52 }
53 return params.length ? "?" + params.join("&") : "";
54 }
55
56 var remoteFrontendUrl = _queryParamsObject["remoteFrontendUrl"];
57 var src = remoteFrontendUrl
58 ? decodeURIComponent(remoteFrontendUrl) + constructQueryParams(["remoteF rontendUrl"])
59 : "inspector.html" + window.location.search;
60 document.write("<iframe id='inspector-app-iframe' class='fill' src='" + src + "'></iframe>");
61 })();
62 </script>
63 </body>
64 </html>
OLDNEW
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/devtools.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698