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

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

Issue 7550038: Rename VIEWS_API to VIEWS_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 26 matching lines...) Expand all
37 public NativeTextfieldWrapper, 37 public NativeTextfieldWrapper,
38 public ui::SimpleMenuModel::Delegate { 38 public ui::SimpleMenuModel::Delegate {
39 public: 39 public:
40 DECLARE_WND_CLASS(L"ViewsTextfieldEdit"); 40 DECLARE_WND_CLASS(L"ViewsTextfieldEdit");
41 41
42 explicit NativeTextfieldWin(Textfield* parent); 42 explicit NativeTextfieldWin(Textfield* parent);
43 ~NativeTextfieldWin(); 43 ~NativeTextfieldWin();
44 44
45 // Returns true if the current point is close enough to the origin point in 45 // Returns true if the current point is close enough to the origin point in
46 // space and time that it would be considered a double click. 46 // space and time that it would be considered a double click.
47 VIEWS_API static bool IsDoubleClick(const POINT& origin, 47 VIEWS_EXPORT static bool IsDoubleClick(const POINT& origin,
48 const POINT& current, 48 const POINT& current,
49 DWORD elapsed_time); 49 DWORD elapsed_time);
50 50
51 // Returns true if the virtual key code is a digit coming from the numeric 51 // Returns true if the virtual key code is a digit coming from the numeric
52 // keypad (with or without NumLock on). |extended_key| should be set to the 52 // keypad (with or without NumLock on). |extended_key| should be set to the
53 // extended key flag specified in the WM_KEYDOWN/UP where the |key_code| 53 // extended key flag specified in the WM_KEYDOWN/UP where the |key_code|
54 // originated. 54 // originated.
55 VIEWS_API static bool IsNumPadDigit(int key_code, bool extended_key); 55 VIEWS_EXPORT static bool IsNumPadDigit(int key_code, bool extended_key);
56 56
57 // See the code in textfield.cc that calls this for why this is here. 57 // See the code in textfield.cc that calls this for why this is here.
58 void AttachHack(); 58 void AttachHack();
59 59
60 // Overridden from NativeTextfieldWrapper: 60 // Overridden from NativeTextfieldWrapper:
61 virtual string16 GetText() const OVERRIDE; 61 virtual string16 GetText() const OVERRIDE;
62 virtual void UpdateText() OVERRIDE; 62 virtual void UpdateText() OVERRIDE;
63 virtual void AppendText(const string16& text) OVERRIDE; 63 virtual void AppendText(const string16& text) OVERRIDE;
64 virtual string16 GetSelectedText() const OVERRIDE; 64 virtual string16 GetSelectedText() const OVERRIDE;
65 virtual void SelectAll() OVERRIDE; 65 virtual void SelectAll() OVERRIDE;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 // The accessibility state of this object. 279 // The accessibility state of this object.
280 int accessibility_state_; 280 int accessibility_state_;
281 281
282 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); 282 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin);
283 }; 283 };
284 284
285 } // namespace views 285 } // namespace views
286 286
287 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ 287 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_
OLDNEW
« no previous file with comments | « views/controls/textfield/native_textfield_views.h ('k') | views/controls/textfield/native_textfield_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698