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

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

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make this Android CL independent from the ChromeOS CL. Created 5 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
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 #include "components/autofill/content/renderer/form_autofill_util.h" 5 #include "components/autofill/content/renderer/form_autofill_util.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 tag_is_allowed = true; 1311 tag_is_allowed = true;
1312 break; 1312 break;
1313 } 1313 }
1314 } 1314 }
1315 if (!tag_is_allowed) 1315 if (!tag_is_allowed)
1316 return false; 1316 return false;
1317 } 1317 }
1318 return true; 1318 return true;
1319 } 1319 }
1320 1320
1321 gfx::RectF GetScaledBoundingBox(float scale, WebFormControlElement* element) { 1321 gfx::RectF GetScaledBoundingBox(float scale, WebElement* element) {
1322 gfx::Rect bounding_box(element->boundsInViewportSpace()); 1322 gfx::Rect bounding_box(element->boundsInViewportSpace());
1323 return gfx::RectF(bounding_box.x() * scale, 1323 return gfx::RectF(bounding_box.x() * scale,
1324 bounding_box.y() * scale, 1324 bounding_box.y() * scale,
1325 bounding_box.width() * scale, 1325 bounding_box.width() * scale,
1326 bounding_box.height() * scale); 1326 bounding_box.height() * scale);
1327 } 1327 }
1328 1328
1329 } // namespace autofill 1329 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698