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

Side by Side Diff: views/controls/textfield/native_textfield_win.h

Issue 6487002: Add a new constructor to KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void OnMouseMove(UINT keys, const CPoint& point); 180 void OnMouseMove(UINT keys, const CPoint& point);
181 int OnNCCalcSize(BOOL w_param, LPARAM l_param); 181 int OnNCCalcSize(BOOL w_param, LPARAM l_param);
182 void OnNCPaint(HRGN region); 182 void OnNCPaint(HRGN region);
183 void OnNonLButtonDown(UINT keys, const CPoint& point); 183 void OnNonLButtonDown(UINT keys, const CPoint& point);
184 void OnPaste(); 184 void OnPaste();
185 void OnSetFocus(HWND hwnd); 185 void OnSetFocus(HWND hwnd);
186 void OnSysChar(TCHAR ch, UINT repeat_count, UINT flags); 186 void OnSysChar(TCHAR ch, UINT repeat_count, UINT flags);
187 187
188 // Helper function for OnChar() and OnKeyDown() that handles keystrokes that 188 // Helper function for OnChar() and OnKeyDown() that handles keystrokes that
189 // could change the text in the edit. 189 // could change the text in the edit.
190 void HandleKeystroke(UINT message, TCHAR key, UINT repeat_count, UINT flags); 190 // Note: This function assumes GetCurrentMessage() returns a MSG with
191 // msg > WM_KEYFIRST and < WM_KEYLAST.
192 void HandleKeystroke();
191 193
192 // Every piece of code that can change the edit should call these functions 194 // Every piece of code that can change the edit should call these functions
193 // before and after the change. These functions determine if anything 195 // before and after the change. These functions determine if anything
194 // meaningful changed, and do any necessary updating and notification. 196 // meaningful changed, and do any necessary updating and notification.
195 void OnBeforePossibleChange(); 197 void OnBeforePossibleChange();
196 198
197 // When a user types a BIDI mirroring character (e.g. left parenthesis 199 // When a user types a BIDI mirroring character (e.g. left parenthesis
198 // U+0028, which should be rendered as '(' in LTR context unless surrounded 200 // U+0028, which should be rendered as '(' in LTR context unless surrounded
199 // by RTL characters in both sides, and it should be rendered as ')' in RTL 201 // by RTL characters in both sides, and it should be rendered as ')' in RTL
200 // context unless surrounded by LTR characters in both sides.), the textfield 202 // context unless surrounded by LTR characters in both sides.), the textfield
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 275
274 // The accessibility state of this object. 276 // The accessibility state of this object.
275 int accessibility_state_; 277 int accessibility_state_;
276 278
277 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); 279 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin);
278 }; 280 };
279 281
280 } // namespace views 282 } // namespace views
281 283
282 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ 284 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_
OLDNEW
« no previous file with comments | « views/controls/textfield/native_textfield_views_unittest.cc ('k') | views/controls/textfield/native_textfield_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698