diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 16:16:37 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 16:16:37 +0000 |
commit | e877a71ea620bdc0f887e77c31cd329fcb1d4e6f (patch) | |
tree | 84caba178f15d80faa031f141c9239e03edb69ec | |
parent | a1b38b3c984fdf39e37b3db74cf8a8fa7c9a1063 (diff) | |
download | chromium_src-e877a71ea620bdc0f887e77c31cd329fcb1d4e6f.zip chromium_src-e877a71ea620bdc0f887e77c31cd329fcb1d4e6f.tar.gz chromium_src-e877a71ea620bdc0f887e77c31cd329fcb1d4e6f.tar.bz2 |
Address review comments I missed.
TBR=oshima@chromium.org
R=oshima@chromium.org
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6905058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83165 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/chromeos/notifications/notification_panel.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/chromeos/notifications/notification_panel.cc b/chrome/browser/chromeos/notifications/notification_panel.cc index f404341..4711f6b 100644 --- a/chrome/browser/chromeos/notifications/notification_panel.cc +++ b/chrome/browser/chromeos/notifications/notification_panel.cc @@ -77,11 +77,11 @@ class ViewportWidget : public views::WidgetGtk { public: explicit ViewportWidget(chromeos::NotificationPanel* panel) : panel_(panel), - last_point_valid_(false) { + pointer_inside_panel_(false) { } void UpdateControl() { - if (last_point_valid_) + if (pointer_inside_panel_) panel_->OnMouseMotion(last_point_); } @@ -110,7 +110,7 @@ class ViewportWidget : public views::WidgetGtk { gfx::Rect panel_rect(event.location(), gfx::Size()); Widget::ConvertRect(this, top_level_widget, &panel_rect); last_point_ = panel_rect.origin(); - last_point_valid_ = true; + pointer_inside_panel_ = true; panel_->OnMouseMotion(last_point_); } @@ -121,14 +121,14 @@ class ViewportWidget : public views::WidgetGtk { if (!bounds.Contains(event.location().x() + bounds.x(), event.location().y() + bounds.y())) { panel_->OnMouseLeave(); - last_point_valid_ = false; + pointer_inside_panel_ = false; } } private: chromeos::NotificationPanel* panel_; gfx::Point last_point_; - bool last_point_valid_; + bool pointer_inside_panel_; DISALLOW_COPY_AND_ASSIGN(ViewportWidget); }; |