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

Side by Side Diff: ui/views/bubble/tray_bubble_view.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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
« no previous file with comments | « ui/views/bubble/bubble_dialog_delegate.cc ('k') | ui/views/bubble/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 UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 5 #ifndef UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 6 #define UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Called when the view is destroyed. Any pointers to the view should be 63 // Called when the view is destroyed. Any pointers to the view should be
64 // cleared when this gets called. 64 // cleared when this gets called.
65 virtual void BubbleViewDestroyed() = 0; 65 virtual void BubbleViewDestroyed() = 0;
66 66
67 // Called when the mouse enters/exits the view. 67 // Called when the mouse enters/exits the view.
68 // Note: This event will only be called if the mouse gets actively moved by 68 // Note: This event will only be called if the mouse gets actively moved by
69 // the user to enter the view. 69 // the user to enter the view.
70 virtual void OnMouseEnteredView() = 0; 70 virtual void OnMouseEnteredView() = 0;
71 virtual void OnMouseExitedView() = 0; 71 virtual void OnMouseExitedView() = 0;
72 72
73 // Called from GetAccessibleState(); should return the appropriate 73 // Called from GetAccessibleNodeData(); should return the appropriate
74 // accessible name for the bubble. 74 // accessible name for the bubble.
75 virtual base::string16 GetAccessibleNameForBubble() = 0; 75 virtual base::string16 GetAccessibleNameForBubble() = 0;
76 76
77 // Passes responsibility for BubbleDialogDelegateView::GetAnchorRect to the 77 // Passes responsibility for BubbleDialogDelegateView::GetAnchorRect to the
78 // delegate. 78 // delegate.
79 virtual gfx::Rect GetAnchorRect( 79 virtual gfx::Rect GetAnchorRect(
80 views::Widget* anchor_widget, 80 views::Widget* anchor_widget,
81 AnchorType anchor_type, 81 AnchorType anchor_type,
82 AnchorAlignment anchor_alignment) const = 0; 82 AnchorAlignment anchor_alignment) const = 0;
83 83
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 gfx::Rect GetAnchorRect() const override; 164 gfx::Rect GetAnchorRect() const override;
165 void OnBeforeBubbleWidgetInit(Widget::InitParams* params, 165 void OnBeforeBubbleWidgetInit(Widget::InitParams* params,
166 Widget* bubble_widget) const override; 166 Widget* bubble_widget) const override;
167 167
168 // Overridden from views::View. 168 // Overridden from views::View.
169 gfx::Size GetPreferredSize() const override; 169 gfx::Size GetPreferredSize() const override;
170 gfx::Size GetMaximumSize() const override; 170 gfx::Size GetMaximumSize() const override;
171 int GetHeightForWidth(int width) const override; 171 int GetHeightForWidth(int width) const override;
172 void OnMouseEntered(const ui::MouseEvent& event) override; 172 void OnMouseEntered(const ui::MouseEvent& event) override;
173 void OnMouseExited(const ui::MouseEvent& event) override; 173 void OnMouseExited(const ui::MouseEvent& event) override;
174 void GetAccessibleState(ui::AXViewState* state) override; 174 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
175 175
176 // Overridden from MouseWatcherListener 176 // Overridden from MouseWatcherListener
177 void MouseMovedOutOfHost() override; 177 void MouseMovedOutOfHost() override;
178 178
179 protected: 179 protected:
180 TrayBubbleView(views::View* anchor, 180 TrayBubbleView(views::View* anchor,
181 Delegate* delegate, 181 Delegate* delegate,
182 const InitParams& init_params); 182 const InitParams& init_params);
183 183
184 // Overridden from views::BubbleDialogDelegateView. 184 // Overridden from views::BubbleDialogDelegateView.
(...skipping 22 matching lines...) Expand all
207 207
208 // Used to find any mouse movements. 208 // Used to find any mouse movements.
209 std::unique_ptr<MouseWatcher> mouse_watcher_; 209 std::unique_ptr<MouseWatcher> mouse_watcher_;
210 210
211 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); 211 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView);
212 }; 212 };
213 213
214 } // namespace views 214 } // namespace views
215 215
216 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 216 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/bubble/bubble_dialog_delegate.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698