OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) | 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) |
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. |
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #ifndef EmptyClients_h | 29 #ifndef EmptyClients_h |
30 #define EmptyClients_h | 30 #define EmptyClients_h |
31 | 31 |
32 #include "DeviceMotionClient.h" | |
33 #include "DeviceOrientationClient.h" | |
34 #include "InspectorClient.h" | 32 #include "InspectorClient.h" |
| 33 #include "core/dom/DeviceOrientationClient.h" |
35 #include "core/loader/FrameLoaderClient.h" | 34 #include "core/loader/FrameLoaderClient.h" |
36 #include "core/page/ChromeClient.h" | 35 #include "core/page/ChromeClient.h" |
37 #include "core/page/ContextMenuClient.h" | 36 #include "core/page/ContextMenuClient.h" |
38 #include "core/page/DragClient.h" | 37 #include "core/page/DragClient.h" |
39 #include "core/page/EditorClient.h" | 38 #include "core/page/EditorClient.h" |
40 #include "core/page/FocusDirection.h" | 39 #include "core/page/FocusDirection.h" |
41 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
42 #include "core/platform/graphics/FloatRect.h" | 41 #include "core/platform/graphics/FloatRect.h" |
43 #include "core/platform/network/ResourceError.h" | 42 #include "core/platform/network/ResourceError.h" |
44 #include "core/platform/text/TextCheckerClient.h" | 43 #include "core/platform/text/TextCheckerClient.h" |
| 44 #include "modules/device_orientation/DeviceMotionClient.h" |
45 | 45 |
46 #include <v8.h> | 46 #include <v8.h> |
47 | 47 |
48 /* | 48 /* |
49 This file holds empty Client stubs for use by WebCore. | 49 This file holds empty Client stubs for use by WebCore. |
50 Viewless element needs to create a dummy Page->Frame->FrameView tree for use in
parsing or executing JavaScript. | 50 Viewless element needs to create a dummy Page->Frame->FrameView tree for use in
parsing or executing JavaScript. |
51 This tree depends heavily on Clients (usually provided by WebKit classes). | 51 This tree depends heavily on Clients (usually provided by WebKit classes). |
52 | 52 |
53 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, | 53 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, |
54 since Images are not tied to a page). | 54 since Images are not tied to a page). |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 virtual void setController(DeviceOrientationController*) { } | 478 virtual void setController(DeviceOrientationController*) { } |
479 virtual DeviceOrientationData* lastOrientation() const { return 0; } | 479 virtual DeviceOrientationData* lastOrientation() const { return 0; } |
480 virtual void deviceOrientationControllerDestroyed() { } | 480 virtual void deviceOrientationControllerDestroyed() { } |
481 }; | 481 }; |
482 | 482 |
483 void fillWithEmptyClients(Page::PageClients&); | 483 void fillWithEmptyClients(Page::PageClients&); |
484 | 484 |
485 } | 485 } |
486 | 486 |
487 #endif // EmptyClients_h | 487 #endif // EmptyClients_h |
OLD | NEW |