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

Side by Side Diff: ash/system/tray/tray_bubble_view.h

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | ash/system/tray/tray_bubble_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_
6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_
7 7
8 #include "ash/wm/shelf_types.h" 8 #include "ash/wm/shelf_types.h"
9 #include "ui/aura/event_filter.h" 9 #include "ui/aura/event_filter.h"
10 #include "ui/views/bubble/bubble_delegate.h" 10 #include "ui/views/bubble/bubble_delegate.h"
11 11
12 namespace aura { 12 namespace ui {
13 class LocatedEvent; 13 class LocatedEvent;
14 } 14 }
15 15
16 namespace views { 16 namespace views {
17 class View; 17 class View;
18 class Widget; 18 class Widget;
19 } 19 }
20 20
21 namespace ash { 21 namespace ash {
22 namespace internal { 22 namespace internal {
(...skipping 18 matching lines...) Expand all
41 TrayBubbleView* bubble_view, 41 TrayBubbleView* bubble_view,
42 views::View* tray_view); 42 views::View* tray_view);
43 43
44 virtual void BubbleViewDestroyed() = 0; 44 virtual void BubbleViewDestroyed() = 0;
45 virtual void OnMouseEnteredView() = 0; 45 virtual void OnMouseEnteredView() = 0;
46 virtual void OnMouseExitedView() = 0; 46 virtual void OnMouseExitedView() = 0;
47 virtual void OnClickedOutsideView() = 0; 47 virtual void OnClickedOutsideView() = 0;
48 48
49 // Overridden from aura::EventFilter. 49 // Overridden from aura::EventFilter.
50 virtual bool PreHandleKeyEvent(aura::Window* target, 50 virtual bool PreHandleKeyEvent(aura::Window* target,
51 aura::KeyEvent* event) OVERRIDE; 51 ui::KeyEvent* event) OVERRIDE;
52 virtual bool PreHandleMouseEvent(aura::Window* target, 52 virtual bool PreHandleMouseEvent(aura::Window* target,
53 aura::MouseEvent* event) OVERRIDE; 53 ui::MouseEvent* event) OVERRIDE;
54 virtual ui::TouchStatus PreHandleTouchEvent( 54 virtual ui::TouchStatus PreHandleTouchEvent(
55 aura::Window* target, 55 aura::Window* target,
56 aura::TouchEvent* event) OVERRIDE; 56 ui::TouchEventImpl* event) OVERRIDE;
57 virtual ui::GestureStatus PreHandleGestureEvent( 57 virtual ui::GestureStatus PreHandleGestureEvent(
58 aura::Window* target, 58 aura::Window* target,
59 aura::GestureEvent* event) OVERRIDE; 59 ui::GestureEventImpl* event) OVERRIDE;
60 60
61 private: 61 private:
62 void ProcessLocatedEvent(const aura::LocatedEvent& event); 62 void ProcessLocatedEvent(const ui::LocatedEvent& event);
63 63
64 views::Widget* widget_; 64 views::Widget* widget_;
65 views::View* tray_view_; 65 views::View* tray_view_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(Host); 67 DISALLOW_COPY_AND_ASSIGN(Host);
68 }; 68 };
69 69
70 struct InitParams { 70 struct InitParams {
71 static const int kArrowDefaultOffset; 71 static const int kArrowDefaultOffset;
72 72
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 InitParams params_; 131 InitParams params_;
132 Host* host_; 132 Host* host_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); 134 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView);
135 }; 135 };
136 136
137 } // namespace internal 137 } // namespace internal
138 } // namespace ash 138 } // namespace ash
139 139
140 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_ 140 #endif // ASH_SYSTEM_TRAY_TRAY_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | ash/system/tray/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698