| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 DISALLOW_COPY_AND_ASSIGN(Delegate); | 74 DISALLOW_COPY_AND_ASSIGN(Delegate); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 struct VIEWS_EXPORT InitParams { | 77 struct VIEWS_EXPORT InitParams { |
| 78 InitParams(AnchorAlignment anchor_alignment, int min_width, int max_width); | 78 InitParams(AnchorAlignment anchor_alignment, int min_width, int max_width); |
| 79 InitParams(const InitParams& other); | 79 InitParams(const InitParams& other); |
| 80 AnchorAlignment anchor_alignment; | 80 AnchorAlignment anchor_alignment; |
| 81 int min_width; | 81 int min_width; |
| 82 int max_width; | 82 int max_width; |
| 83 int max_height; | 83 int max_height; |
| 84 bool can_activate; | |
| 85 bool close_on_deactivate; | 84 bool close_on_deactivate; |
| 86 SkColor bg_color; | 85 SkColor bg_color; |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 // Constructs and returns a TrayBubbleView. |init_params| may be modified. | 88 // Constructs and returns a TrayBubbleView. |init_params| may be modified. |
| 90 static TrayBubbleView* Create(views::View* anchor, | 89 static TrayBubbleView* Create(views::View* anchor, |
| 91 Delegate* delegate, | 90 Delegate* delegate, |
| 92 InitParams* init_params); | 91 InitParams* init_params); |
| 93 | 92 |
| 94 ~TrayBubbleView() override; | 93 ~TrayBubbleView() override; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 172 |
| 174 // Used to find any mouse movements. | 173 // Used to find any mouse movements. |
| 175 std::unique_ptr<MouseWatcher> mouse_watcher_; | 174 std::unique_ptr<MouseWatcher> mouse_watcher_; |
| 176 | 175 |
| 177 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); | 176 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); |
| 178 }; | 177 }; |
| 179 | 178 |
| 180 } // namespace views | 179 } // namespace views |
| 181 | 180 |
| 182 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ | 181 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ |
| OLD | NEW |