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

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

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/autofill_popup_controller_impl.h" 5 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/ui/autofill/autofill_popup_view.h" 12 #include "chrome/browser/ui/autofill/autofill_popup_view.h"
13 #include "components/autofill/core/browser/autofill_popup_delegate.h" 13 #include "components/autofill/core/browser/autofill_popup_delegate.h"
14 #include "content/public/browser/native_web_keyboard_event.h" 14 #include "content/public/browser/native_web_keyboard_event.h"
15 #include "content/public/browser/render_view_host.h" 15 #include "content/public/browser/render_view_host.h"
16 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
17 #include "grit/webkit_resources.h" 17 #include "grit/webkit_resources.h"
18 #include "third_party/WebKit/public/web/WebAutofillClient.h" 18 #include "third_party/WebKit/public/web/WebAutofillClient.h"
19 #include "ui/base/resource/resource_bundle.h" 19 #include "ui/base/resource/resource_bundle.h"
20 #include "ui/events/event.h" 20 #include "ui/events/event.h"
21 #include "ui/gfx/display.h" 21 #include "ui/gfx/display.h"
22 #include "ui/gfx/rect_conversions.h" 22 #include "ui/gfx/rect_conversions.h"
23 #include "ui/gfx/screen.h" 23 #include "ui/gfx/screen.h"
24 #include "ui/gfx/text_elider.h" 24 #include "ui/gfx/text_elider.h"
25 #include "ui/gfx/vector2d.h" 25 #include "ui/gfx/vector2d.h"
26 26
27 using base::WeakPtr; 27 using base::WeakPtr;
28 using WebKit::WebAutofillClient; 28 using blink::WebAutofillClient;
29 29
30 namespace autofill { 30 namespace autofill {
31 namespace { 31 namespace {
32 32
33 // Used to indicate that no line is currently selected by the user. 33 // Used to indicate that no line is currently selected by the user.
34 const int kNoSelection = -1; 34 const int kNoSelection = -1;
35 35
36 // The vertical height of each row in pixels. 36 // The vertical height of each row in pixels.
37 const size_t kRowHeight = 24; 37 const size_t kRowHeight = 24;
38 38
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 // The popup can appear below the field. 763 // The popup can appear below the field.
764 return std::make_pair(bottom_growth_start, popup_required_height); 764 return std::make_pair(bottom_growth_start, popup_required_height);
765 } else { 765 } else {
766 // The popup must appear above the field. 766 // The popup must appear above the field.
767 return std::make_pair(top_growth_end - popup_required_height, 767 return std::make_pair(top_growth_end - popup_required_height,
768 popup_required_height); 768 popup_required_height);
769 } 769 }
770 } 770 }
771 771
772 } // namespace autofill 772 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698