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

Side by Side Diff: Source/core/testing/Internals.h

Issue 120443003: Add autofill preview support for Textarea (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update code as per review comments Created 6 years, 11 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
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void addTextMatchMarker(const Range*, bool isActive); 150 void addTextMatchMarker(const Range*, bool isActive);
151 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool, ExceptionState&); 151 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool, ExceptionState&);
152 152
153 void setScrollViewPosition(Document*, long x, long y, ExceptionState&); 153 void setScrollViewPosition(Document*, long x, long y, ExceptionState&);
154 void setPagination(Document* document, const String& mode, int gap, Exceptio nState& ec) { setPagination(document, mode, gap, 0, ec); } 154 void setPagination(Document* document, const String& mode, int gap, Exceptio nState& ec) { setPagination(document, mode, gap, 0, ec); }
155 void setPagination(Document*, const String& mode, int gap, int pageLength, E xceptionState&); 155 void setPagination(Document*, const String& mode, int gap, int pageLength, E xceptionState&);
156 String viewportAsText(Document*, float devicePixelRatio, int availableWidth, int availableHeight, ExceptionState&); 156 String viewportAsText(Document*, float devicePixelRatio, int availableWidth, int availableHeight, ExceptionState&);
157 157
158 bool wasLastChangeUserEdit(Element* textField, ExceptionState&); 158 bool wasLastChangeUserEdit(Element* textField, ExceptionState&);
159 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&); 159 bool elementShouldAutoComplete(Element* inputElement, ExceptionState&);
160 String suggestedValue(Element* inputElement, ExceptionState&); 160 String suggestedValue(Element*, ExceptionState&);
161 void setSuggestedValue(Element* inputElement, const String&, ExceptionState& ); 161 void setSuggestedValue(Element*, const String&, ExceptionState&);
162 void setEditingValue(Element* inputElement, const String&, ExceptionState&); 162 void setEditingValue(Element* inputElement, const String&, ExceptionState&);
163 void setAutofilled(Element*, bool enabled, ExceptionState&); 163 void setAutofilled(Element*, bool enabled, ExceptionState&);
164 void scrollElementToRect(Element*, long x, long y, long w, long h, Exception State&); 164 void scrollElementToRect(Element*, long x, long y, long w, long h, Exception State&);
165 165
166 void paintControlTints(Document*, ExceptionState&); 166 void paintControlTints(Document*, ExceptionState&);
167 167
168 PassRefPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocati on, int rangeLength, ExceptionState&); 168 PassRefPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocati on, int rangeLength, ExceptionState&);
169 unsigned locationFromRange(Element* scope, const Range*, ExceptionState&); 169 unsigned locationFromRange(Element* scope, const Range*, ExceptionState&);
170 unsigned lengthFromRange(Element* scope, const Range*, ExceptionState&); 170 unsigned lengthFromRange(Element* scope, const Range*, ExceptionState&);
171 String rangeAsText(const Range*, ExceptionState&); 171 String rangeAsText(const Range*, ExceptionState&);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 RefPtr<DOMWindow> m_frontendWindow; 316 RefPtr<DOMWindow> m_frontendWindow;
317 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; 317 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel;
318 RefPtr<InternalRuntimeFlags> m_runtimeFlags; 318 RefPtr<InternalRuntimeFlags> m_runtimeFlags;
319 RefPtr<ScrollingCoordinator> m_scrollingCoordinator; 319 RefPtr<ScrollingCoordinator> m_scrollingCoordinator;
320 RefPtr<InternalProfilers> m_profilers; 320 RefPtr<InternalProfilers> m_profilers;
321 }; 321 };
322 322
323 } // namespace WebCore 323 } // namespace WebCore
324 324
325 #endif 325 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698