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

Side by Side Diff: views/controls/textfield/native_textfield_gtk.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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 #include <gdk/gdkkeysyms.h> 5 #include <gdk/gdkkeysyms.h>
6 #include <gtk/gtk.h> 6 #include <gtk/gtk.h>
7 7
8 #include "views/controls/textfield/native_textfield_gtk.h" 8 #include "views/controls/textfield/native_textfield_gtk.h"
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "ui/base/range/range.h" 12 #include "ui/base/range/range.h"
13 #include "ui/gfx/gtk_util.h" 13 #include "ui/gfx/gtk_util.h"
14 #include "ui/gfx/insets.h" 14 #include "ui/gfx/insets.h"
15 #include "ui/gfx/selection_model.h" 15 #include "ui/gfx/selection_model.h"
16 #include "ui/gfx/skia_utils_gtk.h" 16 #include "ui/gfx/skia_utils_gtk.h"
17 #include "ui/views/widget/native_widget_gtk.h"
17 #include "views/controls/textfield/gtk_views_entry.h" 18 #include "views/controls/textfield/gtk_views_entry.h"
18 #include "views/controls/textfield/gtk_views_textview.h" 19 #include "views/controls/textfield/gtk_views_textview.h"
19 #include "views/controls/textfield/native_textfield_views.h" 20 #include "views/controls/textfield/native_textfield_views.h"
20 #include "views/controls/textfield/textfield.h" 21 #include "views/controls/textfield/textfield.h"
21 #include "views/controls/textfield/textfield_controller.h" 22 #include "views/controls/textfield/textfield_controller.h"
22 #include "views/widget/native_widget_gtk.h"
23 23
24 namespace views { 24 namespace views {
25 25
26 // A character used to hide a text in password mode. 26 // A character used to hide a text in password mode.
27 static const char kPasswordChar = '*'; 27 static const char kPasswordChar = '*';
28 28
29 // Border width for GtkTextView. 29 // Border width for GtkTextView.
30 const int kTextViewBorderWidth = 4; 30 const int kTextViewBorderWidth = 4;
31 31
32 //////////////////////////////////////////////////////////////////////////////// 32 ////////////////////////////////////////////////////////////////////////////////
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 429
430 // static 430 // static
431 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper( 431 NativeTextfieldWrapper* NativeTextfieldWrapper::CreateWrapper(
432 Textfield* field) { 432 Textfield* field) {
433 if (Widget::IsPureViews()) 433 if (Widget::IsPureViews())
434 return new NativeTextfieldViews(field); 434 return new NativeTextfieldViews(field);
435 return new NativeTextfieldGtk(field); 435 return new NativeTextfieldGtk(field);
436 } 436 }
437 437
438 } // namespace views 438 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/table/table_view_unittest.cc ('k') | views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698