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

Side by Side Diff: chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.cc

Issue 7574021: Remove frontend code that allows for dynamic profile setting, and read the profile off the browse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/views/autocomplete/touch_autocomplete_popup_contents _view.h" 5 #include "chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents _view.h"
6 6
7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/omnibox/omnibox_view.h" 7 #include "chrome/browser/ui/omnibox/omnibox_view.h"
9 #include "third_party/skia/include/core/SkPaint.h" 8 #include "third_party/skia/include/core/SkPaint.h"
10 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
11 #include "ui/gfx/canvas_skia.h" 10 #include "ui/gfx/canvas_skia.h"
12 #include "ui/gfx/font.h" 11 #include "ui/gfx/font.h"
13 #include "ui/gfx/path.h" 12 #include "ui/gfx/path.h"
14 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
15 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
16 #include "views/view.h" 15 #include "views/view.h"
17 16
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 return AutocompleteResultView::GetTextHeight() * 2; 49 return AutocompleteResultView::GetTextHeight() * 2;
51 } 50 }
52 51
53 52
54 // TouchAutocompletePopupContentsView ----------------------------------------- 53 // TouchAutocompletePopupContentsView -----------------------------------------
55 54
56 TouchAutocompletePopupContentsView::TouchAutocompletePopupContentsView( 55 TouchAutocompletePopupContentsView::TouchAutocompletePopupContentsView(
57 const gfx::Font& font, 56 const gfx::Font& font,
58 OmniboxView* omnibox_view, 57 OmniboxView* omnibox_view,
59 AutocompleteEditModel* edit_model, 58 AutocompleteEditModel* edit_model,
60 Profile* profile,
61 const views::View* location_bar) 59 const views::View* location_bar)
62 : AutocompletePopupContentsView(font, omnibox_view, edit_model, profile, 60 : AutocompletePopupContentsView(font, omnibox_view, edit_model,
63 location_bar) { 61 location_bar) {
64 } 62 }
65 63
66 TouchAutocompletePopupContentsView::~TouchAutocompletePopupContentsView() { 64 TouchAutocompletePopupContentsView::~TouchAutocompletePopupContentsView() {
67 } 65 }
68 66
69 void TouchAutocompletePopupContentsView::UpdatePopupAppearance() { 67 void TouchAutocompletePopupContentsView::UpdatePopupAppearance() {
70 AutocompletePopupContentsView::UpdatePopupAppearance(); 68 AutocompletePopupContentsView::UpdatePopupAppearance();
71 Layout(); 69 Layout();
72 } 70 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 std::vector<views::View*> 123 std::vector<views::View*>
126 TouchAutocompletePopupContentsView::GetVisibleChildren() { 124 TouchAutocompletePopupContentsView::GetVisibleChildren() {
127 std::vector<View*> visible_children; 125 std::vector<View*> visible_children;
128 for (int i = 0; i < child_count(); ++i) { 126 for (int i = 0; i < child_count(); ++i) {
129 View* v = child_at(i); 127 View* v = child_at(i);
130 if (child_at(i)->IsVisible()) 128 if (child_at(i)->IsVisible())
131 visible_children.push_back(v); 129 visible_children.push_back(v);
132 } 130 }
133 return visible_children; 131 return visible_children;
134 } 132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698