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

Side by Side Diff: chrome/browser/notifications/balloon_collection_win.cc

Issue 8021009: Consolidate message observer API for win and aura (and touch). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698