| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |