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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 virtual views::NonClientFrameView* CreateNonClientFrameView( | 151 virtual views::NonClientFrameView* CreateNonClientFrameView( |
152 views::Widget* widget) OVERRIDE; | 152 views::Widget* widget) OVERRIDE; |
153 virtual bool WidgetHasHitTestMask() const OVERRIDE; | 153 virtual bool WidgetHasHitTestMask() const OVERRIDE; |
154 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; | 154 virtual void GetWidgetHitTestMask(gfx::Path* mask) const OVERRIDE; |
155 | 155 |
156 // Overridden from views::BubbleDelegateView. | 156 // Overridden from views::BubbleDelegateView. |
157 virtual gfx::Rect GetAnchorRect() const OVERRIDE; | 157 virtual gfx::Rect GetAnchorRect() const OVERRIDE; |
158 | 158 |
159 // Overridden from views::View. | 159 // Overridden from views::View. |
160 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 160 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
161 virtual gfx::Size GetMaximumSize() OVERRIDE; | 161 virtual gfx::Size GetMaximumSize() const OVERRIDE; |
162 virtual int GetHeightForWidth(int width) const OVERRIDE; | 162 virtual int GetHeightForWidth(int width) const OVERRIDE; |
163 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 163 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
164 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 164 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
165 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 165 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; |
166 | 166 |
167 // Overridden from MouseWatcherListener | 167 // Overridden from MouseWatcherListener |
168 virtual void MouseMovedOutOfHost() OVERRIDE; | 168 virtual void MouseMovedOutOfHost() OVERRIDE; |
169 | 169 |
170 protected: | 170 protected: |
171 TrayBubbleView(gfx::NativeView parent_window, | 171 TrayBubbleView(gfx::NativeView parent_window, |
(...skipping 23 matching lines...) Expand all Loading... |
195 | 195 |
196 // Used to find any mouse movements. | 196 // Used to find any mouse movements. |
197 scoped_ptr<MouseWatcher> mouse_watcher_; | 197 scoped_ptr<MouseWatcher> mouse_watcher_; |
198 | 198 |
199 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); | 199 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); |
200 }; | 200 }; |
201 | 201 |
202 } // namespace views | 202 } // namespace views |
203 | 203 |
204 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 204 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
OLD | NEW |