OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_TOUCH_STATUS_BUBBLE_TOUCH_H_ | 5 #ifndef CHROME_BROWSER_UI_TOUCH_STATUS_BUBBLE_TOUCH_H_ |
6 #define CHROME_BROWSER_UI_TOUCH_STATUS_BUBBLE_TOUCH_H_ | 6 #define CHROME_BROWSER_UI_TOUCH_STATUS_BUBBLE_TOUCH_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/views/status_bubble_views.h" | 9 #include "chrome/browser/ui/views/status_bubble_views.h" |
10 #include "views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
11 | 11 |
12 // The touch version of the status bubble. This repositions itself as the | 12 // The touch version of the status bubble. This repositions itself as the |
13 // keyboard slides up/down. | 13 // keyboard slides up/down. |
14 class StatusBubbleTouch : public StatusBubbleViews, | 14 class StatusBubbleTouch : public StatusBubbleViews, |
15 public views::Widget::Observer { | 15 public views::Widget::Observer { |
16 public: | 16 public: |
17 explicit StatusBubbleTouch(views::View* base_view); | 17 explicit StatusBubbleTouch(views::View* base_view); |
18 virtual ~StatusBubbleTouch(); | 18 virtual ~StatusBubbleTouch(); |
19 | 19 |
20 private: | 20 private: |
21 // Overridden from StatusBubbleViews. | 21 // Overridden from StatusBubbleViews. |
22 virtual void Reposition() OVERRIDE; | 22 virtual void Reposition() OVERRIDE; |
23 | 23 |
24 // Overridden from views::Widget::Observer. | 24 // Overridden from views::Widget::Observer. |
25 virtual void OnWidgetVisibilityChanged(views::Widget* widget, | 25 virtual void OnWidgetVisibilityChanged(views::Widget* widget, |
26 bool visible) OVERRIDE; | 26 bool visible) OVERRIDE; |
27 | 27 |
28 DISALLOW_COPY_AND_ASSIGN(StatusBubbleTouch); | 28 DISALLOW_COPY_AND_ASSIGN(StatusBubbleTouch); |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_UI_TOUCH_STATUS_BUBBLE_TOUCH_H_ | 31 #endif // CHROME_BROWSER_UI_TOUCH_STATUS_BUBBLE_TOUCH_H_ |
OLD | NEW |