summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/balloon.cc
diff options
context:
space:
mode:
authorlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-20 23:07:03 +0000
committerlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-20 23:07:03 +0000
commit3060ce78db15f4a923d949ab5c1aaa5f75a1a066 (patch)
treefd5cc29e1927d7191448963099afce23ecc3f35d /chrome/browser/notifications/balloon.cc
parentd5e28a3e5402329a9f50075ed8d6417feeea7c71 (diff)
downloadchromium_src-3060ce78db15f4a923d949ab5c1aaa5f75a1a066.zip
chromium_src-3060ce78db15f4a923d949ab5c1aaa5f75a1a066.tar.gz
chromium_src-3060ce78db15f4a923d949ab5c1aaa5f75a1a066.tar.bz2
Move extension pop-ups and notifications to the new auto-resize code.
This should fix the "flicker" issues where autosize ends up flipping back and forth between two size in rapid succession. The change in render_widget_host is needed to avoid cases where the OnMsgUpdateRect happens while processing a resize message which may result in recursion back into the resize code which is undesirable. BUG=58816,56693 TEST=Try out auto resize in notifications and extensions. Best to do with windows that change size and hit the maximum as well as minimum sizes on the 3 desktop platforms for pop-ups. Review URL: http://codereview.chromium.org/9702068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/balloon.cc')
-rw-r--r--chrome/browser/notifications/balloon.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/notifications/balloon.cc b/chrome/browser/notifications/balloon.cc
index 4a2c0be..c0c2f4b2 100644
--- a/chrome/browser/notifications/balloon.cc
+++ b/chrome/browser/notifications/balloon.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -26,7 +26,7 @@ void Balloon::SetPosition(const gfx::Point& upper_left, bool reposition) {
balloon_view_->RepositionToBalloon();
}
-void Balloon::SetContentPreferredSize(const gfx::Size& size) {
+void Balloon::ResizeDueToAutoResize(const gfx::Size& size) {
collection_->ResizeBalloon(this, size);
}