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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h

Issue 84343002: [rAC, OSX] Use a bubble for tooltips. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: It slices! It dices! And now even WITH TESTS! Created 7 years, 1 month 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/autofill/autofill_tooltip_controller.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h b/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..66f1e1ddf5dddcbd0978b5412d3f4c6d07488900
--- /dev/null
+++ b/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h
@@ -0,0 +1,37 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_
+#define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/mac/scoped_nsobject.h"
+
+@class AutofillTooltip;
+@class AutofillBubbleController;
Robert Sesek 2013/12/02 17:16:53 nit: alphabetize
groby-ooo-7-16 2013/12/02 20:41:57 Done.
+
+@protocol AutofillTooltipDelegate
+- (void)didBeginHover;
+- (void)didEndHover;
+@end
+
+// Controller for the Tooltip view, which handles displaying/hiding the
+// tooltip bubble on hover.
+@interface AutofillTooltipController
+ : NSViewController<AutofillTooltipDelegate> {
Robert Sesek 2013/12/02 17:16:53 @private
groby-ooo-7-16 2013/12/02 20:41:57 Done.
+ base::scoped_nsobject<AutofillTooltip> view_;
+ AutofillBubbleController* bubbleController_;
+ NSString* message_;
+}
+
+// |message| to display in the tooltip.
+@property(nonatomic, copy) NSString* message;
Robert Sesek 2013/12/02 17:16:53 copy, nonatomic
groby-ooo-7-16 2013/12/02 20:41:57 Done.
+
+- (id)init;
+- (void)setImage:(NSImage*)image;
+
+@end;
+
+#endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698