Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(133)

Issue 8696: Re: RR, code review request: merge HyperlinkOverride into Hyperlink widget

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 3 months ago by rjrjr
Modified:
11 years, 2 months ago
Reviewers:
rjrjr
CC:
ajr, gwtcontrib
Base URL:
http://google-web-toolkit.googlecode.com/svn/releases/1.6
Visibility:
Public.

Description

Hello Ray :) Would you take a look at this patch for the Hyperlink widget? It takes the behavior from incubator's HyperlinkOverride widget and moves it into the core Hyperlink. This means that on a click event with a modifier key (with specific keys counting, per-browser), we let the default browser action happen, usually something like opening that link in a new tab. I have a small doubt about this patch with regard to Chrome, but please let me know what you think -- as far as I can tell, Chrome doesn't do an "open in new tab" when you ctrl-click on a link to a URL fragment (for example, our history tokens) -- but on the assumption that this may change soon, this patch tries to do the behavior that Chrome does for regular links, which is just like Firefox. Patch is intended for the 1.6 release branch, r4214. Thanks! -- Alex Rudnick swe, gwt, atl

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -2 lines) Patch
user/src/com/google/gwt/user/Hyperlink.gwt.xml View 1 chunk +19 lines, -0 lines 0 comments Download
user/src/com/google/gwt/user/User.gwt.xml View 1 chunk +1 line, -0 lines 0 comments Download
user/src/com/google/gwt/user/client/ui/Hyperlink.java View 4 chunks +9 lines, -2 lines 0 comments Download
user/src/com/google/gwt/user/client/ui/impl/HyperlinkImpl.java View 1 chunk +45 lines, -0 lines 0 comments Download
user/src/com/google/gwt/user/client/ui/impl/HyperlinkImplIE.java View 1 chunk +69 lines, -0 lines 1 comment Download
user/src/com/google/gwt/user/client/ui/impl/HyperlinkImplOpera.java View 1 chunk +35 lines, -0 lines 0 comments Download
user/src/com/google/gwt/user/client/ui/impl/HyperlinkImplSafari.java View 1 chunk +55 lines, -0 lines 1 comment Download

Messages

Total messages: 1
rjrjr
17 years, 3 months ago (2008-12-02 17:50:04 UTC) #1
This looks great to me, Alex. And I think you're doing as right a thing as you
can WRT Chrome. Just a couple of nits noted below.

http://codereview.appspot.com/8696/diff/1/4
File user/src/com/google/gwt/user/client/ui/impl/HyperlinkImplIE.java (right):

http://codereview.appspot.com/8696/diff/1/4#newcode31
Line 31: ctrlisModifier = (getInternetExplorerVersion() >= 7);
Why the static block? Seems like you can just do this inline.

http://codereview.appspot.com/8696/diff/1/5
File user/src/com/google/gwt/user/client/ui/impl/HyperlinkImplSafari.java
(right):

http://codereview.appspot.com/8696/diff/1/5#newcode31
Line 31: shiftIsModifier = onChrome();
again, don't see the need for the block.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b