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

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

Issue 8604012: move chromeos bubble setup code to window.cc (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: use chrome/browser/uil/views/window.cc Created 9 years, 1 month 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 b31c77d1ef6184d78ff4a08e764d62032ca13f4c..3b66cd83aad3fc15572726376e7aff223d4d20c2 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -67,6 +67,16 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
use_focusless_ = use_focusless;
}
+#if defined(OS_CHROMEOS)
+ bool show_while_screen_is_locked() const {
+ return show_while_screen_is_locked_;
+ }
+
+ void set_show_while_screen_is_locked(bool show) {
+ show_while_screen_is_locked_ = show;
+ }
+#endif
+
// Get the arrow's anchor point in screen space.
virtual gfx::Point GetAnchorPoint();
@@ -146,6 +156,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// These bubbles are not interactive and should not gain focus.
bool use_focusless_;
+ // Whether to show this bubble when screen is locked on ChromeOS.
Daniel Erat 2011/11/21 23:10:50 still seems weird to me to define this on platform
alicet1 2011/11/22 00:23:53 removed.
+ bool show_while_screen_is_locked_;
Ben Goodger (Google) 2011/11/21 23:12:38 indeed... I think this should be hoisted to the ch
alicet1 2011/11/22 00:23:53 removed.
+
DISALLOW_COPY_AND_ASSIGN(BubbleDelegateView);
};

Powered by Google App Engine
This is Rietveld 408576698