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

Issue 1292353006: Mac Changes for BubbleManager (Closed)

Created:
5 years, 4 months ago by hcarmona
Modified:
5 years, 3 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka, markusheintz_, raymes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mcdb-mac-3.gitbr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac Changes for BubbleManager BUG=496955

Patch Set 1 #

Total comments: 8

Patch Set 2 : New upstream #

Messages

Total messages: 7 (2 generated)
hcarmona
Mac Changes (Not updated with yesterday's changes form msw@)
5 years, 4 months ago (2015-08-14 17:48:08 UTC) #2
hcarmona
On 2015/08/14 17:48:08, Hector Carmona wrote: > Mac Changes (Not updated with yesterday's changes form ...
5 years, 4 months ago (2015-08-14 17:49:12 UTC) #3
groby-ooo-7-16
Could you upload a CL that's based on the Views/PermissionBubble changes, just so they don't ...
5 years, 4 months ago (2015-08-14 18:15:14 UTC) #4
groby-ooo-7-16
And a few notes https://codereview.chromium.org/1292353006/diff/1/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): https://codereview.chromium.org/1292353006/diff/1/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode713 chrome/browser/ui/cocoa/browser_window_cocoa.mm:713: if (event.windowsKeyCode == ui::VKEY_ESCAPE) Ugh. ...
5 years, 4 months ago (2015-08-14 18:26:05 UTC) #5
hcarmona
5 years, 4 months ago (2015-08-18 02:22:21 UTC) #7
https://codereview.chromium.org/1292353006/diff/1/chrome/browser/ui/cocoa/bro...
File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right):

https://codereview.chromium.org/1292353006/diff/1/chrome/browser/ui/cocoa/bro...
chrome/browser/ui/cocoa/browser_window_cocoa.mm:713: if (event.windowsKeyCode ==
ui::VKEY_ESCAPE)
On 2015/08/14 18:26:04, groby wrote:
> Ugh. That's a big one. I'd rather we don't touch that for a moment. Can you
keep
> it dismissPermissionBubble and open a thread with egm/aisnlie where we discuss
> if we want that for all bubbles? 
> 
> (I.e. dismissing the bubble if you press ESC, even if it doesn't have focus)

Done.

https://codereview.chromium.org/1292353006/diff/1/chrome/browser/ui/cocoa/bro...
File chrome/browser/ui/cocoa/browser_window_controller.mm (right):

https://codereview.chromium.org/1292353006/diff/1/chrome/browser/ui/cocoa/bro...
chrome/browser/ui/cocoa/browser_window_controller.mm:1301:
manager->TabFocus(newContents);
On 2015/08/14 18:26:04, groby wrote:
> I believe we talked about having a manager per browser, instead of per
> browsercontext?
> 
> If that's the case, we could move this onto Browser::ActiveTabChanged and
handle
> this in a platform-neutral way.

Done. Moved to the browser and no longer part of the browser window.

https://codereview.chromium.org/1292353006/diff/1/chrome/browser/ui/cocoa/bro...
File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right):

https://codereview.chromium.org/1292353006/diff/1/chrome/browser/ui/cocoa/bro...
chrome/browser/ui/cocoa/browser_window_controller_private.mm:452: *
TODO(hcarmona): bring this back
On 2015/08/14 18:26:04, groby wrote:
> Well, that's kind of a huge part of the cocoa side :)
> 
> Also, ideally, that's handled in the bubble manager for all bubbles that
survive
> fullscreen mode.

Yes, it's a big part. How should we handle this? Currently, the bubble's
native view is exposed to this code. I'm not a big fan of that because
it's exposing implementation details about bubbles for this. I also
would like to avoid adding code to the bubble API that's just for cocoa,
but that may be unavoidable.

Powered by Google App Engine
This is Rietveld 408576698