| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/views/bubble/bubble_delegate.h" | 9 #include "ui/views/bubble/bubble_delegate.h" |
| 10 #include "ui/views/mouse_watcher.h" | 10 #include "ui/views/mouse_watcher.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void BubbleViewDestroyed() = 0; | 64 virtual void BubbleViewDestroyed() = 0; |
| 65 | 65 |
| 66 // Called when the mouse enters/exits the view. | 66 // Called when the mouse enters/exits the view. |
| 67 // Note: This event will only be called if the mouse gets actively moved by | 67 // Note: This event will only be called if the mouse gets actively moved by |
| 68 // the user to enter the view. | 68 // the user to enter the view. |
| 69 virtual void OnMouseEnteredView() = 0; | 69 virtual void OnMouseEnteredView() = 0; |
| 70 virtual void OnMouseExitedView() = 0; | 70 virtual void OnMouseExitedView() = 0; |
| 71 | 71 |
| 72 // Called from GetAccessibleState(); should return the appropriate | 72 // Called from GetAccessibleState(); should return the appropriate |
| 73 // accessible name for the bubble. | 73 // accessible name for the bubble. |
| 74 virtual string16 GetAccessibleNameForBubble() = 0; | 74 virtual base::string16 GetAccessibleNameForBubble() = 0; |
| 75 | 75 |
| 76 // Passes responsibility for BubbleDelegateView::GetAnchorRect to the | 76 // Passes responsibility for BubbleDelegateView::GetAnchorRect to the |
| 77 // delegate. | 77 // delegate. |
| 78 virtual gfx::Rect GetAnchorRect(views::Widget* anchor_widget, | 78 virtual gfx::Rect GetAnchorRect(views::Widget* anchor_widget, |
| 79 AnchorType anchor_type, | 79 AnchorType anchor_type, |
| 80 AnchorAlignment anchor_alignment) = 0; | 80 AnchorAlignment anchor_alignment) = 0; |
| 81 | 81 |
| 82 // Called when a bubble wants to hide/destroy itself (e.g. last visible | 82 // Called when a bubble wants to hide/destroy itself (e.g. last visible |
| 83 // child view was closed). | 83 // child view was closed). |
| 84 virtual void HideBubble(const TrayBubbleView* bubble_view) = 0; | 84 virtual void HideBubble(const TrayBubbleView* bubble_view) = 0; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 // Used to find any mouse movements. | 195 // Used to find any mouse movements. |
| 196 scoped_ptr<MouseWatcher> mouse_watcher_; | 196 scoped_ptr<MouseWatcher> mouse_watcher_; |
| 197 | 197 |
| 198 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); | 198 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 } // namespace views | 201 } // namespace views |
| 202 | 202 |
| 203 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 203 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
| OLD | NEW |