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 ASH_APP_LIST_APP_LIST_BUBBLE_BORDER_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_BUBBLE_BORDER_H_ |
6 #define ASH_APP_LIST_APP_LIST_BUBBLE_BORDER_H_ | 6 #define UI_APP_LIST_APP_LIST_BUBBLE_BORDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ui/views/bubble/bubble_border.h" | 10 #include "ui/views/bubble/bubble_border.h" |
11 | 11 |
12 namespace ash { | 12 namespace app_list { |
13 | 13 |
14 // A class to paint bubble border and background. | 14 // A class to paint bubble border and background. |
15 class AppListBubbleBorder : public views::BubbleBorder { | 15 class AppListBubbleBorder : public views::BubbleBorder { |
16 public: | 16 public: |
17 explicit AppListBubbleBorder(views::View* app_list_view); | 17 explicit AppListBubbleBorder(views::View* app_list_view); |
18 virtual ~AppListBubbleBorder(); | 18 virtual ~AppListBubbleBorder(); |
19 | 19 |
20 int arrow_offset() const { | 20 int arrow_offset() const { |
21 return arrow_offset_; | 21 return arrow_offset_; |
22 } | 22 } |
(...skipping 18 matching lines...) Expand all Loading... |
41 | 41 |
42 // AppListView hosted inside this bubble. | 42 // AppListView hosted inside this bubble. |
43 views::View* app_list_view_; | 43 views::View* app_list_view_; |
44 | 44 |
45 // Offset in pixels relative the default middle position. | 45 // Offset in pixels relative the default middle position. |
46 int arrow_offset_; | 46 int arrow_offset_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(AppListBubbleBorder); | 48 DISALLOW_COPY_AND_ASSIGN(AppListBubbleBorder); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace ash | 51 } // namespace app_list |
52 | 52 |
53 #endif // ASH_APP_LIST_APP_LIST_BUBBLE_BORDER_H_ | 53 #endif // UI_APP_LIST_APP_LIST_BUBBLE_BORDER_H_ |
OLD | NEW |