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

Side by Side Diff: chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h

Issue 247193002: Remove touch layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_
7
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h"
10 #include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"
11
12 class OmniboxEditModel;
13 class OmniboxView;
14
15 namespace gfx {
16 class Canvas;
17 }
18
19 namespace views {
20 class View;
21 }
22
23 class TouchOmniboxResultView : public OmniboxResultView {
24 public:
25 TouchOmniboxResultView(OmniboxPopupContentsView* model,
26 int model_index,
27 LocationBarView* location_bar_view,
28 const gfx::FontList& font_list);
29
30 private:
31 virtual ~TouchOmniboxResultView();
32
33 // OmniboxResultView:
34 virtual void PaintMatch(const AutocompleteMatch& match,
35 gfx::RenderText* contents,
36 gfx::RenderText* description,
37 gfx::Canvas* canvas,
38 int x) const OVERRIDE;
39 virtual int GetTextHeight() const OVERRIDE;
40
41 DISALLOW_COPY_AND_ASSIGN(TouchOmniboxResultView);
42 };
43
44 class TouchOmniboxPopupContentsView
45 : public OmniboxPopupContentsView {
46 public:
47 TouchOmniboxPopupContentsView(const gfx::FontList& font_list,
48 OmniboxView* omnibox_view,
49 OmniboxEditModel* edit_model,
50 LocationBarView* location_bar_view);
51 virtual ~TouchOmniboxPopupContentsView();
52
53 // OmniboxPopupContentsView:
54 virtual void UpdatePopupAppearance() OVERRIDE;
55
56 protected:
57 // OmniboxPopupContentsView:
58 virtual void PaintResultViews(gfx::Canvas* canvas) OVERRIDE;
59 virtual OmniboxResultView* CreateResultView(
60 int model_index,
61 const gfx::FontList& font_list) OVERRIDE;
62
63 private:
64 std::vector<View*> GetVisibleChildren();
65
66 DISALLOW_COPY_AND_ASSIGN(TouchOmniboxPopupContentsView);
67 };
68
69 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_TOUCH_OMNIBOX_POPUP_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698