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

Issue 1164004: Add KEEP_SIZE state to notification panel and fixed misc bugs. (Closed)

Created:
10 years, 9 months ago by oshima
Modified:
9 years, 6 months ago
Reviewers:
Sean Parent
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add KEEP_SIZE state to panel and fixed misc bugs. * Replaced "closed_by_user, update_pane_on_leave_" flags with KEEP_SIZE state. The panel moves to this state when a user interacts with the panel. It keeps its size unless a notification is added, or removed, or it has more space than neccessary when mouse leaves the panel. * Fixed the crash when the preferred size is calculated to zero (can happen depending on timing) by adding minimum size. * fixed wrong return type (bool -> int) * GetNewBounds was using the panel's bounds instead of notification's bounds. * Refactored and clean up in tests.. BUG=33306 TEST=added two more browser tests for state transition. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42282

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -128 lines) Patch
M chrome/browser/chromeos/notifications/balloon_view.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/notifications/balloon_view.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/notifications/notification_browsertest.cc View 3 chunks +97 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/notifications/notification_panel.h View 1 2 5 chunks +61 lines, -42 lines 0 comments Download
M chrome/browser/chromeos/notifications/notification_panel.cc View 1 2 17 chunks +72 lines, -63 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
oshima
10 years, 9 months ago (2010-03-22 22:53:12 UTC) #1
Sean Parent
10 years, 9 months ago (2010-03-22 23:08:58 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698