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

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

Issue 2723663002: Refactor DocumentMarkerController (Closed)
Patch Set: Created 3 years, 9 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 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 range->startPosition(), range->endPosition(), underlineColor, thick, 1087 range->startPosition(), range->endPosition(), underlineColor, thick,
1088 backgroundColor); 1088 backgroundColor);
1089 } 1089 }
1090 } 1090 }
1091 1091
1092 void Internals::setMarkersActive(Node* node, 1092 void Internals::setMarkersActive(Node* node,
1093 unsigned startOffset, 1093 unsigned startOffset,
1094 unsigned endOffset, 1094 unsigned endOffset,
1095 bool active) { 1095 bool active) {
1096 DCHECK(node); 1096 DCHECK(node);
1097 node->document().markers().setMarkersActive(node, startOffset, endOffset, 1097 node->document().markers().setTextMatchMarkersActive(node, startOffset,
1098 active); 1098 endOffset, active);
1099 } 1099 }
1100 1100
1101 void Internals::setMarkedTextMatchesAreHighlighted(Document* document, 1101 void Internals::setMarkedTextMatchesAreHighlighted(Document* document,
1102 bool highlight) { 1102 bool highlight) {
1103 if (!document || !document->frame()) 1103 if (!document || !document->frame())
1104 return; 1104 return;
1105 1105
1106 document->frame()->editor().setMarkedTextMatchesAreHighlighted(highlight); 1106 document->frame()->editor().setMarkedTextMatchesAreHighlighted(highlight);
1107 } 1107 }
1108 1108
(...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
3176 3176
3177 void Internals::crash() { 3177 void Internals::crash() {
3178 CHECK(false) << "Intentional crash"; 3178 CHECK(false) << "Intentional crash";
3179 } 3179 }
3180 3180
3181 void Internals::setIsLowEndDevice(bool isLowEndDevice) { 3181 void Internals::setIsLowEndDevice(bool isLowEndDevice) {
3182 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); 3182 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice);
3183 } 3183 }
3184 3184
3185 } // namespace blink 3185 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698