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

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

Issue 1880853002: Convert ValidationMessageBubbleView to BubbleDialogDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: msw review Created 4 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/validation_message_bubble_cocoa.h
diff --git a/chrome/browser/ui/cocoa/validation_message_bubble_cocoa.h b/chrome/browser/ui/cocoa/validation_message_bubble_cocoa.h
index 3defb6793b8bc5ae4f70b7fbcea433b0e324cafe..1357fd0e777bbd9ad6b48cbdbafd2a6ac73802d3 100644
--- a/chrome/browser/ui/cocoa/validation_message_bubble_cocoa.h
+++ b/chrome/browser/ui/cocoa/validation_message_bubble_cocoa.h
@@ -7,6 +7,7 @@
#include "base/mac/scoped_nsobject.h"
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/validation_message_bubble.h"
@class ValidationMessageBubbleController;
@@ -15,7 +16,9 @@ namespace content {
class WebContents;
}
-class ValidationMessageBubbleCocoa : public ValidationMessageBubble {
+class ValidationMessageBubbleCocoa
+ : public ValidationMessageBubble,
+ public base::SupportsWeakPtr<ValidationMessageBubbleCocoa> {
public:
ValidationMessageBubbleCocoa(content::WebContents* web_contents,
const gfx::Rect& anchor_in_root_view,
@@ -27,6 +30,7 @@ class ValidationMessageBubbleCocoa : public ValidationMessageBubble {
void SetPositionRelativeToAnchor(
content::RenderWidgetHost* widget_host,
const gfx::Rect& anchor_in_root_view) override;
+ void CloseValidationMessage() override;
private:
base::scoped_nsobject<ValidationMessageBubbleController> controller_;
« no previous file with comments | « chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm ('k') | chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698