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

Side by Side Diff: ash/launcher/launcher_button.h

Issue 10702102: Added hover feedback on touch to launcher buttons. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge with trunk Created 8 years, 4 months 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 | « no previous file | 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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/shadow_value.h" 9 #include "ui/gfx/shadow_value.h"
10 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 }; 82 };
83 83
84 // View overrides: 84 // View overrides:
85 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; 85 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
86 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 86 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
87 virtual void OnMouseCaptureLost() OVERRIDE; 87 virtual void OnMouseCaptureLost() OVERRIDE;
88 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; 88 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
89 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; 89 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE;
90 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; 90 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE;
91 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; 91 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE;
92 virtual ui::GestureStatus OnGestureEvent( 92 virtual ui::GestureStatus OnGestureEvent(const views::GestureEvent& event)
93 const views::GestureEvent& event) OVERRIDE; 93 OVERRIDE;
94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
95 virtual void Layout() OVERRIDE; 95 virtual void Layout() OVERRIDE;
96 virtual void OnFocus() OVERRIDE; 96 virtual void OnFocus() OVERRIDE;
97 virtual void OnBlur() OVERRIDE; 97 virtual void OnBlur() OVERRIDE;
98 98
99 // Sets the icon image with a shadow. 99 // Sets the icon image with a shadow.
100 void SetShadowedImage(const gfx::ImageSkia& bitmap); 100 void SetShadowedImage(const gfx::ImageSkia& bitmap);
101 // Override for custom initialization. 101 // Override for custom initialization.
102 virtual void Init(); 102 virtual void Init();
103 // Override to subclass IconView. 103 // Override to subclass IconView.
(...skipping 27 matching lines...) Expand all
131 131
132 gfx::ShadowValues icon_shadows_; 132 gfx::ShadowValues icon_shadows_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(LauncherButton); 134 DISALLOW_COPY_AND_ASSIGN(LauncherButton);
135 }; 135 };
136 136
137 } // namespace internal 137 } // namespace internal
138 } // namespace ash 138 } // namespace ash
139 139
140 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_ 140 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_
OLDNEW
« no previous file with comments | « no previous file | ash/launcher/launcher_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698