diff options
author | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-26 21:18:39 +0000 |
---|---|---|
committer | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-26 21:18:39 +0000 |
commit | 2b861aca51727686bca140800841a9bd29485a91 (patch) | |
tree | 0d420561b3232cde67fa8d022d85c48514d20b67 /chrome/browser/views/about_chrome_view.h | |
parent | c2225ca2a30866397a5451447ad5f4f55a2fc512 (diff) | |
download | chromium_src-2b861aca51727686bca140800841a9bd29485a91.zip chromium_src-2b861aca51727686bca140800841a9bd29485a91.tar.gz chromium_src-2b861aca51727686bca140800841a9bd29485a91.tar.bz2 |
Make the link in the About box clickable (Issue 657)
The URL in the About box was added as a last minute string addition. I have now made it clickable. I also converted the TextField for the main label into a regular label, since there is no need to copy anything anylonger.
Review URL: http://codereview.chromium.org/5013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2643 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/about_chrome_view.h')
-rw-r--r-- | chrome/browser/views/about_chrome_view.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/views/about_chrome_view.h b/chrome/browser/views/about_chrome_view.h index 7ef9608..1cfd949 100644 --- a/chrome/browser/views/about_chrome_view.h +++ b/chrome/browser/views/about_chrome_view.h @@ -9,6 +9,7 @@ #include "chrome/views/dialog_delegate.h" #include "chrome/views/image_view.h" #include "chrome/views/label.h" +#include "chrome/views/link.h" #include "chrome/views/view.h" namespace ChromeViews { @@ -28,6 +29,7 @@ class Profile; //////////////////////////////////////////////////////////////////////////////// class AboutChromeView : public ChromeViews::View, public ChromeViews::DialogDelegate, + public ChromeViews::LinkController, public GoogleUpdateStatusListener { public: explicit AboutChromeView(Profile* profile); @@ -57,6 +59,9 @@ class AboutChromeView : public ChromeViews::View, virtual bool Accept(); virtual ChromeViews::View* GetContentsView(); + // Overridden from ChromeViews::LinkController: + virtual void LinkActivated(ChromeViews::Link* source, int event_flags); + // Overridden from GoogleUpdateStatusListener: virtual void OnReportResults(GoogleUpdateUpgradeResult result, GoogleUpdateErrorCode error_code, @@ -80,7 +85,8 @@ class AboutChromeView : public ChromeViews::View, ChromeViews::ImageView* about_dlg_background_; ChromeViews::Label* about_title_label_; ChromeViews::TextField* version_label_; - ChromeViews::TextField* main_text_label_; + ChromeViews::Label* main_text_label_; + ChromeViews::Link* copyright_url_; // UI elements we add to the parent view. scoped_ptr<ChromeViews::Throbber> throbber_; ChromeViews::ImageView success_indicator_; |