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

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

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 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENTS_V IEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENTS_V IEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENTS_V IEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENTS_V IEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view. h" 9 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view. h"
10 #include "chrome/browser/ui/views/autocomplete/autocomplete_result_view.h" 10 #include "chrome/browser/ui/views/autocomplete/autocomplete_result_view.h"
11 11
12 class AutocompleteEditModel; 12 class AutocompleteEditModel;
13 class OmniboxView; 13 class OmniboxView;
14 class Profile;
15 14
16 namespace gfx { 15 namespace gfx {
17 class Canvas; 16 class Canvas;
18 class CanvasSkia; 17 class CanvasSkia;
19 } 18 }
20 19
21 namespace views { 20 namespace views {
22 class View; 21 class View;
23 } 22 }
24 23
(...skipping 15 matching lines...) Expand all
40 39
41 DISALLOW_COPY_AND_ASSIGN(TouchAutocompleteResultView); 40 DISALLOW_COPY_AND_ASSIGN(TouchAutocompleteResultView);
42 }; 41 };
43 42
44 class TouchAutocompletePopupContentsView 43 class TouchAutocompletePopupContentsView
45 : public AutocompletePopupContentsView { 44 : public AutocompletePopupContentsView {
46 public: 45 public:
47 TouchAutocompletePopupContentsView(const gfx::Font& font, 46 TouchAutocompletePopupContentsView(const gfx::Font& font,
48 OmniboxView* omnibox_view, 47 OmniboxView* omnibox_view,
49 AutocompleteEditModel* edit_model, 48 AutocompleteEditModel* edit_model,
50 Profile* profile,
51 const views::View* location_bar); 49 const views::View* location_bar);
52 virtual ~TouchAutocompletePopupContentsView(); 50 virtual ~TouchAutocompletePopupContentsView();
53 51
54 // AutocompletePopupContentsView: 52 // AutocompletePopupContentsView:
55 virtual void UpdatePopupAppearance(); 53 virtual void UpdatePopupAppearance();
56 virtual void LayoutChildren(); 54 virtual void LayoutChildren();
57 55
58 protected: 56 protected:
59 // AutocompletePopupContentsView: 57 // AutocompletePopupContentsView:
60 virtual void PaintResultViews(gfx::CanvasSkia* canvas); 58 virtual void PaintResultViews(gfx::CanvasSkia* canvas);
61 virtual int CalculatePopupHeight(); 59 virtual int CalculatePopupHeight();
62 virtual AutocompleteResultView* CreateResultView( 60 virtual AutocompleteResultView* CreateResultView(
63 AutocompleteResultViewModel* model, 61 AutocompleteResultViewModel* model,
64 int model_index, 62 int model_index,
65 const gfx::Font& font, 63 const gfx::Font& font,
66 const gfx::Font& bold_font); 64 const gfx::Font& bold_font);
67 65
68 private: 66 private:
69 std::vector<View*> GetVisibleChildren(); 67 std::vector<View*> GetVisibleChildren();
70 68
71 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); 69 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView);
72 }; 70 };
73 71
74 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT S_VIEW_H_ 72 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT S_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698