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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm

Issue 925583004: Mac: Fix incorrect tab dragging window drawing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ThreePartImage
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/background_gradient_view.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
index 70cfeccf42eb366945df7ce8ae5a06c7d293cfd1..2dd4798ca2cc2787c282291401c3df2f506d4a42 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
@@ -416,6 +416,16 @@ BookmarkButton* gDraggedButton = nil; // Weak
[super drawRect:rect];
}
+- (void)viewDidMoveToWindow {
+ [super viewDidMoveToWindow];
+ if ([self window]) {
+ // The new window may have different main window status.
+ // This happens when the view is moved into a TabWindowOverlayWindow for
+ // tab dragging.
+ [self windowDidChangeActive];
+ }
+}
+
// ThemedWindowDrawing implementation.
- (void)windowDidChangeTheme {
« no previous file with comments | « chrome/browser/ui/cocoa/background_gradient_view.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698