Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/notifications/balloon_collection_impl.h" | 5 #include "chrome/browser/notifications/balloon_collection_impl.h" |
| 6 | 6 |
| 7 #include "chrome/browser/notifications/balloon.h" | 7 #include "chrome/browser/notifications/balloon.h" |
| 8 #include "chrome/browser/ui/views/notifications/balloon_view.h" | 8 #include "chrome/browser/ui/views/notifications/balloon_view.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 } | 26 } |
| 27 | 27 |
| 28 int BalloonCollectionImpl::Layout::VerticalEdgeMargin() const { | 28 int BalloonCollectionImpl::Layout::VerticalEdgeMargin() const { |
| 29 return 0; | 29 return 0; |
| 30 } | 30 } |
| 31 | 31 |
| 32 void BalloonCollectionImpl::PositionBalloons(bool reposition) { | 32 void BalloonCollectionImpl::PositionBalloons(bool reposition) { |
| 33 PositionBalloonsInternal(reposition); | 33 PositionBalloonsInternal(reposition); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void BalloonCollectionImpl::DidProcessMessage(const MSG& msg) { | 36 base::EventStatus BalloonCollectionImpl::WillProcessEvent(const MSG& event) { |
|
msw
2011/09/27 01:16:46
naming consistency between event here and msg belo
oshima
2011/09/27 02:12:12
Done.
| |
| 37 return base::EVENT_CONTINUE; | |
| 38 } | |
| 39 | |
| 40 void BalloonCollectionImpl::DidProcessEvent(const MSG& msg) { | |
| 37 switch (msg.message) { | 41 switch (msg.message) { |
| 38 case WM_MOUSEMOVE: | 42 case WM_MOUSEMOVE: |
| 39 case WM_MOUSELEAVE: | 43 case WM_MOUSELEAVE: |
| 40 case WM_NCMOUSELEAVE: | 44 case WM_NCMOUSELEAVE: |
| 41 HandleMouseMoveEvent(); | 45 HandleMouseMoveEvent(); |
| 42 break; | 46 break; |
| 43 } | 47 } |
| 44 } | 48 } |
| 45 | 49 |
| 46 bool BalloonCollectionImpl::IsCursorInBalloonCollection() const { | 50 bool BalloonCollectionImpl::IsCursorInBalloonCollection() const { |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 67 else | 71 else |
| 68 NOTREACHED(); | 72 NOTREACHED(); |
| 69 | 73 |
| 70 PositionBalloons(true); | 74 PositionBalloons(true); |
| 71 } | 75 } |
| 72 | 76 |
| 73 // static | 77 // static |
| 74 BalloonCollection* BalloonCollection::Create() { | 78 BalloonCollection* BalloonCollection::Create() { |
| 75 return new BalloonCollectionImpl(); | 79 return new BalloonCollectionImpl(); |
| 76 } | 80 } |
| OLD | NEW |