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

Unified Diff: chrome/browser/ui/cocoa/history_overlay_controller.mm

Issue 16632009: Set AllowOverlappingViews for history overlay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 7 years, 6 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
Index: chrome/browser/ui/cocoa/history_overlay_controller.mm
diff --git a/chrome/browser/ui/cocoa/history_overlay_controller.mm b/chrome/browser/ui/cocoa/history_overlay_controller.mm
index 35e972ac1009c110013077038bdb2cf89cc834a2..f211afc3a40cc509550b5bdfd48350f47f15f9c2 100644
--- a/chrome/browser/ui/cocoa/history_overlay_controller.mm
+++ b/chrome/browser/ui/cocoa/history_overlay_controller.mm
@@ -5,6 +5,7 @@
#import "chrome/browser/ui/cocoa/history_overlay_controller.h"
#include "base/logging.h"
+#import "chrome/browser/ui/cocoa/browser_window_controller.h"
#include "grit/theme_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"
@@ -93,6 +94,8 @@ const CGFloat kGestureCompleteProgress = 0.3;
}
- (void)dealloc {
+ [[BrowserWindowController
+ browserWindowControllerForView:[self view]] onHistoryOverlayHidden];
[self.view removeFromSuperview];
[super dealloc];
}
@@ -150,6 +153,8 @@ const CGFloat kGestureCompleteProgress = 0.3;
[[parent_ superview] addSubview:self.view
positioned:NSWindowAbove
relativeTo:parent_];
+ [[BrowserWindowController
+ browserWindowControllerForView:[self view]] onHistoryOverlayShown];
}
- (void)dismiss {
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | content/browser/web_contents/web_contents_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698