OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 2733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2744 return result.ToString(); | 2744 return result.ToString(); |
2745 } | 2745 } |
2746 | 2746 |
2747 bool Internals::cursorUpdatePending() const { | 2747 bool Internals::cursorUpdatePending() const { |
2748 if (!GetFrame()) | 2748 if (!GetFrame()) |
2749 return false; | 2749 return false; |
2750 | 2750 |
2751 return GetFrame()->GetEventHandler().CursorUpdatePending(); | 2751 return GetFrame()->GetEventHandler().CursorUpdatePending(); |
2752 } | 2752 } |
2753 | 2753 |
| 2754 bool Internals::fakeMouseMovePending() const { |
| 2755 if (!GetFrame()) |
| 2756 return false; |
| 2757 |
| 2758 return GetFrame()->GetEventHandler().FakeMouseMovePending(); |
| 2759 } |
| 2760 |
2754 DOMArrayBuffer* Internals::serializeObject( | 2761 DOMArrayBuffer* Internals::serializeObject( |
2755 PassRefPtr<SerializedScriptValue> value) const { | 2762 PassRefPtr<SerializedScriptValue> value) const { |
2756 StringView view = value->GetWireData(); | 2763 StringView view = value->GetWireData(); |
2757 DCHECK(view.Is8Bit()); | 2764 DCHECK(view.Is8Bit()); |
2758 DOMArrayBuffer* buffer = | 2765 DOMArrayBuffer* buffer = |
2759 DOMArrayBuffer::CreateUninitializedOrNull(view.length(), sizeof(LChar)); | 2766 DOMArrayBuffer::CreateUninitializedOrNull(view.length(), sizeof(LChar)); |
2760 if (buffer) | 2767 if (buffer) |
2761 memcpy(buffer->Data(), view.Characters8(), view.length()); | 2768 memcpy(buffer->Data(), view.Characters8(), view.length()); |
2762 return buffer; | 2769 return buffer; |
2763 } | 2770 } |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3391 | 3398 |
3392 void Internals::crash() { | 3399 void Internals::crash() { |
3393 CHECK(false) << "Intentional crash"; | 3400 CHECK(false) << "Intentional crash"; |
3394 } | 3401 } |
3395 | 3402 |
3396 void Internals::setIsLowEndDevice(bool is_low_end_device) { | 3403 void Internals::setIsLowEndDevice(bool is_low_end_device) { |
3397 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); | 3404 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); |
3398 } | 3405 } |
3399 | 3406 |
3400 } // namespace blink | 3407 } // namespace blink |
OLD | NEW |