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

Side by Side Diff: chrome/browser/ui/autofill/popup_controller_common.cc

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/ui/autofill/popup_controller_common.h" 5 #include "chrome/browser/ui/autofill/popup_controller_common.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "ui/gfx/display.h" 12 #include "ui/gfx/display.h"
13 #include "ui/gfx/rect_conversions.h" 13 #include "ui/gfx/rect_conversions.h"
14 #include "ui/gfx/geometry/vector2d.h"
14 #include "ui/gfx/screen.h" 15 #include "ui/gfx/screen.h"
15 #include "ui/gfx/vector2d.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 PopupControllerCommon::PopupControllerCommon( 19 PopupControllerCommon::PopupControllerCommon(
20 const gfx::RectF& element_bounds, 20 const gfx::RectF& element_bounds,
21 const gfx::NativeView container_view, 21 const gfx::NativeView container_view,
22 content::WebContents* web_contents) 22 content::WebContents* web_contents)
23 : element_bounds_(element_bounds), 23 : element_bounds_(element_bounds),
24 container_view_(container_view), 24 container_view_(container_view),
25 web_contents_(web_contents), 25 web_contents_(web_contents),
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bottom_right_display, 152 bottom_right_display,
153 desired_height); 153 desired_height);
154 154
155 return gfx::Rect(popup_x_and_width.first, 155 return gfx::Rect(popup_x_and_width.first,
156 popup_y_and_height.first, 156 popup_y_and_height.first,
157 popup_x_and_width.second, 157 popup_x_and_width.second,
158 popup_y_and_height.second); 158 popup_y_and_height.second);
159 } 159 }
160 160
161 } // namespace autofill 161 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698