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

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

Issue 49063012: [rAC, OSX] Use bubble windows for error messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix failing 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_error_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_error_bubble_controller.h b/chrome/browser/ui/cocoa/autofill/autofill_error_bubble_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..01ff12c926bd4e61923d07e0fd260997a57bba43
--- /dev/null
+++ b/chrome/browser/ui/cocoa/autofill/autofill_error_bubble_controller.h
@@ -0,0 +1,27 @@
+// Copyright (c) 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_ERROR_BUBBLE_CONTROLLER_H_
+#define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_ERROR_BUBBLE_CONTROLLER_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include "base/mac/scoped_nsobject.h"
+#import "chrome/browser/ui/cocoa/base_bubble_controller.h"
+
+// Bubble controller for field validation error bubbles.
+@interface AutofillErrorBubbleController : BaseBubbleController {
Robert Sesek 2013/11/06 23:06:03 @private
+ base::scoped_nsobject<NSTextField> label_;
+}
+
+// Creates an error bubble with the given |message|. You need to call
+// -showWindow: to make the bubble visible. It will autorelease itself when the
+// user dismisses the bubble.
+- (id)initWithParentWindow:(NSWindow*)parentWindow
+ message:(NSString*)message;
+
+@end
+
Robert Sesek 2013/11/06 23:06:03 nit: extra blank line
+
+#endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_ERROR_BUBBLE_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698