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

Unified Diff: chrome/browser/ui/gtk/bubble/bubble_gtk.cc

Issue 16583005: Some improvement of validation message bubble UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/gtk/bubble/bubble_gtk.cc
diff --git a/chrome/browser/ui/gtk/bubble/bubble_gtk.cc b/chrome/browser/ui/gtk/bubble/bubble_gtk.cc
index eb9a040b0d9bcb2a6e0a48bed92865664c54d206..ffefdff95a7f510cc7fe98d697dc145bfe61e21c 100644
--- a/chrome/browser/ui/gtk/bubble/bubble_gtk.cc
+++ b/chrome/browser/ui/gtk/bubble/bubble_gtk.cc
@@ -557,6 +557,13 @@ void BubbleGtk::Close() {
// |this| has been deleted, see OnDestroy.
}
+void BubbleGtk::UpdateAnchorRect(const gfx::Rect* rect) {
+ rect_ = rect ? *rect : gtk_util::WidgetBounds(anchor_widget_);
+ if (!UpdateFrameStyle(false)) {
+ MoveWindow();
+ }
+}
+
void BubbleGtk::GrabPointerAndKeyboard() {
GdkWindow* gdk_window = gtk_widget_get_window(window_);

Powered by Google App Engine
This is Rietveld 408576698