aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 1 | /* |
bburg@apple.com | 7a3efcb | 2015-09-18 17:16:24 +0000 | [diff] [blame] | 2 | * Copyright (C) 2007, 2015 Apple Inc. All rights reserved. |
yurys@chromium.org | 19aebed | 2011-04-04 09:38:02 +0000 | [diff] [blame] | 3 | * Copyright (C) 2011 Google Inc. All rights reserved. |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions |
| 7 | * are met: |
| 8 | * 1. Redistributions of source code must retain the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer. |
| 10 | * 2. Redistributions in binary form must reproduce the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer in the |
| 12 | * documentation and/or other materials provided with the distribution. |
| 13 | * |
mjs@apple.com | 9204733 | 2014-03-15 04:08:27 +0000 | [diff] [blame] | 14 | * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 15 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 16 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
mjs@apple.com | 9204733 | 2014-03-15 04:08:27 +0000 | [diff] [blame] | 17 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 18 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 19 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 20 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 21 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 22 | * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
commit-queue@webkit.org | f188ae9 | 2013-11-01 01:07:29 +0000 | [diff] [blame] | 24 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 25 | */ |
| 26 | |
commit-queue@webkit.org | 35dd301 | 2016-08-15 20:55:16 +0000 | [diff] [blame] | 27 | #pragma once |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 28 | |
barraclough@apple.com | d218c2d | 2010-08-10 00:38:14 +0000 | [diff] [blame] | 29 | #include <wtf/Forward.h> |
timothy@apple.com | f454001 | 2008-10-24 18:49:39 +0000 | [diff] [blame] | 30 | |
bburg@apple.com | 3ced776 | 2015-09-04 20:00:22 +0000 | [diff] [blame] | 31 | namespace Inspector { |
| 32 | class FrontendChannel; |
| 33 | } |
| 34 | |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 35 | namespace WebCore { |
| 36 | |
simon.fraser@apple.com | 159ad60 | 2014-08-22 19:07:17 +0000 | [diff] [blame] | 37 | class FloatRect; |
joepeck@webkit.org | 9ef9acc | 2012-03-06 19:33:07 +0000 | [diff] [blame] | 38 | class Frame; |
simon.fraser@apple.com | 159ad60 | 2014-08-22 19:07:17 +0000 | [diff] [blame] | 39 | class InspectorController; |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 40 | class Page; |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 41 | |
commit-queue@webkit.org | f188ae9 | 2013-11-01 01:07:29 +0000 | [diff] [blame] | 42 | class InspectorClient { |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 43 | public: |
pfeldman@chromium.org | 9db3397 | 2010-10-18 17:08:57 +0000 | [diff] [blame] | 44 | virtual ~InspectorClient() { } |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 45 | |
bburg@apple.com | f92518b | 2015-09-12 17:44:40 +0000 | [diff] [blame] | 46 | virtual void inspectedPageDestroyed() = 0; |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 47 | |
bburg@apple.com | f92518b | 2015-09-12 17:44:40 +0000 | [diff] [blame] | 48 | virtual Inspector::FrontendChannel* openLocalFrontend(InspectorController*) = 0; |
pfeldman@chromium.org | 4911f05 | 2011-11-22 14:11:46 +0000 | [diff] [blame] | 49 | virtual void bringFrontendToFront() = 0; |
joepeck@webkit.org | 9ef9acc | 2012-03-06 19:33:07 +0000 | [diff] [blame] | 50 | virtual void didResizeMainFrame(Frame*) { } |
timothy@apple.com | 9ea832b | 2008-08-13 18:10:36 +0000 | [diff] [blame] | 51 | |
pfeldman@chromium.org | b0781ec | 2011-08-03 08:28:40 +0000 | [diff] [blame] | 52 | virtual void highlight() = 0; |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 53 | virtual void hideHighlight() = 0; |
| 54 | |
joepeck@webkit.org | d82c5dc | 2014-03-25 21:52:20 +0000 | [diff] [blame] | 55 | virtual void showInspectorIndication() { } |
| 56 | virtual void hideInspectorIndication() { } |
joepeck@webkit.org | d2ecf37 | 2013-12-04 18:20:37 +0000 | [diff] [blame] | 57 | |
simon.fraser@apple.com | 159ad60 | 2014-08-22 19:07:17 +0000 | [diff] [blame] | 58 | virtual bool overridesShowPaintRects() const { return false; } |
commit-queue@webkit.org | f075caf | 2012-11-27 18:52:30 +0000 | [diff] [blame] | 59 | virtual void setShowPaintRects(bool) { } |
simon.fraser@apple.com | 159ad60 | 2014-08-22 19:07:17 +0000 | [diff] [blame] | 60 | virtual void showPaintRect(const FloatRect&) { } |
commit-queue@webkit.org | 5d05e88 | 2013-10-28 22:08:51 +0000 | [diff] [blame] | 61 | virtual void didSetSearchingForNode(bool) { } |
joepeck@webkit.org | 7b097f1 | 2016-04-12 19:35:22 +0000 | [diff] [blame] | 62 | virtual void elementSelectionChanged(bool) { } |
commit-queue@webkit.org | 5d05e88 | 2013-10-28 22:08:51 +0000 | [diff] [blame] | 63 | |
bburg@apple.com | 73fb249 | 2016-10-27 00:17:52 +0000 | [diff] [blame] | 64 | WEBCORE_EXPORT static void doDispatchMessageOnFrontendPage(Page* frontendPage, const String& message); |
aroben | dfc5666 | 2007-06-21 01:37:24 +0000 | [diff] [blame] | 65 | }; |
| 66 | |
| 67 | } // namespace WebCore |