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

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

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (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/system/tray/tray_background_view.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"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Overridden from views::WidgetDelegate. 100 // Overridden from views::WidgetDelegate.
101 virtual bool CanActivate() const OVERRIDE; 101 virtual bool CanActivate() const OVERRIDE;
102 virtual views::NonClientFrameView* CreateNonClientFrameView( 102 virtual views::NonClientFrameView* CreateNonClientFrameView(
103 views::Widget* widget) OVERRIDE; 103 views::Widget* widget) OVERRIDE;
104 104
105 // Overridden from views::BubbleDelegateView. 105 // Overridden from views::BubbleDelegateView.
106 virtual gfx::Rect GetAnchorRect() OVERRIDE; 106 virtual gfx::Rect GetAnchorRect() OVERRIDE;
107 107
108 // Overridden from views::View. 108 // Overridden from views::View.
109 virtual gfx::Size GetPreferredSize() OVERRIDE; 109 virtual gfx::Size GetPreferredSize() OVERRIDE;
110 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; 110 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
111 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; 111 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
112 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 112 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
113 113
114 protected: 114 protected:
115 TrayBubbleView(const InitParams& init_params, 115 TrayBubbleView(const InitParams& init_params,
116 views::BubbleBorder::ArrowLocation arrow_location, 116 views::BubbleBorder::ArrowLocation arrow_location,
117 views::View* anchor, 117 views::View* anchor,
118 Host* host); 118 Host* host);
119 119
120 // Overridden from views::BubbleDelegateView. 120 // Overridden from views::BubbleDelegateView.
121 virtual void Init() OVERRIDE; 121 virtual void Init() OVERRIDE;
122 virtual gfx::Rect GetBubbleBounds() OVERRIDE; 122 virtual gfx::Rect GetBubbleBounds() OVERRIDE;
123 123
124 // Overridden from views::View. 124 // Overridden from views::View.
125 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; 125 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
126 virtual void ViewHierarchyChanged(bool is_add, 126 virtual void ViewHierarchyChanged(bool is_add,
127 views::View* parent, 127 views::View* parent,
128 views::View* child) OVERRIDE; 128 views::View* child) OVERRIDE;
129 129
130 private: 130 private:
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/system/tray/tray_background_view.cc ('k') | ash/system/tray/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698