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

Side by Side Diff: ui/views/controls/link.h

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | « ui/views/controls/combobox/native_combobox_wrapper.h ('k') | ui/views/controls/link.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 UI_VIEWS_CONTROLS_LINK_H_ 5 #ifndef UI_VIEWS_CONTROLS_LINK_H_
6 #define UI_VIEWS_CONTROLS_LINK_H_ 6 #define UI_VIEWS_CONTROLS_LINK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/views/controls/label.h" 10 #include "ui/views/controls/label.h"
(...skipping 22 matching lines...) Expand all
33 // Overridden from View: 33 // Overridden from View:
34 virtual void OnEnabledChanged() OVERRIDE; 34 virtual void OnEnabledChanged() OVERRIDE;
35 virtual std::string GetClassName() const OVERRIDE; 35 virtual std::string GetClassName() const OVERRIDE;
36 virtual gfx::NativeCursor GetCursor(const MouseEvent& event) OVERRIDE; 36 virtual gfx::NativeCursor GetCursor(const MouseEvent& event) OVERRIDE;
37 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; 37 virtual bool HitTest(const gfx::Point& l) const OVERRIDE;
38 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; 38 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE;
39 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; 39 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE;
40 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE; 40 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE;
41 virtual void OnMouseCaptureLost() OVERRIDE; 41 virtual void OnMouseCaptureLost() OVERRIDE;
42 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE; 42 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE;
43 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE; 43 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
44 virtual bool SkipDefaultKeyEventProcessing(const KeyEvent& event) OVERRIDE; 44 virtual bool SkipDefaultKeyEventProcessing(
45 const ui::KeyEvent& event) OVERRIDE;
45 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 46 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
46 47
47 // Overridden from Label: 48 // Overridden from Label:
48 virtual void SetFont(const gfx::Font& font) OVERRIDE; 49 virtual void SetFont(const gfx::Font& font) OVERRIDE;
49 50
50 virtual void SetEnabledColor(SkColor color) OVERRIDE; 51 virtual void SetEnabledColor(SkColor color) OVERRIDE;
51 void SetPressedColor(SkColor color); 52 void SetPressedColor(SkColor color);
52 53
53 static const char kViewClassName[]; 54 static const char kViewClassName[];
54 55
(...skipping 14 matching lines...) Expand all
69 70
70 // The color when the link is pressed. 71 // The color when the link is pressed.
71 SkColor requested_pressed_color_; 72 SkColor requested_pressed_color_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(Link); 74 DISALLOW_COPY_AND_ASSIGN(Link);
74 }; 75 };
75 76
76 } // namespace views 77 } // namespace views
77 78
78 #endif // UI_VIEWS_CONTROLS_LINK_H_ 79 #endif // UI_VIEWS_CONTROLS_LINK_H_
OLDNEW
« no previous file with comments | « ui/views/controls/combobox/native_combobox_wrapper.h ('k') | ui/views/controls/link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698