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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc

Issue 2345183002: Views: Draw Textfield selected text in gray when top-level Widget loses focus.
Patch Set: Fix rebase. Created 4 years, 2 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/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc
index f9b71160a1a062e25d8a57b0275ff01e57973b79..0481be1085dcf0f882a643488c7bb5da1351e29e 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_interactive_uitest.cc
@@ -245,9 +245,9 @@ TEST_F(DesktopWindowTreeHostX11Test, CaptureEventForwarding) {
TEST_F(DesktopWindowTreeHostX11Test, InputMethodFocus) {
std::unique_ptr<Widget> widget(CreateWidget(gfx::Rect(100, 100, 100, 100)));
- std::unique_ptr<Textfield> textfield(new Textfield);
+ Textfield* textfield = new Textfield;
textfield->SetBounds(0, 0, 200, 20);
- widget->GetRootView()->AddChildView(textfield.get());
+ widget->GetRootView()->AddChildView(textfield);
widget->ShowInactive();
textfield->RequestFocus();

Powered by Google App Engine
This is Rietveld 408576698