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

Side by Side Diff: ash/launcher/launcher_button.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
« no previous file with comments | « ash/drag_drop/drag_drop_controller_unittest.cc ('k') | ash/launcher/launcher_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_LAUNCHER_LAUNCHER_BUTTON_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_BUTTON_H_
6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_H_ 6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_H_
7 7
8 #include "ui/gfx/shadow_value.h" 8 #include "ui/gfx/shadow_value.h"
9 #include "ui/views/controls/button/custom_button.h" 9 #include "ui/views/controls/button/custom_button.h"
10 #include "ui/views/controls/image_view.h" 10 #include "ui/views/controls/image_view.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 84 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
85 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 85 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
86 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 86 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
87 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 87 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
88 virtual void Layout() OVERRIDE; 88 virtual void Layout() OVERRIDE;
89 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; 89 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE;
90 virtual void OnFocus() OVERRIDE; 90 virtual void OnFocus() OVERRIDE;
91 virtual void OnBlur() OVERRIDE; 91 virtual void OnBlur() OVERRIDE;
92 92
93 // ui::EventHandler overrides: 93 // ui::EventHandler overrides:
94 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 94 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
95 95
96 // Sets the icon image with a shadow. 96 // Sets the icon image with a shadow.
97 void SetShadowedImage(const gfx::ImageSkia& bitmap); 97 void SetShadowedImage(const gfx::ImageSkia& bitmap);
98 // Override for custom initialization. 98 // Override for custom initialization.
99 virtual void Init(); 99 virtual void Init();
100 // Override to subclass IconView. 100 // Override to subclass IconView.
101 virtual IconView* CreateIconView(); 101 virtual IconView* CreateIconView();
102 IconView* icon_view() const { return icon_view_; } 102 IconView* icon_view() const { return icon_view_; }
103 LauncherButtonHost* host() const { return host_; } 103 LauncherButtonHost* host() const { return host_; }
104 104
(...skipping 18 matching lines...) Expand all
123 123
124 gfx::ShadowValues icon_shadows_; 124 gfx::ShadowValues icon_shadows_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(LauncherButton); 126 DISALLOW_COPY_AND_ASSIGN(LauncherButton);
127 }; 127 };
128 128
129 } // namespace internal 129 } // namespace internal
130 } // namespace ash 130 } // namespace ash
131 131
132 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_ 132 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/drag_drop/drag_drop_controller_unittest.cc ('k') | ash/launcher/launcher_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698