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

Unified Diff: chrome/browser/ui/validation_message_bubble.h

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/validation_message_bubble.h
diff --git a/chrome/browser/ui/validation_message_bubble.h b/chrome/browser/ui/validation_message_bubble.h
index 237c7ff2ddde9f56e66ebd20622199ac8f43608d..82f7b3d89bee5697b28b65f522d823a581eb38bc 100644
--- a/chrome/browser/ui/validation_message_bubble.h
+++ b/chrome/browser/ui/validation_message_bubble.h
@@ -24,12 +24,19 @@ class ValidationMessageBubble {
// should not change focus state.
static scoped_ptr<ValidationMessageBubble> CreateAndShow(
content::RenderWidgetHost* widget_host,
- const gfx::Rect& anchor_in_screen,
+ const gfx::Rect& anchor_in_root_view,
const string16& main_text,
const string16& sub_text);
// Close the window and destruct the object.
virtual ~ValidationMessageBubble() {}
+
+ // Move the window to a position such that the bubble arrow points to the
+ // specified anchor. |anchor_in_root_view| is in DIP unit, and relative to
+ // RWHV for |widget_host|.
+ virtual void SetPositionRelativeToAnchor(
+ content::RenderWidgetHost* widget_host,
+ const gfx::Rect& anchor_in_root_view) = 0;
};
} // namespace chrome
« no previous file with comments | « chrome/browser/ui/gtk/validation_message_bubble_gtk.cc ('k') | chrome/browser/ui/views/validation_message_bubble_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698