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

Unified Diff: ui/views/bubble/bubble_delegate.h

Issue 413433002: Refactor BubbleDelegateView::use_focuseless() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't reopen the bubble without good reason Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/bubble/bubble_delegate.h
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
index e61111b096df70d8ed677d77113bfc9b88819708..98b4ea2a09e55dc61b8da0574a0e5940d10da0c8 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -83,8 +83,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
gfx::NativeView parent_window() const { return parent_window_; }
void set_parent_window(gfx::NativeView window) { parent_window_ = window; }
- bool use_focusless() const { return use_focusless_; }
- void set_use_focusless(bool focusless) { use_focusless_ = focusless; }
+ bool can_activate() const { return can_activate_; }
+ void set_can_activate(bool focusless) { can_activate_ = focusless; }
bool accept_events() const { return accept_events_; }
void set_accept_events(bool accept_events) { accept_events_ = accept_events; }
@@ -183,8 +183,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// Insets applied to the |anchor_view_| bounds.
gfx::Insets anchor_view_insets_;
- // If true, the bubble does not take focus on display; default is false.
- bool use_focusless_;
+ // If false, the bubble can't be activated; default is true.
+ bool can_activate_;
// Specifies whether the bubble (or its border) handles mouse events, etc.
bool accept_events_;

Powered by Google App Engine
This is Rietveld 408576698