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

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

Issue 113441: ChromeFont->gfx::Font... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « views/controls/label_unittest.cc ('k') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 VIEWS_CONTROLS_LINK_H_ 5 #ifndef VIEWS_CONTROLS_LINK_H_
6 #define VIEWS_CONTROLS_LINK_H_ 6 #define VIEWS_CONTROLS_LINK_H_
7 7
8 #include "views/controls/label.h" 8 #include "views/controls/label.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const LinkController* GetController(); 42 const LinkController* GetController();
43 43
44 // Overridden from View: 44 // Overridden from View:
45 virtual bool OnMousePressed(const MouseEvent& event); 45 virtual bool OnMousePressed(const MouseEvent& event);
46 virtual bool OnMouseDragged(const MouseEvent& event); 46 virtual bool OnMouseDragged(const MouseEvent& event);
47 virtual void OnMouseReleased(const MouseEvent& event, 47 virtual void OnMouseReleased(const MouseEvent& event,
48 bool canceled); 48 bool canceled);
49 virtual bool OnKeyPressed(const KeyEvent& e); 49 virtual bool OnKeyPressed(const KeyEvent& e);
50 virtual bool OverrideAccelerator(const Accelerator& accelerator); 50 virtual bool OverrideAccelerator(const Accelerator& accelerator);
51 51
52 virtual void SetFont(const ChromeFont& font); 52 virtual void SetFont(const gfx::Font& font);
53 53
54 // Set whether the link is enabled. 54 // Set whether the link is enabled.
55 virtual void SetEnabled(bool f); 55 virtual void SetEnabled(bool f);
56 56
57 virtual HCURSOR GetCursorForPoint(Event::EventType event_type, int x, int y); 57 virtual HCURSOR GetCursorForPoint(Event::EventType event_type, int x, int y);
58 58
59 virtual std::string GetClassName() const; 59 virtual std::string GetClassName() const;
60 60
61 void SetHighlightedColor(const SkColor& color); 61 void SetHighlightedColor(const SkColor& color);
62 void SetDisabledColor(const SkColor& color); 62 void SetDisabledColor(const SkColor& color);
(...skipping 22 matching lines...) Expand all
85 85
86 // The color when the link is neither highlighted nor disabled. 86 // The color when the link is neither highlighted nor disabled.
87 SkColor normal_color_; 87 SkColor normal_color_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(Link); 89 DISALLOW_COPY_AND_ASSIGN(Link);
90 }; 90 };
91 91
92 } // namespace views 92 } // namespace views
93 93
94 #endif // VIEWS_CONTROLS_LINK_H_ 94 #endif // VIEWS_CONTROLS_LINK_H_
OLDNEW
« no previous file with comments | « views/controls/label_unittest.cc ('k') | views/controls/link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698