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

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

Issue 7584024: views omnibox popup: Setup the parent Widget, instead of the parent NativeView. (Closed) Base URL: svn://svn.chromium.org/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"
(...skipping 30 matching lines...) Expand all
41 DISALLOW_COPY_AND_ASSIGN(TouchAutocompleteResultView); 41 DISALLOW_COPY_AND_ASSIGN(TouchAutocompleteResultView);
42 }; 42 };
43 43
44 class TouchAutocompletePopupContentsView 44 class TouchAutocompletePopupContentsView
45 : public AutocompletePopupContentsView { 45 : public AutocompletePopupContentsView {
46 public: 46 public:
47 TouchAutocompletePopupContentsView(const gfx::Font& font, 47 TouchAutocompletePopupContentsView(const gfx::Font& font,
48 OmniboxView* omnibox_view, 48 OmniboxView* omnibox_view,
49 AutocompleteEditModel* edit_model, 49 AutocompleteEditModel* edit_model,
50 Profile* profile, 50 Profile* profile,
51 const views::View* location_bar); 51 views::View* location_bar);
52 virtual ~TouchAutocompletePopupContentsView(); 52 virtual ~TouchAutocompletePopupContentsView();
53 53
54 // AutocompletePopupContentsView: 54 // AutocompletePopupContentsView:
55 virtual void UpdatePopupAppearance(); 55 virtual void UpdatePopupAppearance();
56 virtual void LayoutChildren(); 56 virtual void LayoutChildren();
57 57
58 protected: 58 protected:
59 // AutocompletePopupContentsView: 59 // AutocompletePopupContentsView:
60 virtual void PaintResultViews(gfx::CanvasSkia* canvas); 60 virtual void PaintResultViews(gfx::CanvasSkia* canvas);
61 virtual int CalculatePopupHeight(); 61 virtual int CalculatePopupHeight();
62 virtual AutocompleteResultView* CreateResultView( 62 virtual AutocompleteResultView* CreateResultView(
63 AutocompleteResultViewModel* model, 63 AutocompleteResultViewModel* model,
64 int model_index, 64 int model_index,
65 const gfx::Font& font, 65 const gfx::Font& font,
66 const gfx::Font& bold_font); 66 const gfx::Font& bold_font);
67 67
68 private: 68 private:
69 std::vector<View*> GetVisibleChildren(); 69 std::vector<View*> GetVisibleChildren();
70 70
71 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView); 71 DISALLOW_COPY_AND_ASSIGN(TouchAutocompletePopupContentsView);
72 }; 72 };
73 73
74 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT S_VIEW_H_ 74 #endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_TOUCH_AUTOCOMPLETE_POPUP_CONTENT S_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698