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

Issue 7610011: Update Sad Tab help text and link. (Closed)

Created:
9 years, 4 months ago by msw
Modified:
9 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Change chrome://crash (sad tab page) "Learn more" link to: "If you're seeing this frequently, try these suggestions." Link "these suggestions" to the "Learn more" help article. Update Views, GTK, and Cocoa implementations. chrome://kill (unused) changes on Mac, but not on Views nor GTK. Not wrapping this line on overflow for Views and GTK seems acceptable. Strings: Add sad tab help message and embedded link resources. Views: Rewrite the SadTabView to use ImageView, GridLayout, etc. GTK: Add new prefix and suffix Label Widgets to an hbox with the link. Cocoa Support: Create HyperlinkTextView for non-selectable text & link. Cocoa IB: Replace SadTab.xib NSButton with a NSTextfield placeholder. Cocoa: Replace the placeholder with a customized HyperlinkTextView. BUG=80428 TEST=chrome://crash and chrome://kill on all platforms. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99393

Patch Set 1 #

Patch Set 2 : Implement NSTextView on Mac. #

Patch Set 3 : Minor cleanup in SadTabController. #

Total comments: 14

Patch Set 4 : Sync and rewrite the sad tab views, add supporting CenterLayout. #

Patch Set 5 : Consolidate NSTextView subclasses and AttributedString intializations. #

Patch Set 6 : Merging, trying to solve git weirdness. #

Patch Set 7 : Update SadTabControllerTest. #

Total comments: 2

Patch Set 8 : Use View raw ptrs, init in ViewHierarchyChanged, cleanup. #

Patch Set 9 : Fix message centering. #

Total comments: 14

Patch Set 10 : Use views::GridLayout, address Cocoa comments. #

Total comments: 13

Patch Set 11 : Address comments. #

Patch Set 12 : Declare private HyperlinkTextView methods in the code file. #

Patch Set 13 : Sync and merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+554 lines, -451 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/app/nibs/SadTab.xib View 1 2 3 4 13 chunks +75 lines, -87 lines 0 comments Download
A chrome/browser/ui/cocoa/hyperlink_text_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/hyperlink_text_view.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +131 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +23 lines, -151 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.mm View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/sad_tab_view.mm View 1 2 3 4 5 6 7 8 9 3 chunks +61 lines, -17 lines 0 comments Download
M chrome/browser/ui/gtk/sad_tab_gtk.cc View 1 2 3 4 2 chunks +34 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/sad_tab_view.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -23 lines 0 comments Download
chrome/browser/ui/views/sad_tab_view.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +120 lines, -143 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
msw
kuan: Please review all changes. pkasting: Views & generated_resources. thakis: Cocoa. estade: GTK.
9 years, 4 months ago (2011-08-12 01:01:32 UTC) #1
Avi (use Gerrit)
http://codereview.chromium.org/7610011/diff/3001/chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h File chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h (right): http://codereview.chromium.org/7610011/diff/3001/chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h#newcode39 chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h:39: // Called by SadTabController to provide a weak refernce ...
9 years, 4 months ago (2011-08-12 01:07:48 UTC) #2
Nico
Great job figuring out all the mac stuff! http://codereview.chromium.org/7610011/diff/3001/chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h File chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h (right): http://codereview.chromium.org/7610011/diff/3001/chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h#newcode40 chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h:40: - ...
9 years, 4 months ago (2011-08-12 02:29:56 UTC) #3
Peter Kasting
http://codereview.chromium.org/7610011/diff/3001/chrome/browser/ui/views/sad_tab_view.h File chrome/browser/ui/views/sad_tab_view.h (right): http://codereview.chromium.org/7610011/diff/3001/chrome/browser/ui/views/sad_tab_view.h#newcode60 chrome/browser/ui/views/sad_tab_view.h:60: string16 help_prefix_; Instead of doing all the work to ...
9 years, 4 months ago (2011-08-12 16:53:40 UTC) #4
Evan Stade
gtk lgtm
9 years, 4 months ago (2011-08-12 19:21:37 UTC) #5
msw
I made significant Views&Mac updates as requested; PTAL. "git pull" is broken, so my try ...
9 years, 3 months ago (2011-08-30 04:09:06 UTC) #6
Peter Kasting
We discussed in person using raw pointers in place of scoped_ptrs and constructing/adding children in ...
9 years, 3 months ago (2011-08-30 19:58:12 UTC) #7
msw
Comments addressed, PTAL; thanks! http://codereview.chromium.org/7610011/diff/25001/views/layout/center_layout.cc File views/layout/center_layout.cc (right): http://codereview.chromium.org/7610011/diff/25001/views/layout/center_layout.cc#newcode32 views/layout/center_layout.cc:32: LOG(INFO) << "Child Area: " ...
9 years, 3 months ago (2011-08-31 00:54:22 UTC) #8
Peter Kasting
As I said before, sky might know how to deal with all the centering and ...
9 years, 3 months ago (2011-08-31 17:28:34 UTC) #9
msw
sky: Can you review CenterLayout? My approach may not be correct. thakis: ping!
9 years, 3 months ago (2011-08-31 17:48:38 UTC) #10
Peter Kasting
On 2011/08/31 17:48:38, msw wrote: > sky: Can you review CenterLayout? My approach may not ...
9 years, 3 months ago (2011-08-31 17:49:57 UTC) #11
sky
I find that any time you start nesting boxes the code gets unreadable. For this ...
9 years, 3 months ago (2011-08-31 20:28:42 UTC) #12
Nico
LGTM with a few minor tweaks. Thanks! http://codereview.chromium.org/7610011/diff/27004/chrome/browser/ui/cocoa/static_text_view.h File chrome/browser/ui/cocoa/static_text_view.h (right): http://codereview.chromium.org/7610011/diff/27004/chrome/browser/ui/cocoa/static_text_view.h#newcode10 chrome/browser/ui/cocoa/static_text_view.h:10: @interface StaticTextView ...
9 years, 3 months ago (2011-08-31 22:35:18 UTC) #13
msw
sky: The views impl with GridView is way nicer, PTAL; thanks! thakis: Comments addressed, test ...
9 years, 3 months ago (2011-09-01 03:30:49 UTC) #14
Nico
SGTM http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/cocoa/hyperlink_text_view.mm File chrome/browser/ui/cocoa/hyperlink_text_view.mm (right): http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/cocoa/hyperlink_text_view.mm#newcode14 chrome/browser/ui/cocoa/hyperlink_text_view.mm:14: - (id)init { Do you use this? Views ...
9 years, 3 months ago (2011-09-01 03:36:03 UTC) #15
sky
http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/views/sad_tab_view.cc File chrome/browser/ui/views/sad_tab_view.cc (right): http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/views/sad_tab_view.cc#newcode43 chrome/browser/ui/views/sad_tab_view.cc:43: painted_(false) { Initialize all the new fields you're adding. ...
9 years, 3 months ago (2011-09-01 03:38:55 UTC) #16
Nico
http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm File chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm (right): http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm#newcode18 chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm:18: [[test_window() contentView] addSubview:view_]; Nevermind, your window keeps a ref ...
9 years, 3 months ago (2011-09-01 04:12:37 UTC) #17
msw
PTAL, thanks! http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/cocoa/hyperlink_text_view.mm File chrome/browser/ui/cocoa/hyperlink_text_view.mm (right): http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/cocoa/hyperlink_text_view.mm#newcode14 chrome/browser/ui/cocoa/hyperlink_text_view.mm:14: - (id)init { On 2011/09/01 03:36:03, Nico ...
9 years, 3 months ago (2011-09-01 16:27:42 UTC) #18
sky
http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/views/sad_tab_view.cc File chrome/browser/ui/views/sad_tab_view.cc (right): http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/views/sad_tab_view.cc#newcode74 chrome/browser/ui/views/sad_tab_view.cc:74: message_->SizeToFit(static_cast<int>(width() * kMessageSize)); On 2011/09/01 16:27:42, msw wrote: > ...
9 years, 3 months ago (2011-09-01 17:27:47 UTC) #19
msw
On 2011/09/01 17:27:47, sky wrote: > http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/views/sad_tab_view.cc > File chrome/browser/ui/views/sad_tab_view.cc (right): > > http://codereview.chromium.org/7610011/diff/40001/chrome/browser/ui/views/sad_tab_view.cc#newcode74 > ...
9 years, 3 months ago (2011-09-01 19:54:08 UTC) #20
sky
Stick with what you have. I'll take a look when I have some free time. ...
9 years, 3 months ago (2011-09-01 19:57:31 UTC) #21
commit-bot: I haz the power
9 years, 3 months ago (2011-09-02 16:01:40 UTC) #22
Can't process patch for file chrome/chrome_tests.gypi.
File's status is None, patchset upload is incomplete.

Powered by Google App Engine
This is Rietveld 408576698