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 8423035: Split out fullscreen logic from Browser into FullscreenController. (Closed)

Created:
9 years, 1 month ago by koz (OOO until 15th September)
Modified:
9 years ago
Reviewers:
yzshen1, Peter Kasting, sky
CC:
chromium-reviews, jeremya, tfarina
Visibility:
Public.

Description

Split out fullscreen logic from Browser into FullscreenController. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110886

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 71

Patch Set 3 : respond to comments #

Patch Set 4 : replace reset() with #

Total comments: 10

Patch Set 5 : respond to comments #

Patch Set 6 : rebase #

Patch Set 7 : fix compile #

Total comments: 2

Patch Set 8 : fix browsertest #

Patch Set 9 : respond to comments #

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -333 lines) Patch
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 10 10 chunks +6 lines, -51 lines 2 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +24 lines, -276 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/fullscreen_controller.h View 1 2 3 4 5 6 7 1 chunk +104 lines, -0 lines 1 comment Download
A chrome/browser/ui/fullscreen_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +347 lines, -0 lines 4 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
koz (OOO until 15th September)
My approach here has been to lift all the relevant functions out of Browser into ...
9 years, 1 month ago (2011-11-03 05:53:37 UTC) #1
Peter Kasting
There are a number of forwarding-style functions in the Browser. Would it make sense to ...
9 years, 1 month ago (2011-11-03 18:24:56 UTC) #2
tfarina
http://codereview.chromium.org/8423035/diff/2001/chrome/browser/ui/browser.h File chrome/browser/ui/browser.h (right): http://codereview.chromium.org/8423035/diff/2001/chrome/browser/ui/browser.h#newcode1412 chrome/browser/ui/browser.h:1412: FullscreenController* fullscreen_controller_; Aren't we leaking this? Could you use ...
9 years, 1 month ago (2011-11-04 01:09:31 UTC) #3
yzshen1
http://codereview.chromium.org/8423035/diff/2001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/8423035/diff/2001/chrome/browser/ui/browser.cc#newcode150 chrome/browser/ui/browser.cc:150: #include "content/browser/tab_contents/navigation_details.h" Why this is needed? http://codereview.chromium.org/8423035/diff/2001/chrome/browser/ui/browser.cc#newcode406 chrome/browser/ui/browser.cc:406: bool ...
9 years, 1 month ago (2011-11-04 01:56:32 UTC) #4
koz (OOO until 15th September)
Thanks for the comments, all. Peter, I think it may make sense to try and ...
9 years, 1 month ago (2011-11-06 23:30:20 UTC) #5
tfarina
http://codereview.chromium.org/8423035/diff/11001/chrome/browser/ui/fullscreen_controller.h File chrome/browser/ui/fullscreen_controller.h (right): http://codereview.chromium.org/8423035/diff/11001/chrome/browser/ui/fullscreen_controller.h#newcode11 chrome/browser/ui/fullscreen_controller.h:11: #include "chrome/common/content_settings.h" Can you forward declare this too? http://codereview.chromium.org/8423035/diff/11001/chrome/browser/ui/fullscreen_controller.h#newcode12 ...
9 years, 1 month ago (2011-11-06 23:36:17 UTC) #6
koz (OOO until 15th September)
Thanks for the quick review, Thiago. http://codereview.chromium.org/8423035/diff/11001/chrome/browser/ui/fullscreen_controller.h File chrome/browser/ui/fullscreen_controller.h (right): http://codereview.chromium.org/8423035/diff/11001/chrome/browser/ui/fullscreen_controller.h#newcode11 chrome/browser/ui/fullscreen_controller.h:11: #include "chrome/common/content_settings.h" On ...
9 years, 1 month ago (2011-11-06 23:50:24 UTC) #7
yzshen1
http://codereview.chromium.org/8423035/diff/2001/chrome/browser/ui/browser.h File chrome/browser/ui/browser.h (right): http://codereview.chromium.org/8423035/diff/2001/chrome/browser/ui/browser.h#newcode834 chrome/browser/ui/browser.h:834: void OnAcceptFullscreenPermission(const GURL& url, Okay. On 2011/11/06 23:30:20, koz ...
9 years, 1 month ago (2011-11-08 00:55:41 UTC) #8
koz (OOO until 15th September)
http://codereview.chromium.org/8423035/diff/14008/chrome/browser/ui/fullscreen_controller.cc File chrome/browser/ui/fullscreen_controller.cc (right): http://codereview.chromium.org/8423035/diff/14008/chrome/browser/ui/fullscreen_controller.cc#newcode316 chrome/browser/ui/fullscreen_controller.cc:316: DCHECK_NE(MOUSELOCK_NOT_REQUESTED, mouse_lock_state_); On 2011/11/08 00:55:41, yzshen1 wrote: > This ...
9 years, 1 month ago (2011-11-08 03:16:37 UTC) #9
yzshen1
lgtm
9 years, 1 month ago (2011-11-08 18:56:51 UTC) #10
koz (OOO until 15th September)
Peter, LGTY?
9 years, 1 month ago (2011-11-14 00:41:57 UTC) #11
Peter Kasting
I'm sorry I've not gotten to this. I was unexpectedly OOO several days last week ...
9 years, 1 month ago (2011-11-14 21:17:39 UTC) #12
koz (OOO until 15th September)
On 2011/11/14 21:17:39, Peter Kasting wrote: > I'm sorry I've not gotten to this. I ...
9 years, 1 month ago (2011-11-14 23:04:13 UTC) #13
koz (OOO until 15th September)
On 2011/11/14 23:04:13, koz wrote: > On 2011/11/14 21:17:39, Peter Kasting wrote: > > I'm ...
9 years, 1 month ago (2011-11-15 00:57:38 UTC) #14
Peter Kasting
On 2011/11/15 00:57:38, koz wrote: > Peter, as this change is holding up future work ...
9 years, 1 month ago (2011-11-15 00:59:59 UTC) #15
koz (OOO until 15th September)
On 2011/11/15 00:59:59, Peter Kasting wrote: > On 2011/11/15 00:57:38, koz wrote: > > Peter, ...
9 years, 1 month ago (2011-11-15 01:01:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/8423035/20009
9 years, 1 month ago (2011-11-21 00:49:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/8423035/32002
9 years, 1 month ago (2011-11-21 04:04:33 UTC) #18
commit-bot: I haz the power
Change committed as 110886
9 years, 1 month ago (2011-11-21 05:40:56 UTC) #19
Peter Kasting
Here's the belated followup review. http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/browser.h File chrome/browser/ui/browser.h (right): http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/browser.h#newcode841 chrome/browser/ui/browser.h:841: // TODO(koz): Remove this ...
9 years, 1 month ago (2011-11-21 19:17:45 UTC) #20
sky
http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/fullscreen_controller.cc File chrome/browser/ui/fullscreen_controller.cc (right): http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/fullscreen_controller.cc#newcode256 chrome/browser/ui/fullscreen_controller.cc:256: base::Bind(&FullscreenController::NotifyFullscreenChange, this)); I just came across this in tracking ...
9 years ago (2011-12-08 23:34:13 UTC) #21
koz (OOO until 15th September)
http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/fullscreen_controller.cc File chrome/browser/ui/fullscreen_controller.cc (right): http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/fullscreen_controller.cc#newcode256 chrome/browser/ui/fullscreen_controller.cc:256: base::Bind(&FullscreenController::NotifyFullscreenChange, this)); On 2011/12/08 23:34:13, sky wrote: > I ...
9 years ago (2011-12-08 23:45:38 UTC) #22
sky
On Thu, Dec 8, 2011 at 3:45 PM, <koz@chromium.org> wrote: > > http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/fullscreen_controller.cc > File ...
9 years ago (2011-12-08 23:51:07 UTC) #23
koz (OOO until 15th September)
9 years ago (2011-12-08 23:57:40 UTC) #24
Yep, it is always invoked. If Jeremy's looking at the fix then I'll leave
it to him.

James

On Thu, Dec 8, 2011 at 3:51 PM, Scott Violet <sky@chromium.org> wrote:

> On Thu, Dec 8, 2011 at 3:45 PM,  <koz@chromium.org> wrote:
> >
> >
>
http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/fullscree...
> > File chrome/browser/ui/fullscreen_controller.cc (right):
> >
> >
>
http://codereview.chromium.org/8423035/diff/32002/chrome/browser/ui/fullscree...
> > chrome/browser/ui/fullscreen_controller.cc:256:
> > base::Bind(&FullscreenController::NotifyFullscreenChange, this));
> > On 2011/12/08 23:34:13, sky wrote:
> >>
> >> I just came across this in tracking down a regression (105915). How
> >
> > come this
> >>
> >> notification is now async? I think this means we'll do a layout at
> >
> > fullscreen,
> >>
> >> then change things around when this is processed.
> >
> >
> > This notification has always been async (see the deleted lines in
> > browser.cc), but what has changed is that the calls to
> > UpdateCommandsForFullscreenMode() and UpdateBookmarkBarState() now
> > happen in response to this notification instead of synchronously.
>
> Yes, this is what I meant.
>
> > I didn't realise this would have that effect. If that is so we can move
> > those function calls into Browser::WindowFullscreenStateChanged().
>
> Yes, I think that would be better. Jeremy was looking at fixing 105915
> by making browser observe the notification. If
> Browser::WindowFullscreenStateChanged is always invoked, then we
> should move the call to update the bookmark state back to
> WindowFullScreenStateChanged. That way it won't be async.
>
>  -Scott
>

Powered by Google App Engine
This is Rietveld 408576698