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

Issue 10021029: Propagate OnNativeWidgetMove to delegate/observers, etc. (Closed)

Created:
8 years, 8 months ago by msw
Modified:
8 years, 8 months ago
CC:
chromium-reviews, msw+watch_chromium.org, alicet1, ben+watch_chromium.org, tfarina
Visibility:
Public.

Description

Propagate OnNativeWidgetMove to delegate/observers, etc. NativeWidget[Aura|Win] calls new Widget::OnNativeWidgetMove. Widgets alert delegates and new Widget::Observer::OnWidgetMove. TabDragController2: consume new observer method, simplify. Nix BrowserWindowMoveObserver; use Widget::Observer instead. Replace move_loop_browser_view_ with move_loop_widget. Replace GetAttachedBrowserView with GetAttachedBrowserWidget. BubbleDelegateView: consume new observer method. Make bubbles move with their anchor_view's Widgets. SchedulePaint on BubbleFrameView when mirroring its arrow. BUG=105151, 116336 TEST=Bubbles can move with the browser window (inspecting extension popups, etc.); no Ash / --enable-tab-browser-dragging regressions. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132956

Patch Set 1 : Propagate OnNativeWidgetMove to delegate/observers; bubbles observe. #

Patch Set 2 : Add/remove anchor observer OnWidgetVisibilityChanged; clear anchor_view_ OnWidgetClosing. #

Total comments: 2

Patch Set 3 : Use |move_loop_widget_| and GetAttachedBrowserView, etc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -87 lines) Patch
M chrome/browser/ui/views/frame/browser_view.h View 3 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_window_move_observer.h View 1 chunk +0 lines, -18 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller2.h View 1 2 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller2.cc View 1 2 10 chunks +24 lines, -30 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/bubble/bubble_delegate.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_delegate.cc View 1 2 chunks +26 lines, -10 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/native_widget_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_win.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M ui/views/widget/widget.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
msw
Ben and Scott, please take a look; thanks!
8 years, 8 months ago (2012-04-18 01:36:39 UTC) #1
Ben Goodger (Google)
https://chromiumcodereview.appspot.com/10021029/diff/7001/chrome/browser/ui/views/tabs/tab_drag_controller2.cc File chrome/browser/ui/views/tabs/tab_drag_controller2.cc (right): https://chromiumcodereview.appspot.com/10021029/diff/7001/chrome/browser/ui/views/tabs/tab_drag_controller2.cc#newcode605 chrome/browser/ui/views/tabs/tab_drag_controller2.cc:605: move_loop_browser_view_->GetWidget()->RemoveObserver(this); Now that the only usage of |move_loop_browser_view_| is ...
8 years, 8 months ago (2012-04-18 15:56:48 UTC) #2
msw
I also replaced GetAttachedBrowserView with GetAttachedBrowserWidget to simplify the code a bit. I found an ...
8 years, 8 months ago (2012-04-18 20:02:48 UTC) #3
Ben Goodger (Google)
lgtm
8 years, 8 months ago (2012-04-18 20:20:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10021029/1018
8 years, 8 months ago (2012-04-18 22:22:30 UTC) #5
commit-bot: I haz the power
Try job failure for 10021029-1018 (retry) on win_rel for step "net_unittests" (clobber build). It's a ...
8 years, 8 months ago (2012-04-19 02:06:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/10021029/1018
8 years, 8 months ago (2012-04-19 03:02:47 UTC) #7
commit-bot: I haz the power
8 years, 8 months ago (2012-04-19 05:39:39 UTC) #8
Change committed as 132956

Powered by Google App Engine
This is Rietveld 408576698