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

Issue 8368016: Rebase BookmarkBubble on the new views bubble. (Closed)

Created:
9 years, 2 months ago by msw
Modified:
9 years, 1 month ago
CC:
chromium-reviews, jennyz
Visibility:
Public.

Description

Rebase BookmarkBubble on the new views bubble. Use a View instead of a Point for anchoring the bubble. Remove the now unused IDS_BOOKMARK_BUBBLE_ADD_BOOKMARK. Remove the unused BubbleDelegate base class from StarView. BUG=97248, 98312, 98323 TEST=Bookmark bubble has the same behavior/appearance. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109688

Patch Set 1 : Rebase on native bubble update. #

Patch Set 2 : Matching appearance and functionality; sync and merge. #

Patch Set 3 : Sync and merge with padding update. #

Patch Set 4 : Fix widget sizing issue. #

Total comments: 4

Patch Set 5 : Add Textfield::[set_]select_all_on_focus, use GetInitiallyFocusedView. #

Total comments: 2

Patch Set 6 : Anchor by View instead of Point, tweak select_on_focus, add TextfieldTest. #

Total comments: 2

Patch Set 7 : Only SelectAll on the title textfield when the buble is first shown. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -290 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/setting_level_bubble.cc View 1 2 3 4 5 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h View 1 2 3 4 5 5 chunks +18 lines, -41 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 5 6 13 chunks +74 lines, -152 lines 0 comments Download
M chrome/browser/ui/views/browser_dialogs.h View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/critical_notification_bubble_view.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/critical_notification_bubble_view.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 2 chunks +2 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.h View 1 2 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M ui/aura_shell/examples/bubble.cc View 1 2 3 4 5 2 chunks +6 lines, -7 lines 0 comments Download
M ui/aura_shell/examples/example_factory.h View 1 2 3 4 5 2 chunks +2 lines, -7 lines 0 comments Download
M ui/aura_shell/examples/window_type_launcher.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M views/bubble/bubble_delegate.h View 1 2 3 4 5 3 chunks +6 lines, -5 lines 0 comments Download
M views/bubble/bubble_delegate.cc View 1 2 3 4 5 4 chunks +24 lines, -6 lines 0 comments Download
M views/bubble/bubble_delegate_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M views/bubble/bubble_frame_view_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M views/examples/bubble_example.cc View 1 2 3 4 5 3 chunks +12 lines, -16 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
msw
Woohoo! The bookmark bubble is ready! PTAL; thanks!
9 years, 1 month ago (2011-11-08 23:24:04 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/8368016/diff/27001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): http://codereview.chromium.org/8368016/diff/27001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode96 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:96: bookmark_bubble_->title_tf_->RequestFocus(); Can the title_tf_ be the InitiallyFocusedView instead? http://codereview.chromium.org/8368016/diff/27001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode97 ...
9 years, 1 month ago (2011-11-08 23:58:10 UTC) #2
msw
Done, PTAL; thanks! TODO(in another CL): Omnibox use of select_all_on_focus. http://codereview.chromium.org/8368016/diff/27001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): http://codereview.chromium.org/8368016/diff/27001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode96 ...
9 years, 1 month ago (2011-11-09 01:47:05 UTC) #3
Ben Goodger (Google)
General comment... seeing all this positioning logic showing up.. makes me wonder if the show ...
9 years, 1 month ago (2011-11-09 17:11:08 UTC) #4
msw
Done. PTAL; thanks! Anchoring on a view and allowing bubbles to override GetAnchorPoint looks good; ...
9 years, 1 month ago (2011-11-10 06:12:03 UTC) #5
jennyz
http://codereview.chromium.org/8368016/diff/34002/views/controls/textfield/textfield.cc File views/controls/textfield/textfield.cc (right): http://codereview.chromium.org/8368016/diff/34002/views/controls/textfield/textfield.cc#newcode396 views/controls/textfield/textfield.cc:396: ClearSelection(); I still concern this may affect the NativeTextfieldViews::OnMousePressed()/OnMouseRelease() ...
9 years, 1 month ago (2011-11-10 18:08:33 UTC) #6
jennyz
http://codereview.chromium.org/8368016/diff/34002/views/controls/textfield/textfield.cc File views/controls/textfield/textfield.cc (right): http://codereview.chromium.org/8368016/diff/34002/views/controls/textfield/textfield.cc#newcode396 views/controls/textfield/textfield.cc:396: ClearSelection(); Sorry I missed some detail in previous comment. ...
9 years, 1 month ago (2011-11-10 18:27:06 UTC) #7
msw
I'm backing off on the textfield change. Currently the bookmark bubble only select the entire ...
9 years, 1 month ago (2011-11-10 20:35:25 UTC) #8
msw
Ben, PTAL as you have time; thanks!
9 years, 1 month ago (2011-11-11 00:41:23 UTC) #9
Ben Goodger (Google)
lgtm fair nuff
9 years, 1 month ago (2011-11-11 16:54:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/8368016/39002
9 years, 1 month ago (2011-11-11 19:00:05 UTC) #11
commit-bot: I haz the power
9 years, 1 month ago (2011-11-11 20:43:18 UTC) #12
Change committed as 109688

Powered by Google App Engine
This is Rietveld 408576698