| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const gfx::Point& point) OVERRIDE; | 65 const gfx::Point& point) OVERRIDE; |
| 66 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 66 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 67 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 67 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
| 68 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 68 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 69 virtual void OnMouseCaptureLost() OVERRIDE; | 69 virtual void OnMouseCaptureLost() OVERRIDE; |
| 70 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 70 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
| 71 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 71 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
| 72 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 72 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 73 | 73 |
| 74 // Overridden from ui::EventHandler: | 74 // Overridden from ui::EventHandler: |
| 75 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 75 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 76 | 76 |
| 77 protected: | 77 protected: |
| 78 OmniboxPopupContentsView(const gfx::Font& font, | 78 OmniboxPopupContentsView(const gfx::Font& font, |
| 79 OmniboxView* omnibox_view, | 79 OmniboxView* omnibox_view, |
| 80 OmniboxEditModel* edit_model, | 80 OmniboxEditModel* edit_model, |
| 81 views::View* location_bar); | 81 views::View* location_bar); |
| 82 virtual ~OmniboxPopupContentsView(); | 82 virtual ~OmniboxPopupContentsView(); |
| 83 | 83 |
| 84 virtual void PaintResultViews(gfx::Canvas* canvas); | 84 virtual void PaintResultViews(gfx::Canvas* canvas); |
| 85 | 85 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // The popup sizes vertically using an animation when the popup is getting | 182 // The popup sizes vertically using an animation when the popup is getting |
| 183 // shorter (not larger, that makes it look "slow"). | 183 // shorter (not larger, that makes it look "slow"). |
| 184 ui::SlideAnimation size_animation_; | 184 ui::SlideAnimation size_animation_; |
| 185 gfx::Rect start_bounds_; | 185 gfx::Rect start_bounds_; |
| 186 gfx::Rect target_bounds_; | 186 gfx::Rect target_bounds_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); | 188 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 191 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ |
| OLD | NEW |