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

Unified Diff: chrome/browser/ui/views/validation_message_bubble_delegate.cc

Issue 16583005: Some improvement of validation message bubble UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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/views/validation_message_bubble_delegate.cc
diff --git a/chrome/browser/ui/views/validation_message_bubble_delegate.cc b/chrome/browser/ui/views/validation_message_bubble_delegate.cc
index a1b65f4d5c9a525a3df78b13b0d1a0673ac3eec8..ae4139fad1b0bcd434c4cbf05e0deeec75241d71 100644
--- a/chrome/browser/ui/views/validation_message_bubble_delegate.cc
+++ b/chrome/browser/ui/views/validation_message_bubble_delegate.cc
@@ -79,11 +79,17 @@ ValidationMessageBubbleDelegate::ValidationMessageBubbleDelegate(
ValidationMessageBubbleDelegate::~ValidationMessageBubbleDelegate() {}
-void ValidationMessageBubbleDelegate::Hide() {
- GetWidget()->Hide();
+void ValidationMessageBubbleDelegate::Close() {
+ GetWidget()->Close();
observer_ = NULL;
}
+void ValidationMessageBubbleDelegate::SetPositionRelativeToAnchor(
+ const gfx::Rect& anchor_in_screen) {
+ set_anchor_rect(anchor_in_screen);
+ GetWidget()->SetBounds(GetBubbleBounds());
+}
+
gfx::Size ValidationMessageBubbleDelegate::GetPreferredSize() {
return gfx::Size(width_, height_);
}

Powered by Google App Engine
This is Rietveld 408576698