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

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

Issue 6318004: Add TextRange and related methods to Textfield Views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 11 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 | « no previous file | views/controls/textfield/native_textfield_gtk.cc » ('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) 2009 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_GTK_H_ 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
(...skipping 29 matching lines...) Expand all
41 virtual void UpdateFont(); 41 virtual void UpdateFont();
42 virtual void UpdateIsPassword(); 42 virtual void UpdateIsPassword();
43 virtual void UpdateEnabled(); 43 virtual void UpdateEnabled();
44 virtual gfx::Insets CalculateInsets(); 44 virtual gfx::Insets CalculateInsets();
45 virtual void UpdateHorizontalMargins(); 45 virtual void UpdateHorizontalMargins();
46 virtual void UpdateVerticalMargins(); 46 virtual void UpdateVerticalMargins();
47 virtual bool SetFocus(); 47 virtual bool SetFocus();
48 virtual View* GetView(); 48 virtual View* GetView();
49 virtual gfx::NativeView GetTestingHandle() const; 49 virtual gfx::NativeView GetTestingHandle() const;
50 virtual bool IsIMEComposing() const; 50 virtual bool IsIMEComposing() const;
51 virtual void GetSelectedRange(TextRange* range) const;
52 virtual void SelectRange(const TextRange& range);
53 virtual size_t GetCursorPosition() const;
51 virtual bool HandleKeyPressed(const views::KeyEvent& e); 54 virtual bool HandleKeyPressed(const views::KeyEvent& e);
52 virtual bool HandleKeyReleased(const views::KeyEvent& e); 55 virtual bool HandleKeyReleased(const views::KeyEvent& e);
53 virtual void HandleWillGainFocus(); 56 virtual void HandleWillGainFocus();
54 virtual void HandleDidGainFocus(); 57 virtual void HandleDidGainFocus();
55 virtual void HandleWillLoseFocus(); 58 virtual void HandleWillLoseFocus();
56 59
57 // Overridden from NativeControlGtk: 60 // Overridden from NativeControlGtk:
58 virtual void CreateNativeControl(); 61 virtual void CreateNativeControl();
59 virtual void NativeControlCreated(GtkWidget* widget); 62 virtual void NativeControlCreated(GtkWidget* widget);
60 63
(...skipping 17 matching lines...) Expand all
78 GtkWidget* entry, 81 GtkWidget* entry,
79 NativeTextfieldGtk* textfield); 82 NativeTextfieldGtk* textfield);
80 gboolean OnChanged(); 83 gboolean OnChanged();
81 84
82 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); 85 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk);
83 }; 86 };
84 87
85 } // namespace views 88 } // namespace views
86 89
87 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ 90 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | views/controls/textfield/native_textfield_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698