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

Unified Diff: chrome/browser/ui/cocoa/base_bubble_controller.h

Issue 13160004: Re-implement form validation message UI with native widgets. (Common and Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/base_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/base_bubble_controller.h b/chrome/browser/ui/cocoa/base_bubble_controller.h
index 2da9428eeb3777bb0c4fe4ea94ccb6c58a04d1c9..b2c0e720470f2fb5357ba0404f2eaab3397cad98 100644
--- a/chrome/browser/ui/cocoa/base_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/base_bubble_controller.h
@@ -35,6 +35,9 @@ class TabStripModelObserverBridge;
id eventTap_;
// A notification observer that gets triggered when any window resigns key.
id resignationObserver_;
+ // The controlled window should be the key window when it's opened. True by
+ // default.
+ bool shouldOpenAsKeyWindow_;
}
@property(nonatomic, readonly) NSWindow* parentWindow;
@@ -42,6 +45,7 @@ class TabStripModelObserverBridge;
// arrow tip points.
@property(nonatomic, assign) NSPoint anchorPoint;
@property(nonatomic, readonly) InfoBubbleView* bubble;
+@property(nonatomic, assign) bool shouldOpenAsKeyWindow;
// Creates a bubble. |nibPath| is just the basename, e.g. @"FirstRunBubble".
// |anchoredAt| is in screen space. You need to call -showWindow: to make the
« no previous file with comments | « chrome/browser/ui/android/validation_message_bubble_android.cc ('k') | chrome/browser/ui/cocoa/base_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698