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

Side by Side Diff: chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h

Issue 3417011: Makes match preview send the dimensions of the omnibox to the page. (Closed)
Patch Set: Fix unittest Created 10 years, 3 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/slide_animation.h" 9 #include "app/slide_animation.h"
10 #include "chrome/browser/autocomplete/autocomplete.h" 10 #include "chrome/browser/autocomplete/autocomplete.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual ~AutocompletePopupContentsView(); 54 virtual ~AutocompletePopupContentsView();
55 55
56 // Returns the bounds the popup should be shown at. This is the display bounds 56 // Returns the bounds the popup should be shown at. This is the display bounds
57 // and includes offsets for the dropshadow which this view's border renders. 57 // and includes offsets for the dropshadow which this view's border renders.
58 gfx::Rect GetPopupBounds() const; 58 gfx::Rect GetPopupBounds() const;
59 59
60 // Overridden from AutocompletePopupView: 60 // Overridden from AutocompletePopupView:
61 virtual bool IsOpen() const; 61 virtual bool IsOpen() const;
62 virtual void InvalidateLine(size_t line); 62 virtual void InvalidateLine(size_t line);
63 virtual void UpdatePopupAppearance(); 63 virtual void UpdatePopupAppearance();
64 virtual gfx::Rect GetTargetBounds();
64 virtual void PaintUpdatesNow(); 65 virtual void PaintUpdatesNow();
65 virtual void OnDragCanceled(); 66 virtual void OnDragCanceled();
66 virtual AutocompletePopupModel* GetModel(); 67 virtual AutocompletePopupModel* GetModel();
67 virtual int GetMaxYCoordinate(); 68 virtual int GetMaxYCoordinate();
68 69
69 // Overridden from AutocompleteResultViewModel: 70 // Overridden from AutocompleteResultViewModel:
70 virtual bool IsSelectedIndex(size_t index) const; 71 virtual bool IsSelectedIndex(size_t index) const;
71 virtual bool IsHoveredIndex(size_t index) const; 72 virtual bool IsHoveredIndex(size_t index) const;
72 virtual const SkBitmap* GetSpecialIcon(size_t index) const; 73 virtual const SkBitmap* GetSpecialIcon(size_t index) const;
73 74
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // The popup sizes vertically using an animation when the popup is getting 160 // The popup sizes vertically using an animation when the popup is getting
160 // shorter (not larger, that makes it look "slow"). 161 // shorter (not larger, that makes it look "slow").
161 SlideAnimation size_animation_; 162 SlideAnimation size_animation_;
162 gfx::Rect start_bounds_; 163 gfx::Rect start_bounds_;
163 gfx::Rect target_bounds_; 164 gfx::Rect target_bounds_;
164 165
165 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView); 166 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView);
166 }; 167 };
167 168
168 #endif // CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ 169 #endif // CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698