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

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

Issue 2877483003: Implements core logic for Pixel Canvas (Closed)
Patch Set: Sync with ToT Created 3 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
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_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual int CalculatePopupHeight(); 87 virtual int CalculatePopupHeight();
88 virtual OmniboxResultView* CreateResultView(int model_index, 88 virtual OmniboxResultView* CreateResultView(int model_index,
89 const gfx::FontList& font_list); 89 const gfx::FontList& font_list);
90 90
91 private: 91 private:
92 class AutocompletePopupWidget; 92 class AutocompletePopupWidget;
93 93
94 // views::View: 94 // views::View:
95 const char* GetClassName() const override; 95 const char* GetClassName() const override;
96 void OnPaint(gfx::Canvas* canvas) override; 96 void OnPaint(gfx::Canvas* canvas) override;
97 void PaintChildren(const ui::PaintContext& context) override; 97 void PaintChildren(const views::PaintInfo& paint_info) override;
98 98
99 // views::ViewTargeterDelegate: 99 // views::ViewTargeterDelegate:
100 views::View* TargetForRect(views::View* root, const gfx::Rect& rect) override; 100 views::View* TargetForRect(views::View* root, const gfx::Rect& rect) override;
101 101
102 // Call immediately after construction. 102 // Call immediately after construction.
103 void Init(); 103 void Init();
104 104
105 // Returns true if the model has a match at the specified index. 105 // Returns true if the model has a match at the specified index.
106 bool HasMatchAt(size_t index) const; 106 bool HasMatchAt(size_t index) const;
107 107
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 // When the dropdown is not wide enough while displaying tail suggestions, 161 // When the dropdown is not wide enough while displaying tail suggestions,
162 // we use the width of widest match contents to shift the suggestions so that 162 // we use the width of widest match contents to shift the suggestions so that
163 // the widest suggestion just reaches the end edge. 163 // the widest suggestion just reaches the end edge.
164 int max_match_contents_width_; 164 int max_match_contents_width_;
165 165
166 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); 166 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView);
167 }; 167 };
168 168
169 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ 169 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/top_container_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698