| 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 2714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2725 return result.ToString(); | 2725 return result.ToString(); |
| 2726 } | 2726 } |
| 2727 | 2727 |
| 2728 bool Internals::cursorUpdatePending() const { | 2728 bool Internals::cursorUpdatePending() const { |
| 2729 if (!GetFrame()) | 2729 if (!GetFrame()) |
| 2730 return false; | 2730 return false; |
| 2731 | 2731 |
| 2732 return GetFrame()->GetEventHandler().CursorUpdatePending(); | 2732 return GetFrame()->GetEventHandler().CursorUpdatePending(); |
| 2733 } | 2733 } |
| 2734 | 2734 |
| 2735 bool Internals::fakeMouseMovePending() const { |
| 2736 if (!GetFrame()) |
| 2737 return false; |
| 2738 |
| 2739 return GetFrame()->GetEventHandler().FakeMouseMovePending(); |
| 2740 } |
| 2741 |
| 2735 DOMArrayBuffer* Internals::serializeObject( | 2742 DOMArrayBuffer* Internals::serializeObject( |
| 2736 PassRefPtr<SerializedScriptValue> value) const { | 2743 PassRefPtr<SerializedScriptValue> value) const { |
| 2737 StringView view = value->GetWireData(); | 2744 StringView view = value->GetWireData(); |
| 2738 DCHECK(view.Is8Bit()); | 2745 DCHECK(view.Is8Bit()); |
| 2739 DOMArrayBuffer* buffer = | 2746 DOMArrayBuffer* buffer = |
| 2740 DOMArrayBuffer::CreateUninitializedOrNull(view.length(), sizeof(LChar)); | 2747 DOMArrayBuffer::CreateUninitializedOrNull(view.length(), sizeof(LChar)); |
| 2741 if (buffer) | 2748 if (buffer) |
| 2742 memcpy(buffer->Data(), view.Characters8(), view.length()); | 2749 memcpy(buffer->Data(), view.Characters8(), view.length()); |
| 2743 return buffer; | 2750 return buffer; |
| 2744 } | 2751 } |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3403 | 3410 |
| 3404 void Internals::crash() { | 3411 void Internals::crash() { |
| 3405 CHECK(false) << "Intentional crash"; | 3412 CHECK(false) << "Intentional crash"; |
| 3406 } | 3413 } |
| 3407 | 3414 |
| 3408 void Internals::setIsLowEndDevice(bool is_low_end_device) { | 3415 void Internals::setIsLowEndDevice(bool is_low_end_device) { |
| 3409 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); | 3416 MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); |
| 3410 } | 3417 } |
| 3411 | 3418 |
| 3412 } // namespace blink | 3419 } // namespace blink |
| OLD | NEW |