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

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

Issue 6628037: views: Moves TextfieldController/TextRange into their own headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 9 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_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"
11 #include "ui/base/models/simple_menu_model.h" 11 #include "ui/base/models/simple_menu_model.h"
12 #include "ui/gfx/font.h" 12 #include "ui/gfx/font.h"
13 #include "views/border.h" 13 #include "views/border.h"
14 #include "views/controls/textfield/native_textfield_wrapper.h" 14 #include "views/controls/textfield/native_textfield_wrapper.h"
15 #include "views/view.h" 15 #include "views/view.h"
16 16
17 namespace base { 17 namespace base {
18 class Time; 18 class Time;
19 } 19 }
20 20
21 namespace gfx { 21 namespace gfx {
22 class Canvas; 22 class Canvas;
23 } // namespace 23 }
24 24
25 namespace views { 25 namespace views {
26 26
27 class KeyEvent; 27 class KeyEvent;
28 class Menu2; 28 class Menu2;
29 class TextfieldViewsModel; 29 class TextfieldViewsModel;
30 class TextRange;
30 31
31 // A views/skia only implementation of NativeTextfieldWrapper. 32 // A views/skia only implementation of NativeTextfieldWrapper.
32 // No platform specific code is used. 33 // No platform specific code is used.
33 // Following features are not yet supported. 34 // Following features are not yet supported.
34 // * BIDI 35 // * BIDI
35 // * IME/i18n support. 36 // * IME/i18n support.
36 // * X selection (only if we want to support). 37 // * X selection (only if we want to support).
37 // * STYLE_MULTILINE, STYLE_LOWERCASE text. (These are not used in 38 // * STYLE_MULTILINE, STYLE_LOWERCASE text. (These are not used in
38 // chromeos, so we may not need them) 39 // chromeos, so we may not need them)
39 // * Double click to select word, and triple click to select all. 40 // * Double click to select word, and triple click to select all.
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Context menu and its content list for the textfield. 231 // Context menu and its content list for the textfield.
231 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; 232 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_;
232 scoped_ptr<Menu2> context_menu_menu_; 233 scoped_ptr<Menu2> context_menu_menu_;
233 234
234 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 235 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
235 }; 236 };
236 237
237 } // namespace views 238 } // namespace views
238 239
239 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 240 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW
« no previous file with comments | « views/controls/textfield/native_textfield_gtk.cc ('k') | views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698