| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 virtual bool CanActivate() const OVERRIDE; | 149 virtual bool CanActivate() const OVERRIDE; |
| 150 virtual views::NonClientFrameView* CreateNonClientFrameView( | 150 virtual views::NonClientFrameView* CreateNonClientFrameView( |
| 151 views::Widget* widget) OVERRIDE; | 151 views::Widget* widget) OVERRIDE; |
| 152 virtual bool WidgetHasHitTestMask() const OVERRIDE; | 152 virtual bool WidgetHasHitTestMask() const OVERRIDE; |
| 153 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; | 153 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 154 | 154 |
| 155 // Overridden from views::BubbleDelegateView. | 155 // Overridden from views::BubbleDelegateView. |
| 156 virtual gfx::Rect GetAnchorRect() OVERRIDE; | 156 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
| 157 | 157 |
| 158 // Overridden from views::View. | 158 // Overridden from views::View. |
| 159 virtual gfx::Size GetPreferredSize() OVERRIDE; | 159 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 160 virtual gfx::Size GetMaximumSize() OVERRIDE; | 160 virtual gfx::Size GetMaximumSize() OVERRIDE; |
| 161 virtual int GetHeightForWidth(int width) OVERRIDE; | 161 virtual int GetHeightForWidth(int width) const OVERRIDE; |
| 162 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 162 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
| 163 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 163 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 164 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 164 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; |
| 165 | 165 |
| 166 // Overridden from MouseWatcherListener | 166 // Overridden from MouseWatcherListener |
| 167 virtual void MouseMovedOutOfHost() OVERRIDE; | 167 virtual void MouseMovedOutOfHost() OVERRIDE; |
| 168 | 168 |
| 169 protected: | 169 protected: |
| 170 TrayBubbleView(gfx::NativeView parent_window, | 170 TrayBubbleView(gfx::NativeView parent_window, |
| 171 views::View* anchor, | 171 views::View* anchor, |
| (...skipping 22 matching lines...) Expand all 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 |