Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: ui/views/bubble/tray_bubble_view.h

Issue 2831233003: Remove ShouldBlockShelfAutoHide(). (Closed)
Patch Set: bubble lifetimes Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 84 bool can_activate;
85 bool close_on_deactivate; 85 bool close_on_deactivate;
86 SkColor bg_color; 86 SkColor bg_color;
87 }; 87 };
88 88
89 // Returns whether a tray bubble is active.
90 static bool IsATrayBubbleOpen();
sky 2017/04/21 20:43:50 This should be after the destructor.
Evan Stade 2017/04/22 00:10:25 Done.
91
89 // Constructs and returns a TrayBubbleView. |init_params| may be modified. 92 // Constructs and returns a TrayBubbleView. |init_params| may be modified.
90 static TrayBubbleView* Create(views::View* anchor, 93 static TrayBubbleView* Create(views::View* anchor,
91 Delegate* delegate, 94 Delegate* delegate,
92 InitParams* init_params); 95 InitParams* init_params);
93 96
94 ~TrayBubbleView() override; 97 ~TrayBubbleView() override;
95 98
96 // Sets up animations, and show the bubble. Must occur after CreateBubble() 99 // Sets up animations, and show the bubble. Must occur after CreateBubble()
97 // is called. 100 // is called.
98 void InitializeAndShowBubble(); 101 void InitializeAndShowBubble();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 176
174 // Used to find any mouse movements. 177 // Used to find any mouse movements.
175 std::unique_ptr<MouseWatcher> mouse_watcher_; 178 std::unique_ptr<MouseWatcher> mouse_watcher_;
176 179
177 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView); 180 DISALLOW_COPY_AND_ASSIGN(TrayBubbleView);
178 }; 181 };
179 182
180 } // namespace views 183 } // namespace views
181 184
182 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_ 185 #endif // UI_VIEWS_BUBBLE_TRAY_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698