Skip to content
Permalink
Browse files
[BlackBerry] Upstream BlackBerry specific Web Inspector resources
https://bugs.webkit.org/show_bug.cgi?id=78727

Patch by Konrad Piascik <kpiascik@rim.com> on 2012-02-15
Reviewed by Rob Buis.

* blackberry/WebCoreSupport/inspectorBB.html: Added.
* blackberry/WebCoreSupport/inspectorBB.js: Added.
():
(InspectorFrontendHost.copyText):

Canonical link: https://commits.webkit.org/95707@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Konrad Piascik authored and webkit-commit-queue committed Feb 16, 2012
1 parent 52e60ca commit 415b74e513833a3552b21af158ddbe5cfd5ba069
Showing with 112 additions and 0 deletions.
  1. +12 −0 Source/WebKit/ChangeLog
  2. +64 −0 Source/WebKit/blackberry/WebCoreSupport/inspectorBB.html
  3. +36 −0 Source/WebKit/blackberry/WebCoreSupport/inspectorBB.js
@@ -1,3 +1,15 @@
2012-02-15 Konrad Piascik <kpiascik@rim.com>

[BlackBerry] Upstream BlackBerry specific Web Inspector resources
https://bugs.webkit.org/show_bug.cgi?id=78727

Reviewed by Rob Buis.

* blackberry/WebCoreSupport/inspectorBB.html: Added.
* blackberry/WebCoreSupport/inspectorBB.js: Added.
():
(InspectorFrontendHost.copyText):

2012-02-15 Mike Fenton <mifenton@rim.com>

Initial upstreaming of EditorClientBlackBerry
@@ -0,0 +1,64 @@
<!--
Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
Copyright (C) 2011, 2012 Research In Motion Ltd. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="audits.css">
<link rel="stylesheet" type="text/css" href="dataGrid.css">
<link rel="stylesheet" type="text/css" href="goToLineDialog.css">
<link rel="stylesheet" type="text/css" href="heapProfiler.css">
<link rel="stylesheet" type="text/css" href="inspector.css">
<link rel="stylesheet" type="text/css" href="inspectorCommon.css">
<link rel="stylesheet" type="text/css" href="inspectorSyntaxHighlight.css">
<link rel="stylesheet" type="text/css" href="networkPanel.css">
<link rel="stylesheet" type="text/css" href="helpScreen.css">
<link rel="stylesheet" type="text/css" href="popover.css">
<link rel="stylesheet" type="text/css" href="textViewer.css">
<script type="text/javascript" src="javascript.js"></script>
</head>
<body class="detached">
<div id="toolbar">
<div class="toolbar-item close-left"><button id="close-button-left"></button></div>
<div id="toolbar-controls">
<div class="toolbar-item"><button id="toolbar-dropdown-arrow" class="toolbar-label">&raquo;</button></div>
<div class="toolbar-item hidden" id="search-results-matches"></div>
<div class="toolbar-item toolbar-search-item"><input id="search" type="search" incremental results="0"><div id="search-toolbar-label" class="toolbar-label"></div></div>
<div class="toolbar-item close-right"><button id="close-button-right"></button></div>
</div>
</div>
<div id="main">
<div id="main-panels" spellcheck="false"></div>
<div id="main-status-bar" class="status-bar"><div id="anchored-status-bar-items"><div id="counters"><div id="error-warning-count" class="hidden"></div></div></div></div>
</div>
<div id="drawer">
<div id="console-view"><div id="console-messages" class="monospace"><div id="console-prompt" spellcheck="false"><br></div></div></div>
<div id="drawer-status-bar" class="status-bar"><div id="other-drawer-status-bar-items"><button id="clear-console-status-bar-item" class="status-bar-item clear-status-bar-item"><div class="glyph"></div><div class="glyph shadow"></div></button><select id="console-context" class="status-bar-item"></select><div id="console-filter" class="scope-bar status-bar-item"></div></div></div>
</div>
</body>
</html>
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2012 Research In Motion Limited. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
var context = {};
(function () {
Preferences.ignoreWhitespace = false;
Preferences.samplingCPUProfiler = true;
Preferences.debuggerAlwaysEnabled = true;
Preferences.profilerAlwaysEnabled = true;
Preferences.canEditScriptSource = false;
Preferences.onlineDetectionEnabled = false;
Preferences.nativeInstrumentationEnabled = true;
// FIXME: Turn this to whatever the value of --enable-file-system for chrome.
Preferences.fileSystemEnabled = false;
Preferences.canClearCacheAndCookies = true;
Preferences.showCookiesTab = true;
})();
InspectorFrontendHost.copyText = function(tmp) {
var encoded = encodeURI(tmp);
var text = 'data:text/plain;charset=utf-8,' + encoded;
window.open(text, "_blank");
}

0 comments on commit 415b74e

Please sign in to comment.