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

Unified Diff: views/controls/textfield/native_textfield_win.h

Issue 6386009: Remove app/win/win_util.h,cc etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with NSApp changes in r73581 Created 9 years, 11 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/base/x/x11_util.cc ('k') | views/controls/textfield/native_textfield_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_win.h
diff --git a/views/controls/textfield/native_textfield_win.h b/views/controls/textfield/native_textfield_win.h
index efc5d574e1621cdbdbfd83d401feaa87038ba145..b0c890244cbe5a6a5d47202af4cbab27fcb1a241 100644
--- a/views/controls/textfield/native_textfield_win.h
+++ b/views/controls/textfield/native_textfield_win.h
@@ -43,6 +43,18 @@ class NativeTextfieldWin
explicit NativeTextfieldWin(Textfield* parent);
~NativeTextfieldWin();
+ // Returns true if the current point is close enough to the origin point in
+ // space and time that it would be considered a double click.
+ static bool IsDoubleClick(const POINT& origin,
+ const POINT& current,
+ DWORD elapsed_time);
+
+ // Returns true if the virtual key code is a digit coming from the numeric
+ // keypad (with or without NumLock on). |extended_key| should be set to the
+ // extended key flag specified in the WM_KEYDOWN/UP where the |key_code|
+ // originated.
+ static bool IsNumPadDigit(int key_code, bool extended_key);
+
// See the code in textfield.cc that calls this for why this is here.
void AttachHack();
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | views/controls/textfield/native_textfield_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698