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

Side by Side Diff: views/controls/textfield/native_textfield_views.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
« no previous file with comments | « views/controls/table/table_view2.h ('k') | views/controls/textfield/native_textfield_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_VIEWS_H_ 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 24 matching lines...) Expand all
35 class MenuModelAdapter; 35 class MenuModelAdapter;
36 36
37 // A views/skia only implementation of NativeTextfieldWrapper. 37 // A views/skia only implementation of NativeTextfieldWrapper.
38 // No platform specific code is used. 38 // No platform specific code is used.
39 // Following features are not yet supported. 39 // Following features are not yet supported.
40 // * BIDI/Complex script. 40 // * BIDI/Complex script.
41 // * Support surrogate pair, or maybe we should just use UTF32 internally. 41 // * Support surrogate pair, or maybe we should just use UTF32 internally.
42 // * X selection (only if we want to support). 42 // * X selection (only if we want to support).
43 // Once completed, this will replace Textfield, NativeTextfieldWin and 43 // Once completed, this will replace Textfield, NativeTextfieldWin and
44 // NativeTextfieldGtk. 44 // NativeTextfieldGtk.
45 class VIEWS_API NativeTextfieldViews : public TouchSelectionClientView, 45 class VIEWS_EXPORT NativeTextfieldViews : public TouchSelectionClientView,
46 public ContextMenuController, 46 public ContextMenuController,
47 public DragController, 47 public DragController,
48 public NativeTextfieldWrapper, 48 public NativeTextfieldWrapper,
49 public TextInputClient, 49 public TextInputClient,
50 public TextfieldViewsModel::Delegate { 50 public TextfieldViewsModel::Delegate {
51 public: 51 public:
52 explicit NativeTextfieldViews(Textfield* parent); 52 explicit NativeTextfieldViews(Textfield* parent);
53 virtual ~NativeTextfieldViews(); 53 virtual ~NativeTextfieldViews();
54 54
55 // View overrides: 55 // View overrides:
56 virtual gfx::NativeCursor GetCursor(const MouseEvent& event) OVERRIDE; 56 virtual gfx::NativeCursor GetCursor(const MouseEvent& event) OVERRIDE;
57 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; 57 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE;
58 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; 58 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE;
59 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE; 59 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE;
60 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE; 60 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 scoped_ptr<views::MenuItemView> context_menu_menu_; 251 scoped_ptr<views::MenuItemView> context_menu_menu_;
252 252
253 scoped_ptr<TouchSelectionController> touch_selection_controller_; 253 scoped_ptr<TouchSelectionController> touch_selection_controller_;
254 254
255 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 255 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
256 }; 256 };
257 257
258 } // namespace views 258 } // namespace views
259 259
260 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 260 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW
« no previous file with comments | « views/controls/table/table_view2.h ('k') | views/controls/textfield/native_textfield_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698