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 21 matching lines...) Expand all Loading... |
32 #include "core/dom/DeviceOrientationClient.h" | 32 #include "core/dom/DeviceOrientationClient.h" |
33 #include "core/history/BackForwardClient.h" | 33 #include "core/history/BackForwardClient.h" |
34 #include "core/inspector/InspectorClient.h" | 34 #include "core/inspector/InspectorClient.h" |
35 #include "core/loader/FrameLoaderClient.h" | 35 #include "core/loader/FrameLoaderClient.h" |
36 #include "core/page/ChromeClient.h" | 36 #include "core/page/ChromeClient.h" |
37 #include "core/page/ContextMenuClient.h" | 37 #include "core/page/ContextMenuClient.h" |
38 #include "core/page/DragClient.h" | 38 #include "core/page/DragClient.h" |
39 #include "core/page/EditorClient.h" | 39 #include "core/page/EditorClient.h" |
40 #include "core/page/FocusDirection.h" | 40 #include "core/page/FocusDirection.h" |
41 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
| 42 #include "core/platform/DragImage.h" |
42 #include "core/platform/graphics/FloatRect.h" | 43 #include "core/platform/graphics/FloatRect.h" |
43 #include "core/platform/network/ResourceError.h" | 44 #include "core/platform/network/ResourceError.h" |
44 #include "core/platform/text/TextCheckerClient.h" | 45 #include "core/platform/text/TextCheckerClient.h" |
45 #include "modules/device_orientation/DeviceMotionClient.h" | 46 #include "modules/device_orientation/DeviceMotionClient.h" |
| 47 #include "public/platform/WebScreenInfo.h" |
| 48 #include "wtf/Forward.h" |
46 | 49 |
47 #include "public/platform/WebScreenInfo.h" | |
48 #include <v8.h> | 50 #include <v8.h> |
49 | 51 |
50 /* | 52 /* |
51 This file holds empty Client stubs for use by WebCore. | 53 This file holds empty Client stubs for use by WebCore. |
52 Viewless element needs to create a dummy Page->Frame->FrameView tree for use in
parsing or executing JavaScript. | 54 Viewless element needs to create a dummy Page->Frame->FrameView tree for use in
parsing or executing JavaScript. |
53 This tree depends heavily on Clients (usually provided by WebKit classes). | 55 This tree depends heavily on Clients (usually provided by WebKit classes). |
54 | 56 |
55 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, | 57 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, |
56 since Images are not tied to a page). | 58 since Images are not tied to a page). |
57 See http://bugs.webkit.org/show_bug.cgi?id=5971 for the original discussion abo
ut this file. | 59 See http://bugs.webkit.org/show_bug.cgi?id=5971 for the original discussion abo
ut this file. |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 virtual ~EmptyContextMenuClient() { } | 355 virtual ~EmptyContextMenuClient() { } |
354 virtual void showContextMenu(const ContextMenu*) OVERRIDE { } | 356 virtual void showContextMenu(const ContextMenu*) OVERRIDE { } |
355 }; | 357 }; |
356 | 358 |
357 class EmptyDragClient : public DragClient { | 359 class EmptyDragClient : public DragClient { |
358 WTF_MAKE_NONCOPYABLE(EmptyDragClient); WTF_MAKE_FAST_ALLOCATED; | 360 WTF_MAKE_NONCOPYABLE(EmptyDragClient); WTF_MAKE_FAST_ALLOCATED; |
359 public: | 361 public: |
360 EmptyDragClient() { } | 362 EmptyDragClient() { } |
361 virtual ~EmptyDragClient() {} | 363 virtual ~EmptyDragClient() {} |
362 virtual DragDestinationAction actionMaskForDrag(DragData*) OVERRIDE { return
DragDestinationActionNone; } | 364 virtual DragDestinationAction actionMaskForDrag(DragData*) OVERRIDE { return
DragDestinationActionNone; } |
363 virtual void startDrag(DragImageRef, const IntPoint&, const IntPoint&, Clipb
oard*, Frame*, bool) OVERRIDE { } | 365 virtual void startDrag(DragImage*, const IntPoint&, const IntPoint&, Clipboa
rd*, Frame*, bool) OVERRIDE { } |
364 }; | 366 }; |
365 | 367 |
366 class EmptyInspectorClient : public InspectorClient { | 368 class EmptyInspectorClient : public InspectorClient { |
367 WTF_MAKE_NONCOPYABLE(EmptyInspectorClient); WTF_MAKE_FAST_ALLOCATED; | 369 WTF_MAKE_NONCOPYABLE(EmptyInspectorClient); WTF_MAKE_FAST_ALLOCATED; |
368 public: | 370 public: |
369 EmptyInspectorClient() { } | 371 EmptyInspectorClient() { } |
370 virtual ~EmptyInspectorClient() { } | 372 virtual ~EmptyInspectorClient() { } |
371 | 373 |
372 virtual void highlight() OVERRIDE { } | 374 virtual void highlight() OVERRIDE { } |
373 virtual void hideHighlight() OVERRIDE { } | 375 virtual void hideHighlight() OVERRIDE { } |
(...skipping 28 matching lines...) Expand all Loading... |
402 virtual int forwardListCount() OVERRIDE { return 0; } | 404 virtual int forwardListCount() OVERRIDE { return 0; } |
403 virtual bool isActive() OVERRIDE { return false; } | 405 virtual bool isActive() OVERRIDE { return false; } |
404 virtual void close() OVERRIDE { } | 406 virtual void close() OVERRIDE { } |
405 }; | 407 }; |
406 | 408 |
407 void fillWithEmptyClients(Page::PageClients&); | 409 void fillWithEmptyClients(Page::PageClients&); |
408 | 410 |
409 } | 411 } |
410 | 412 |
411 #endif // EmptyClients_h | 413 #endif // EmptyClients_h |
OLD | NEW |