| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 55   // Overridden from OmniboxResultViewModel: | 55   // Overridden from OmniboxResultViewModel: | 
| 56   virtual bool IsSelectedIndex(size_t index) const OVERRIDE; | 56   virtual bool IsSelectedIndex(size_t index) const OVERRIDE; | 
| 57   virtual bool IsHoveredIndex(size_t index) const OVERRIDE; | 57   virtual bool IsHoveredIndex(size_t index) const OVERRIDE; | 
| 58   virtual gfx::Image GetIconIfExtensionMatch(size_t index) const OVERRIDE; | 58   virtual gfx::Image GetIconIfExtensionMatch(size_t index) const OVERRIDE; | 
| 59 | 59 | 
| 60   // Overridden from ui::AnimationDelegate: | 60   // Overridden from ui::AnimationDelegate: | 
| 61   virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 61   virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 
| 62 | 62 | 
| 63   // Overridden from views::View: | 63   // Overridden from views::View: | 
| 64   virtual void Layout() OVERRIDE; | 64   virtual void Layout() OVERRIDE; | 
| 65   virtual views::View* GetEventHandlerForPoint( | 65   virtual views::View* GetEventHandler(const gfx::Rect& rect, EventType type) | 
| 66       const gfx::Point& point) OVERRIDE; | 66       OVERRIDE; | 
| 67   virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 67   virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 
| 68   virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 68   virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 
| 69   virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 69   virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 
| 70   virtual void OnMouseCaptureLost() OVERRIDE; | 70   virtual void OnMouseCaptureLost() OVERRIDE; | 
| 71   virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 71   virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 
| 72   virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 72   virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 
| 73   virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 73   virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 
| 74   virtual ui::EventResult OnGestureEvent( | 74   virtual ui::EventResult OnGestureEvent( | 
| 75       const ui::GestureEvent& event) OVERRIDE; | 75       const ui::GestureEvent& event) OVERRIDE; | 
| 76 | 76 | 
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 180   // The popup sizes vertically using an animation when the popup is getting | 180   // The popup sizes vertically using an animation when the popup is getting | 
| 181   // shorter (not larger, that makes it look "slow"). | 181   // shorter (not larger, that makes it look "slow"). | 
| 182   ui::SlideAnimation size_animation_; | 182   ui::SlideAnimation size_animation_; | 
| 183   gfx::Rect start_bounds_; | 183   gfx::Rect start_bounds_; | 
| 184   gfx::Rect target_bounds_; | 184   gfx::Rect target_bounds_; | 
| 185 | 185 | 
| 186   DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); | 186   DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); | 
| 187 }; | 187 }; | 
| 188 | 188 | 
| 189 #endif  // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 189 #endif  // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ | 
| OLD | NEW | 
|---|