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

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

Issue 1091703002: Eliminate faux-RTTI code from BrowserView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to patch set 2 Created 5 years, 8 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
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | ui/views/controls/textfield/textfield.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 int GetBaseline() const override; 213 int GetBaseline() const override;
214 gfx::Size GetPreferredSize() const override; 214 gfx::Size GetPreferredSize() const override;
215 const char* GetClassName() const override; 215 const char* GetClassName() const override;
216 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; 216 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
217 bool OnMousePressed(const ui::MouseEvent& event) override; 217 bool OnMousePressed(const ui::MouseEvent& event) override;
218 bool OnMouseDragged(const ui::MouseEvent& event) override; 218 bool OnMouseDragged(const ui::MouseEvent& event) override;
219 void OnMouseReleased(const ui::MouseEvent& event) override; 219 void OnMouseReleased(const ui::MouseEvent& event) override;
220 bool OnKeyPressed(const ui::KeyEvent& event) override; 220 bool OnKeyPressed(const ui::KeyEvent& event) override;
221 ui::TextInputClient* GetTextInputClient() override; 221 ui::TextInputClient* GetTextInputClient() override;
222 void OnGestureEvent(ui::GestureEvent* event) override; 222 void OnGestureEvent(ui::GestureEvent* event) override;
223 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
223 void AboutToRequestFocusFromTabTraversal(bool reverse) override; 224 void AboutToRequestFocusFromTabTraversal(bool reverse) override;
224 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; 225 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override;
225 bool GetDropFormats( 226 bool GetDropFormats(
226 int* formats, 227 int* formats,
227 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override; 228 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override;
228 bool CanDrop(const ui::OSExchangeData& data) override; 229 bool CanDrop(const ui::OSExchangeData& data) override;
229 int OnDragUpdated(const ui::DropTargetEvent& event) override; 230 int OnDragUpdated(const ui::DropTargetEvent& event) override;
230 void OnDragExited() override; 231 void OnDragExited() override;
231 int OnPerformDrop(const ui::DropTargetEvent& event) override; 232 int OnPerformDrop(const ui::DropTargetEvent& event) override;
232 void OnDragDone() override; 233 void OnDragDone() override;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 488
488 // Used to bind callback functions to this object. 489 // Used to bind callback functions to this object.
489 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 490 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
490 491
491 DISALLOW_COPY_AND_ASSIGN(Textfield); 492 DISALLOW_COPY_AND_ASSIGN(Textfield);
492 }; 493 };
493 494
494 } // namespace views 495 } // namespace views
495 496
496 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698