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 25 matching lines...) Expand all Loading... |
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/DragImage.h" |
43 #include "core/platform/graphics/FloatRect.h" | 43 #include "core/platform/graphics/FloatRect.h" |
44 #include "core/platform/network/ResourceError.h" | 44 #include "core/platform/network/ResourceError.h" |
45 #include "core/platform/text/TextCheckerClient.h" | 45 #include "core/platform/text/TextCheckerClient.h" |
46 #include "modules/device_orientation/DeviceMotionClient.h" | |
47 #include "public/platform/WebScreenInfo.h" | 46 #include "public/platform/WebScreenInfo.h" |
48 #include "wtf/Forward.h" | 47 #include "wtf/Forward.h" |
49 | 48 |
50 #include <v8.h> | 49 #include <v8.h> |
51 | 50 |
52 /* | 51 /* |
53 This file holds empty Client stubs for use by WebCore. | 52 This file holds empty Client stubs for use by WebCore. |
54 Viewless element needs to create a dummy Page->Frame->FrameView tree for use in
parsing or executing JavaScript. | 53 Viewless element needs to create a dummy Page->Frame->FrameView tree for use in
parsing or executing JavaScript. |
55 This tree depends heavily on Clients (usually provided by WebKit classes). | 54 This tree depends heavily on Clients (usually provided by WebKit classes). |
56 | 55 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 virtual void highlight() OVERRIDE { } | 365 virtual void highlight() OVERRIDE { } |
367 virtual void hideHighlight() OVERRIDE { } | 366 virtual void hideHighlight() OVERRIDE { } |
368 }; | 367 }; |
369 | 368 |
370 class EmptyDeviceClient : public DeviceClient { | 369 class EmptyDeviceClient : public DeviceClient { |
371 public: | 370 public: |
372 virtual void startUpdating() OVERRIDE { } | 371 virtual void startUpdating() OVERRIDE { } |
373 virtual void stopUpdating() OVERRIDE { } | 372 virtual void stopUpdating() OVERRIDE { } |
374 }; | 373 }; |
375 | 374 |
376 class EmptyDeviceMotionClient : public DeviceMotionClient { | |
377 public: | |
378 virtual void setController(DeviceMotionController*) OVERRIDE { } | |
379 virtual DeviceMotionData* lastMotion() const OVERRIDE { return 0; } | |
380 virtual void deviceMotionControllerDestroyed() OVERRIDE { } | |
381 }; | |
382 | |
383 class EmptyDeviceOrientationClient : public DeviceOrientationClient { | 375 class EmptyDeviceOrientationClient : public DeviceOrientationClient { |
384 public: | 376 public: |
385 virtual void setController(DeviceOrientationController*) OVERRIDE { } | 377 virtual void setController(DeviceOrientationController*) OVERRIDE { } |
386 virtual DeviceOrientationData* lastOrientation() const OVERRIDE { return 0;
} | 378 virtual DeviceOrientationData* lastOrientation() const OVERRIDE { return 0;
} |
387 virtual void deviceOrientationControllerDestroyed() OVERRIDE { } | 379 virtual void deviceOrientationControllerDestroyed() OVERRIDE { } |
388 }; | 380 }; |
389 | 381 |
390 class EmptyBackForwardClient : public BackForwardClient { | 382 class EmptyBackForwardClient : public BackForwardClient { |
391 public: | 383 public: |
392 virtual void addItem(PassRefPtr<HistoryItem>) OVERRIDE { } | 384 virtual void addItem(PassRefPtr<HistoryItem>) OVERRIDE { } |
393 virtual void goToItem(HistoryItem*) OVERRIDE { } | 385 virtual void goToItem(HistoryItem*) OVERRIDE { } |
394 virtual HistoryItem* itemAtIndex(int) OVERRIDE { return 0; } | 386 virtual HistoryItem* itemAtIndex(int) OVERRIDE { return 0; } |
395 virtual int backListCount() OVERRIDE { return 0; } | 387 virtual int backListCount() OVERRIDE { return 0; } |
396 virtual int forwardListCount() OVERRIDE { return 0; } | 388 virtual int forwardListCount() OVERRIDE { return 0; } |
397 virtual bool isActive() OVERRIDE { return false; } | 389 virtual bool isActive() OVERRIDE { return false; } |
398 virtual void close() OVERRIDE { } | 390 virtual void close() OVERRIDE { } |
399 }; | 391 }; |
400 | 392 |
401 void fillWithEmptyClients(Page::PageClients&); | 393 void fillWithEmptyClients(Page::PageClients&); |
402 | 394 |
403 } | 395 } |
404 | 396 |
405 #endif // EmptyClients_h | 397 #endif // EmptyClients_h |
OLD | NEW |