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

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

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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_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 "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" 9 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h"
10 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h" 10 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual void UpdatePopupAppearance() OVERRIDE; 44 virtual void UpdatePopupAppearance() OVERRIDE;
45 virtual gfx::Rect GetTargetBounds() OVERRIDE; 45 virtual gfx::Rect GetTargetBounds() OVERRIDE;
46 virtual void PaintUpdatesNow() OVERRIDE; 46 virtual void PaintUpdatesNow() OVERRIDE;
47 virtual void OnDragCanceled() OVERRIDE; 47 virtual void OnDragCanceled() OVERRIDE;
48 48
49 // Overridden from gfx::AnimationDelegate: 49 // Overridden from gfx::AnimationDelegate:
50 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 50 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
51 51
52 // Overridden from views::View: 52 // Overridden from views::View:
53 virtual void Layout() OVERRIDE; 53 virtual void Layout() OVERRIDE;
54 virtual views::View* GetEventHandlerForRect( 54 virtual views::View* GetEventHandlerForRect(const gfx::RectF& rect) OVERRIDE;
55 const gfx::Rect& rect) OVERRIDE;
56 virtual views::View* GetTooltipHandlerForPoint( 55 virtual views::View* GetTooltipHandlerForPoint(
57 const gfx::Point& point) OVERRIDE; 56 const gfx::Point& point) OVERRIDE;
58 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 57 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
59 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 58 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
60 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 59 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
61 virtual void OnMouseCaptureLost() OVERRIDE; 60 virtual void OnMouseCaptureLost() OVERRIDE;
62 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 61 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
63 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 62 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
64 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 63 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
65 64
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 170
172 // When the dropdown is not wide enough while displaying postfix suggestions, 171 // When the dropdown is not wide enough while displaying postfix suggestions,
173 // we use the width of widest match contents to shift the suggestions so that 172 // we use the width of widest match contents to shift the suggestions so that
174 // the widest suggestion just reaches the end edge. 173 // the widest suggestion just reaches the end edge.
175 int max_match_contents_width_; 174 int max_match_contents_width_;
176 175
177 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); 176 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView);
178 }; 177 };
179 178
180 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ 179 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698