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

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

Issue 7067015: An edit for SetText needs to be merged with previous edit for omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 6 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"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual size_t GetCursorPosition() const OVERRIDE; 110 virtual size_t GetCursorPosition() const OVERRIDE;
111 virtual bool HandleKeyPressed(const KeyEvent& e) OVERRIDE; 111 virtual bool HandleKeyPressed(const KeyEvent& e) OVERRIDE;
112 virtual bool HandleKeyReleased(const KeyEvent& e) OVERRIDE; 112 virtual bool HandleKeyReleased(const KeyEvent& e) OVERRIDE;
113 virtual void HandleFocus() OVERRIDE; 113 virtual void HandleFocus() OVERRIDE;
114 virtual void HandleBlur() OVERRIDE; 114 virtual void HandleBlur() OVERRIDE;
115 virtual TextInputClient* GetTextInputClient() OVERRIDE; 115 virtual TextInputClient* GetTextInputClient() OVERRIDE;
116 virtual TextStyle* CreateTextStyle() OVERRIDE; 116 virtual TextStyle* CreateTextStyle() OVERRIDE;
117 virtual void ApplyTextStyle(const TextStyle* style, 117 virtual void ApplyTextStyle(const TextStyle* style,
118 const ui::Range& range) OVERRIDE; 118 const ui::Range& range) OVERRIDE;
119 virtual void ClearAllTextStyles() OVERRIDE; 119 virtual void ClearAllTextStyles() OVERRIDE;
120 virtual void ClearEditHistory() OVERRIDE;
120 121
121 // ui::SimpleMenuModel::Delegate overrides 122 // ui::SimpleMenuModel::Delegate overrides
122 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; 123 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
123 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; 124 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
124 virtual bool GetAcceleratorForCommandId( 125 virtual bool GetAcceleratorForCommandId(
125 int command_id, 126 int command_id,
126 ui::Accelerator* accelerator) OVERRIDE; 127 ui::Accelerator* accelerator) OVERRIDE;
127 virtual void ExecuteCommand(int command_id) OVERRIDE; 128 virtual void ExecuteCommand(int command_id) OVERRIDE;
128 129
129 // class name of internal 130 // class name of internal
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Context menu and its content list for the textfield. 269 // Context menu and its content list for the textfield.
269 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; 270 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_;
270 scoped_ptr<Menu2> context_menu_menu_; 271 scoped_ptr<Menu2> context_menu_menu_;
271 272
272 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 273 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
273 }; 274 };
274 275
275 } // namespace views 276 } // namespace views
276 277
277 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 278 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698