~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2007 Apple Inc.  All rights reserved.
 
3
 * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia
 
4
 * Copyright (C) 2009-2010 ProFUSION embedded systems
 
5
 * Copyright (C) 2009-2012 Samsung Electronics
 
6
 *
 
7
 * Redistribution and use in source and binary forms, with or without
 
8
 * modification, are permitted provided that the following conditions
 
9
 * are met:
 
10
 *
 
11
 * 1.  Redistributions of source code must retain the above copyright
 
12
 *     notice, this list of conditions and the following disclaimer.
 
13
 * 2.  Redistributions in binary form must reproduce the above copyright
 
14
 *     notice, this list of conditions and the following disclaimer in the
 
15
 *     documentation and/or other materials provided with the distribution.
 
16
 * 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
 
17
 *     its contributors may be used to endorse or promote products derived
 
18
 *     from this software without specific prior written permission.
 
19
 *
 
20
 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
 
21
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 
22
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 
23
 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 
24
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 
25
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 
26
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 
27
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
28
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 
29
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
30
 */
 
31
 
 
32
#ifndef InspectorClientEfl_h
 
33
#define InspectorClientEfl_h
 
34
 
 
35
#if ENABLE(INSPECTOR)
 
36
 
 
37
#include "InspectorClient.h"
 
38
#include "InspectorFrontendChannel.h"
 
39
#include "InspectorFrontendClientLocal.h"
 
40
#include <Evas.h>
 
41
#include <wtf/Forward.h>
 
42
 
 
43
namespace WebCore {
 
44
class InspectorFrontendClientEfl;
 
45
class Page;
 
46
 
 
47
class InspectorClientEfl : public InspectorClient, public InspectorFrontendChannel {
 
48
public:
 
49
    explicit InspectorClientEfl(Evas_Object*);
 
50
    ~InspectorClientEfl();
 
51
 
 
52
    virtual void inspectorDestroyed();
 
53
 
 
54
    virtual InspectorFrontendChannel* openInspectorFrontend(InspectorController*);
 
55
    virtual void closeInspectorFrontend();
 
56
    virtual void bringFrontendToFront();
 
57
 
 
58
    virtual void highlight();
 
59
    virtual void hideHighlight();
 
60
 
 
61
    virtual bool sendMessageToFrontend(const String&);
 
62
 
 
63
    void releaseFrontendPage();
 
64
    String inspectorFilesPath();
 
65
 
 
66
private:
 
67
    Evas_Object* m_inspectedView;
 
68
    Evas_Object* m_inspectorView;
 
69
    InspectorFrontendClientEfl* m_frontendClient;
 
70
};
 
71
 
 
72
class InspectorFrontendClientEfl : public InspectorFrontendClientLocal {
 
73
public:
 
74
    InspectorFrontendClientEfl(Evas_Object*, Evas_Object*, InspectorClientEfl*);
 
75
    ~InspectorFrontendClientEfl();
 
76
 
 
77
    virtual String localizedStringsURL();
 
78
    virtual String hiddenPanels();
 
79
 
 
80
    virtual void bringToFront();
 
81
    virtual void closeWindow();
 
82
 
 
83
    virtual void inspectedURLChanged(const String&);
 
84
 
 
85
    virtual void attachWindow();
 
86
    virtual void detachWindow();
 
87
 
 
88
    virtual void setAttachedWindowHeight(unsigned);
 
89
 
 
90
    void disconnectInspectorClient() { m_inspectorClient = 0; }
 
91
    void destroyInspectorWindow(bool notifyInspectorController);
 
92
 
 
93
private:
 
94
    Evas_Object* m_inspectedView;
 
95
    Evas_Object* m_inspectorView;
 
96
    InspectorClientEfl* m_inspectorClient;
 
97
 
 
98
};
 
99
}
 
100
 
 
101
#endif
 
102
#endif // InspectorClientEfl_h