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

Issue 8604012: move chromeos bubble setup code to window.cc (Closed)

Created:
9 years, 1 month ago by alicet1
Modified:
9 years ago
CC:
chromium-reviews, msw+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, nkostylev (pls use chromium)
Visibility:
Public.

Description

move chromeos bubble setup code to window.cc, still under browser. This code is also in the original bubble code. BUG=98322 TEST=None

Patch Set 1 #

Total comments: 6

Patch Set 2 : update #

Total comments: 4

Patch Set 3 : move functionality of wm ipc out of browser so that views/bubble can use it. #

Total comments: 2

Patch Set 4 : for shared build #

Patch Set 5 : use chrome/browser/uil/views/window.cc #

Total comments: 7

Patch Set 6 : update #

Patch Set 7 : update. #

Total comments: 6

Patch Set 8 : update per comments. #

Patch Set 9 : merge and update #

Patch Set 10 : update #

Patch Set 11 : added change to avatar bubble. #

Patch Set 12 : update with content settings bubble also. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -27 lines) Patch
M chrome/browser/chromeos/setting_level_bubble.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -18 lines 0 comments Download
M chrome/browser/speech/speech_input_bubble_views.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/avatar_menu_button.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/first_run_bubble.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/global_error_bubble_view.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/page_info_bubble_view.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/window.h View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 2 comments Download
M chrome/browser/ui/views/window.cc View 1 2 3 4 5 6 7 8 9 2 chunks +35 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
alicet1
hey ben, I noticed the TODO(alicet) to move this code was removed from the setting_level_bubble.cc ...
9 years, 1 month ago (2011-11-20 04:15:57 UTC) #1
msw
Drive by; please set BUG=98322. http://codereview.chromium.org/8604012/diff/1/ui/views/bubble/bubble_delegate.cc File ui/views/bubble/bubble_delegate.cc (right): http://codereview.chromium.org/8604012/diff/1/ui/views/bubble/bubble_delegate.cc#newcode40 ui/views/bubble/bubble_delegate.cc:40: params.push_back(bubble->show_while_screen_is_locked()); Do we still ...
9 years, 1 month ago (2011-11-20 10:30:43 UTC) #2
alicet1
problem is, SetWindowType seems to be under chrome/browser/chromeos, so ui/views/bubble cannot depend on that. ben, ...
9 years, 1 month ago (2011-11-20 16:21:45 UTC) #3
Ben Goodger (Google)
The SetWindowType call is most likely essential to prevent regressions on existing Cros. derat can ...
9 years, 1 month ago (2011-11-21 16:53:37 UTC) #4
Daniel Erat
Yes, you need to set the window type regardless of whether the bubble should be ...
9 years, 1 month ago (2011-11-21 16:59:08 UTC) #5
alicet1
hi dan, updated with the wm_ipc methods move. I don't know where is a good ...
9 years, 1 month ago (2011-11-21 20:58:44 UTC) #6
Daniel Erat
Instead of moving a bunch of code around, could you add a virtual method to ...
9 years, 1 month ago (2011-11-21 21:15:57 UTC) #7
alicet1
updated after offline chat. msw: you should take a look also, I'll need to make ...
9 years, 1 month ago (2011-11-21 23:01:20 UTC) #8
Daniel Erat
http://codereview.chromium.org/8604012/diff/20007/chrome/browser/ui/views/window.cc File chrome/browser/ui/views/window.cc (right): http://codereview.chromium.org/8604012/diff/20007/chrome/browser/ui/views/window.cc#newcode30 chrome/browser/ui/views/window.cc:30: views::Widget* CreateViewsBubble(views::BubbleDelegateView* delegate) { nit: one space after return ...
9 years, 1 month ago (2011-11-21 23:10:50 UTC) #9
Ben Goodger (Google)
http://codereview.chromium.org/8604012/diff/20007/ui/views/bubble/bubble_delegate.h File ui/views/bubble/bubble_delegate.h (right): http://codereview.chromium.org/8604012/diff/20007/ui/views/bubble/bubble_delegate.h#newcode160 ui/views/bubble/bubble_delegate.h:160: bool show_while_screen_is_locked_; indeed... I think this should be hoisted ...
9 years, 1 month ago (2011-11-21 23:12:37 UTC) #10
alicet1
http://codereview.chromium.org/8604012/diff/20007/chrome/browser/ui/views/window.cc File chrome/browser/ui/views/window.cc (right): http://codereview.chromium.org/8604012/diff/20007/chrome/browser/ui/views/window.cc#newcode30 chrome/browser/ui/views/window.cc:30: views::Widget* CreateViewsBubble(views::BubbleDelegateView* delegate) { On 2011/11/21 23:10:50, Daniel Erat ...
9 years, 1 month ago (2011-11-22 00:23:53 UTC) #11
Daniel Erat
LGTM http://codereview.chromium.org/8604012/diff/20010/chrome/browser/ui/views/window.h File chrome/browser/ui/views/window.h (right): http://codereview.chromium.org/8604012/diff/20010/chrome/browser/ui/views/window.h#newcode33 chrome/browser/ui/views/window.h:33: views::Widget* CreateViewsBubbleScreenLocked( this name is a bit awkward. ...
9 years, 1 month ago (2011-11-22 00:31:35 UTC) #12
msw
I'm curious why this window type needs to be set; have we noticed regressions on ...
9 years, 1 month ago (2011-11-22 00:31:52 UTC) #13
Daniel Erat
http://codereview.chromium.org/8604012/diff/20010/chrome/browser/ui/views/window.h File chrome/browser/ui/views/window.h (right): http://codereview.chromium.org/8604012/diff/20010/chrome/browser/ui/views/window.h#newcode25 chrome/browser/ui/views/window.h:25: // chromeos, use views::BubbleDelgateView::CreateBubble() directly. s/Delgate/Delegate/
9 years, 1 month ago (2011-11-22 00:36:10 UTC) #14
alicet1
thanks! ben, can you take a look? thanx, alice http://codereview.chromium.org/8604012/diff/20010/chrome/browser/ui/views/window.h File chrome/browser/ui/views/window.h (right): http://codereview.chromium.org/8604012/diff/20010/chrome/browser/ui/views/window.h#newcode25 chrome/browser/ui/views/window.h:25: ...
9 years, 1 month ago (2011-11-22 00:56:58 UTC) #15
msw
This CL is deterministically failing two of linux_chromeos's browser_tests: 1) LoginUserTest.UserPassed with error: chrome/browser/chromeos/login/login_browsertest.cc:56: Failure ...
9 years, 1 month ago (2011-11-22 07:38:28 UTC) #16
msw
+nkostylev: Please see my last message about SetUpInProcessBrowserTestFixture.
9 years, 1 month ago (2011-11-22 07:39:56 UTC) #17
alicet1
I don't think the LoginUserTest and LoginProfileTest failures are related to this CL. note that ...
9 years, 1 month ago (2011-11-22 17:36:44 UTC) #18
msw
You're right, sorry for the confusion. Can you call browser::CreateViewsBubble for AvatarMenuBubbleView too? With that, ...
9 years, 1 month ago (2011-11-22 17:43:46 UTC) #19
alicet1
On 2011/11/22 17:43:46, msw wrote: > You're right, sorry for the confusion. > Can you ...
9 years, 1 month ago (2011-11-22 17:58:24 UTC) #20
Ben Goodger (Google)
http://codereview.chromium.org/8604012/diff/29010/chrome/browser/ui/views/window.h File chrome/browser/ui/views/window.h (right): http://codereview.chromium.org/8604012/diff/29010/chrome/browser/ui/views/window.h#newcode31 chrome/browser/ui/views/window.h:31: views::Widget* CreatePersistentViewsBubble( I don't like the use of "persistent" ...
9 years, 1 month ago (2011-11-22 20:29:02 UTC) #21
Ben Goodger (Google)
LGTM with the anme change.
9 years, 1 month ago (2011-11-22 20:31:08 UTC) #22
msw
9 years, 1 month ago (2011-11-22 20:51:15 UTC) #23
Alice left for vacation, I've made the rename at
http://codereview.chromium.org/8650001/

http://codereview.chromium.org/8604012/diff/29010/chrome/browser/ui/views/win...
File chrome/browser/ui/views/window.h (right):

http://codereview.chromium.org/8604012/diff/29010/chrome/browser/ui/views/win...
chrome/browser/ui/views/window.h:31: views::Widget* CreatePersistentViewsBubble(
On 2011/11/22 20:29:02, Ben Goodger (Google) wrote:
> I don't like the use of "persistent" here since it is so generic it could mean
> any number of things.
> 
> Instead, CreateViewsBubbleAboveLockScreen()

Done.

Powered by Google App Engine
This is Rietveld 408576698