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

Unified Diff: ui/views/test/test_views_delegate.h

Issue 154783002: Honor can_activate flag in ShowWindowWithState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More review comments Created 6 years, 7 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
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | ui/views/test/test_views_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/test_views_delegate.h
diff --git a/ui/views/test/test_views_delegate.h b/ui/views/test/test_views_delegate.h
index 1d726f8f38dfb1828c4c4e8c09bf16c92eeea375..5d80e085e96de6a7e6773c3fbbcc553c88cf1bac 100644
--- a/ui/views/test/test_views_delegate.h
+++ b/ui/views/test/test_views_delegate.h
@@ -19,7 +19,16 @@ class TestViewsDelegate : public ViewsDelegate {
TestViewsDelegate();
virtual ~TestViewsDelegate();
- void SetUseTransparentWindows(bool transparent);
+ // If set to |true|, forces widgets that do not provide a native widget to use
+ // DesktopNativeWidgetAura instead of whatever the default native widget would
+ // be. This has no effect on ChromeOS.
+ void set_use_desktop_native_widgets(bool desktop) {
+ use_desktop_native_widgets_ = desktop;
+ }
+
+ void set_use_transparent_windows(bool transparent) {
+ use_transparent_windows_ = transparent;
+ }
// ViewsDelegate:
virtual void OnBeforeWidgetInit(
@@ -27,6 +36,7 @@ class TestViewsDelegate : public ViewsDelegate {
internal::NativeWidgetDelegate* delegate) OVERRIDE;
private:
+ bool use_desktop_native_widgets_;
bool use_transparent_windows_;
#if defined(USE_AURA)
scoped_ptr<wm::WMState> wm_state_;
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | ui/views/test/test_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698