Chromium Code Reviews| 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" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 // Meta, script and title tags don't influence the emptiness of a webpage. | 169 // Meta, script and title tags don't influence the emptiness of a webpage. |
| 170 bool IsWebpageEmpty(const blink::WebFrame* frame); | 170 bool IsWebpageEmpty(const blink::WebFrame* frame); |
| 171 | 171 |
| 172 // This function checks whether the children of |element| | 172 // This function checks whether the children of |element| |
| 173 // are of the type <script>, <meta>, or <title>. | 173 // are of the type <script>, <meta>, or <title>. |
| 174 bool IsWebElementEmpty(const blink::WebElement& element); | 174 bool IsWebElementEmpty(const blink::WebElement& element); |
| 175 | 175 |
| 176 // Return a gfx::RectF that is the bounding box for |element| scaled by |scale|. | 176 // Return a gfx::RectF that is the bounding box for |element| scaled by |scale|. |
| 177 gfx::RectF GetScaledBoundingBox(float scale, blink::WebElement* element); | 177 gfx::RectF GetScaledBoundingBox(float scale, blink::WebElement* element); |
| 178 | 178 |
| 179 // Previews the |input_element| with supplied |suggestion| and |user_input|. | |
|
vabr (Chromium)
2015/07/09 08:27:49
nit: This comment is hard to understand. It is not
Pritam Nikam
2015/07/10 16:58:45
Done.
| |
| 180 // |input_element| should not be null. | |
| 181 // Not using input_element->value() and input_element->suggestedValue() | |
| 182 // directly because password manager sometimes does not set them. | |
|
vabr (Chromium)
2015/07/09 06:17:51
This looks very suspiciously. What does "sometimes
vabr (Chromium)
2015/07/09 08:27:49
This has been resolved in http://crbug.com/507714,
Pritam Nikam
2015/07/10 16:58:45
Acknowledged.
| |
| 183 // http://crbug.com/507714 | |
| 184 void PreviewSuggestion(const base::string16& suggestion, | |
| 185 const base::string16& user_input, | |
| 186 blink::WebFormControlElement* input_element); | |
| 187 | |
| 179 } // namespace autofill | 188 } // namespace autofill |
| 180 | 189 |
| 181 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ | 190 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ |
| OLD | NEW |