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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_icon_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_LOCATION_BAR_LOCATION_ICON_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
7 7
8 #include "chrome/browser/ui/views/location_bar/page_info_helper.h" 8 #include "chrome/browser/ui/views/location_bar/page_info_helper.h"
9 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h" 9 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h"
10 #include "ui/views/controls/image_view.h" 10 #include "ui/views/controls/image_view.h"
(...skipping 11 matching lines...) Expand all
22 public TouchableLocationBarView { 22 public TouchableLocationBarView {
23 public: 23 public:
24 explicit LocationIconView(LocationBarView* location_bar); 24 explicit LocationIconView(LocationBarView* location_bar);
25 virtual ~LocationIconView(); 25 virtual ~LocationIconView();
26 26
27 // Overridden from views::ImageView: 27 // Overridden from views::ImageView:
28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 28 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
29 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 29 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
30 30
31 // Overridden from ui::EventHandler: 31 // Overridden from ui::EventHandler:
32 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 32 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
33 33
34 // TouchableLocationBarView. 34 // TouchableLocationBarView.
35 virtual int GetBuiltInHorizontalPadding() const OVERRIDE; 35 virtual int GetBuiltInHorizontalPadding() const OVERRIDE;
36 36
37 // Whether we should show the tooltip for this icon or not. 37 // Whether we should show the tooltip for this icon or not.
38 void ShowTooltip(bool show); 38 void ShowTooltip(bool show);
39 39
40 private: 40 private:
41 PageInfoHelper page_info_helper_; 41 PageInfoHelper page_info_helper_;
42 42
43 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationIconView); 43 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationIconView);
44 }; 44 };
45 45
46 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ 46 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698