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

Unified Diff: views/controls/combobox/native_combobox_win.cc

Issue 151002: Fixing focus problems with the combobox (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « views/controls/combobox/native_combobox_win.h ('k') | views/controls/combobox/native_combobox_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/combobox/native_combobox_win.cc
===================================================================
--- views/controls/combobox/native_combobox_win.cc (revision 19470)
+++ views/controls/combobox/native_combobox_win.cc (working copy)
@@ -136,6 +136,10 @@
Focus();
}
+gfx::NativeView NativeComboboxWin::GetTestingHandle() const {
+ return native_view();
+}
+
////////////////////////////////////////////////////////////////////////////////
// NativeComboboxWin, NativeControlWin overrides:
@@ -158,7 +162,7 @@
DWORD flags = WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN |
CBS_DROPDOWNLIST | WS_VSCROLL;
HWND control_hwnd = ::CreateWindowEx(GetAdditionalExStyle(), L"COMBOBOX", L"",
- flags, 0, 0, 100, 20, //width(), height(),
+ flags, 0, 0, width(), height(),
GetWidget()->GetNativeView(), NULL, NULL,
NULL);
NativeControlCreated(control_hwnd);
Property changes on: views\controls\combobox\native_combobox_win.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « views/controls/combobox/native_combobox_win.h ('k') | views/controls/combobox/native_combobox_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698