Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2956023004: Add a flag to update hover effect when a layout is changed (Closed)
Patch Set: Remove pause in test Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698