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

Side by Side Diff: components/autofill/content/renderer/form_autofill_util.h

Issue 1463723003: Return VisualViewport coords in boundsInViewportSpace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // <body> 223 // <body>
224 // <body/> 224 // <body/>
225 // <html/> 225 // <html/>
226 // Meta, script and title tags don't influence the emptiness of a webpage. 226 // Meta, script and title tags don't influence the emptiness of a webpage.
227 bool IsWebpageEmpty(const blink::WebFrame* frame); 227 bool IsWebpageEmpty(const blink::WebFrame* frame);
228 228
229 // This function checks whether the children of |element| 229 // This function checks whether the children of |element|
230 // are of the type <script>, <meta>, or <title>. 230 // are of the type <script>, <meta>, or <title>.
231 bool IsWebElementEmpty(const blink::WebElement& element); 231 bool IsWebElementEmpty(const blink::WebElement& element);
232 232
233 // Return a gfx::RectF that is the bounding box for |element| scaled by |scale|.
234 gfx::RectF GetScaledBoundingBox(float scale, blink::WebElement* element);
235
236 // Previews |suggestion| in |input_element| and highlights the suffix of 233 // Previews |suggestion| in |input_element| and highlights the suffix of
237 // |suggestion| not included in the |input_element| text. |input_element| must 234 // |suggestion| not included in the |input_element| text. |input_element| must
238 // not be null. |user_input| should be the text typed by the user into 235 // not be null. |user_input| should be the text typed by the user into
239 // |input_element|. Note that |user_input| cannot be easily derived from 236 // |input_element|. Note that |user_input| cannot be easily derived from
240 // |input_element| by calling value(), because of http://crbug.com/507714. 237 // |input_element| by calling value(), because of http://crbug.com/507714.
241 void PreviewSuggestion(const base::string16& suggestion, 238 void PreviewSuggestion(const base::string16& suggestion,
242 const base::string16& user_input, 239 const base::string16& user_input,
243 blink::WebFormControlElement* input_element); 240 blink::WebFormControlElement* input_element);
244 241
245 } // namespace form_util 242 } // namespace form_util
246 } // namespace autofill 243 } // namespace autofill
247 244
248 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ 245 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698