OLD | NEW |
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 "third_party/WebKit/public/platform/WebVector.h" | 11 #include "third_party/WebKit/public/platform/WebVector.h" |
12 #include "third_party/WebKit/public/web/WebElementCollection.h" | 12 #include "third_party/WebKit/public/web/WebElementCollection.h" |
13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
14 | 14 |
15 class GURL; | 15 class GURL; |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 class WebDocument; | 18 class WebDocument; |
19 class WebElement; | 19 class WebElement; |
20 class WebFormElement; | 20 class WebFormElement; |
21 class WebFormControlElement; | 21 class WebFormControlElement; |
22 class WebFrame; | 22 class WebFrame; |
23 class WebInputElement; | 23 class WebInputElement; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // are of the type <script>, <meta>, or <title>. | 185 // are of the type <script>, <meta>, or <title>. |
186 bool IsWebElementEmpty(const blink::WebElement& element); | 186 bool IsWebElementEmpty(const blink::WebElement& element); |
187 | 187 |
188 // Return a gfx::RectF that is the bounding box for |element| scaled by |scale|. | 188 // Return a gfx::RectF that is the bounding box for |element| scaled by |scale|. |
189 gfx::RectF GetScaledBoundingBox(float scale, | 189 gfx::RectF GetScaledBoundingBox(float scale, |
190 blink::WebFormControlElement* element); | 190 blink::WebFormControlElement* element); |
191 | 191 |
192 } // namespace autofill | 192 } // namespace autofill |
193 | 193 |
194 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ | 194 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ |
OLD | NEW |