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

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

Issue 11280290: events: Change gesture-event handler in EventHandler to not return any values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698