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

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

Issue 2884683003: mash: Remove WmWindow usage from ash/system/web_notification (Closed)
Patch Set: curlies Created 3 years, 7 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
« no previous file with comments | « ash/system/web_notification/web_notification_tray_unittest.cc ('k') | no next file » | 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // the user to enter the view. 56 // the user to enter the view.
57 virtual void OnMouseEnteredView() = 0; 57 virtual void OnMouseEnteredView() = 0;
58 virtual void OnMouseExitedView() = 0; 58 virtual void OnMouseExitedView() = 0;
59 59
60 // Called from GetAccessibleNodeData(); should return the appropriate 60 // Called from GetAccessibleNodeData(); should return the appropriate
61 // accessible name for the bubble. 61 // accessible name for the bubble.
62 virtual base::string16 GetAccessibleNameForBubble() = 0; 62 virtual base::string16 GetAccessibleNameForBubble() = 0;
63 63
64 // Called before Widget::Init() on |bubble_widget|. Allows |params| to be 64 // Called before Widget::Init() on |bubble_widget|. Allows |params| to be
65 // modified. 65 // modified.
66 // TODO(jamescook): Eliminate this method. It was introduced to let mash set
67 // the widget container back when mash could not use aura::Window. Now the
68 // anchor view should be sufficient.
66 virtual void OnBeforeBubbleWidgetInit(Widget* anchor_widget, 69 virtual void OnBeforeBubbleWidgetInit(Widget* anchor_widget,
67 Widget* bubble_widget, 70 Widget* bubble_widget,
68 Widget::InitParams* params) const = 0; 71 Widget::InitParams* params) const = 0;
69 72
70 // Called when a bubble wants to hide/destroy itself (e.g. last visible 73 // Called when a bubble wants to hide/destroy itself (e.g. last visible
71 // child view was closed). 74 // child view was closed).
72 virtual void HideBubble(const TrayBubbleView* bubble_view) = 0; 75 virtual void HideBubble(const TrayBubbleView* bubble_view) = 0;
73 76
74 private: 77 private:
75 DISALLOW_COPY_AND_ASSIGN(Delegate); 78 DISALLOW_COPY_AND_ASSIGN(Delegate);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 182
180 // Used to find any mouse movements. 183 // Used to find any mouse movements.
181 std::unique_ptr<MouseWatcher> mouse_watcher_; 184 std::unique_ptr<MouseWatcher> mouse_watcher_;
182 185
183 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); 186 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView);
184 }; 187 };
185 188
186 } // namespace views 189 } // namespace views
187 190
188 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 191 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/web_notification/web_notification_tray_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698