Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 | |
|
msw
2017/05/15 22:50:11
aside: oooh, that would be nice!
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |