~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebCore/inspector/front-end/InspectorFrontendHostStub.js

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-01-06 21:25:06 UTC
  • mfrom: (1.2.6 upstream) (4.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100106212506-gd0czn4zrwf1j19l
* New upstream release
- adds basic Content-Encoding support, thanks to soup
  (Closes: #529271)
- fixes over-advertising content types as supported by
  the media player (Closes: #559420)
* debian/control:
- updated libsoup build requirement (>= 2.28.2)
* debian/libwebkit-1.0-2.symbols:
- updated with new symbols
* debian/copyright:
- updated information since 1.1.17
* Imported patch from https://bugs.webkit.org/show_bug.cgi?id=30623
- I am shipping this patch because I believe it is correct, it is the
  way to go, it fixes a race, and it needs testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2009 Google Inc. All rights reserved.
 
3
 *
 
4
 * Redistribution and use in source and binary forms, with or without
 
5
 * modification, are permitted provided that the following conditions are
 
6
 * met:
 
7
 *
 
8
 *     * Redistributions of source code must retain the above copyright
 
9
 * notice, this list of conditions and the following disclaimer.
 
10
 *     * Redistributions in binary form must reproduce the above
 
11
 * copyright notice, this list of conditions and the following disclaimer
 
12
 * in the documentation and/or other materials provided with the
 
13
 * distribution.
 
14
 *     * Neither the name of Google Inc. nor the names of its
 
15
 * contributors may be used to endorse or promote products derived from
 
16
 * this software without specific prior written permission.
 
17
 *
 
18
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 
19
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 
20
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
21
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 
22
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 
23
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 
24
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 
25
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 
26
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
27
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 
28
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
29
 */
 
30
 
 
31
if (!window.InspectorFrontendHost) {
 
32
 
 
33
WebInspector.InspectorFrontendHostStub = function()
 
34
{
 
35
    this._attachedWindowHeight = 0;
 
36
}
 
37
 
 
38
WebInspector.InspectorFrontendHostStub.prototype = {
 
39
    platform: function()
 
40
    {
 
41
        return "mac-leopard";
 
42
    },
 
43
 
 
44
    port: function()
 
45
    {
 
46
        return "unknown";
 
47
    },
 
48
 
 
49
    closeWindow: function()
 
50
    {
 
51
        this._windowVisible = false;
 
52
    },
 
53
 
 
54
    attach: function()
 
55
    {
 
56
    },
 
57
 
 
58
    detach: function()
 
59
    {
 
60
    },
 
61
 
 
62
    search: function(sourceRow, query)
 
63
    {
 
64
    },
 
65
 
 
66
    setAttachedWindowHeight: function(height)
 
67
    {
 
68
    },
 
69
 
 
70
    moveWindowBy: function(x, y)
 
71
    {
 
72
    },
 
73
 
 
74
    addResourceSourceToFrame: function(identifier, element)
 
75
    {
 
76
    },
 
77
 
 
78
    addSourceToFrame: function(mimeType, source, element)
 
79
    {
 
80
        return false;
 
81
    },
 
82
 
 
83
    loaded: function()
 
84
    {
 
85
    },
 
86
 
 
87
    localizedStringsURL: function()
 
88
    {
 
89
        return undefined;
 
90
    },
 
91
 
 
92
    hiddenPanels: function()
 
93
    {
 
94
        return "";
 
95
    },
 
96
 
 
97
    windowUnloading: function()
 
98
    {
 
99
    }
 
100
}
 
101
 
 
102
InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub();
 
103
 
 
104
}