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

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

Issue 151503006: Re-land r248110 with ASAN error fixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Punctuation Created 6 years, 10 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 // 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"
11 #include "ui/gfx/rect.h"
11 12
12 namespace blink { 13 namespace blink {
13 class WebDocument; 14 class WebDocument;
14 class WebElement; 15 class WebElement;
15 class WebFormElement; 16 class WebFormElement;
16 class WebFormControlElement; 17 class WebFormControlElement;
17 class WebFrame; 18 class WebFrame;
18 class WebInputElement; 19 class WebInputElement;
19 class WebNode; 20 class WebNode;
20 } 21 }
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // <body> 161 // <body>
161 // <body/> 162 // <body/>
162 // <html/> 163 // <html/>
163 // Meta, script and title tags don't influence the emptiness of a webpage. 164 // Meta, script and title tags don't influence the emptiness of a webpage.
164 bool IsWebpageEmpty(const blink::WebFrame* frame); 165 bool IsWebpageEmpty(const blink::WebFrame* frame);
165 166
166 // This function checks whether the children of |element| 167 // This function checks whether the children of |element|
167 // are of the type <script>, <meta>, or <title>. 168 // are of the type <script>, <meta>, or <title>.
168 bool IsWebElementEmpty(const blink::WebElement& element); 169 bool IsWebElementEmpty(const blink::WebElement& element);
169 170
171 // Return a gfx::RectF that is the bounding box for |element| scaled by |scale|.
172 gfx::RectF GetScaledBoundingBox(float scale, blink::WebInputElement* element);
173
170 } // namespace autofill 174 } // namespace autofill
171 175
172 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ 176 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/autofill_agent.cc ('k') | components/autofill/content/renderer/form_autofill_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698