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

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

Issue 7491090: Tests for TouchSelectoinControllerImpl. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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 | « no previous file | views/touchui/touch_selection_controller_impl.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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // class name of internal 133 // class name of internal
134 static const char kViewClassName[]; 134 static const char kViewClassName[];
135 135
136 protected: 136 protected:
137 // View override. 137 // View override.
138 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 138 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
139 139
140 private: 140 private:
141 friend class NativeTextfieldViewsTest; 141 friend class NativeTextfieldViewsTest;
142 friend class TouchSelectionControllerImplTest;
142 143
143 // Overridden from TextInputClient: 144 // Overridden from TextInputClient:
144 virtual void SetCompositionText( 145 virtual void SetCompositionText(
145 const ui::CompositionText& composition) OVERRIDE; 146 const ui::CompositionText& composition) OVERRIDE;
146 virtual void ConfirmCompositionText() OVERRIDE; 147 virtual void ConfirmCompositionText() OVERRIDE;
147 virtual void ClearCompositionText() OVERRIDE; 148 virtual void ClearCompositionText() OVERRIDE;
148 virtual void InsertText(const string16& text) OVERRIDE; 149 virtual void InsertText(const string16& text) OVERRIDE;
149 virtual void InsertChar(char16 ch, int flags) OVERRIDE; 150 virtual void InsertChar(char16 ch, int flags) OVERRIDE;
150 virtual ui::TextInputType GetTextInputType() OVERRIDE; 151 virtual ui::TextInputType GetTextInputType() OVERRIDE;
151 virtual gfx::Rect GetCaretBounds() OVERRIDE; 152 virtual gfx::Rect GetCaretBounds() OVERRIDE;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 scoped_ptr<views::MenuItemView> context_menu_menu_; 252 scoped_ptr<views::MenuItemView> context_menu_menu_;
252 253
253 scoped_ptr<TouchSelectionController> touch_selection_controller_; 254 scoped_ptr<TouchSelectionController> touch_selection_controller_;
254 255
255 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 256 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
256 }; 257 };
257 258
258 } // namespace views 259 } // namespace views
259 260
260 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 261 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | views/touchui/touch_selection_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698