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

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

Issue 10384007: First stab at touch optimized omnibox auto-complete per sgabriel's mocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years, 7 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) 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 #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 "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view. h" 10 #include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view. h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 : public AutocompletePopupContentsView { 44 : public AutocompletePopupContentsView {
45 public: 45 public:
46 TouchAutocompletePopupContentsView(const gfx::Font& font, 46 TouchAutocompletePopupContentsView(const gfx::Font& font,
47 OmniboxView* omnibox_view, 47 OmniboxView* omnibox_view,
48 AutocompleteEditModel* edit_model, 48 AutocompleteEditModel* edit_model,
49 views::View* location_bar); 49 views::View* location_bar);
50 virtual ~TouchAutocompletePopupContentsView(); 50 virtual ~TouchAutocompletePopupContentsView();
51 51
52 // AutocompletePopupContentsView: 52 // AutocompletePopupContentsView:
53 virtual void UpdatePopupAppearance() OVERRIDE; 53 virtual void UpdatePopupAppearance() OVERRIDE;
54 virtual void LayoutChildren() OVERRIDE;
55 54
56 protected: 55 protected:
57 // AutocompletePopupContentsView: 56 // AutocompletePopupContentsView:
58 virtual void PaintResultViews(gfx::Canvas* canvas) OVERRIDE; 57 virtual void PaintResultViews(gfx::Canvas* canvas) OVERRIDE;
59 virtual int CalculatePopupHeight() OVERRIDE;
60 virtual AutocompleteResultView* CreateResultView( 58 virtual AutocompleteResultView* CreateResultView(
61 AutocompleteResultViewModel* model, 59 AutocompleteResultViewModel* model,
62 int model_index, 60 int model_index,
63 const gfx::Font& font, 61 const gfx::Font& font,
64 const gfx::Font& bold_font) OVERRIDE; 62 const gfx::Font& bold_font) OVERRIDE;
65 63
66 private: 64 private:
67 std::vector<View*> GetVisibleChildren(); 65 std::vector<View*> GetVisibleChildren();
68 66
69 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); 67 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView);
70 }; 68 };
71 69
72 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT S_VIEW_H_ 70 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT S_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698