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

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

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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 <stddef.h>
9 #include <stdint.h>
10
8 #include <string> 11 #include <string>
9 12
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
14 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
15 #include "base/timer/timer.h" 18 #include "base/timer/timer.h"
16 #include "third_party/skia/include/core/SkColor.h" 19 #include "third_party/skia/include/core/SkColor.h"
17 #include "ui/base/ime/text_input_client.h" 20 #include "ui/base/ime/text_input_client.h"
18 #include "ui/base/ime/text_input_type.h" 21 #include "ui/base/ime/text_input_type.h"
19 #include "ui/base/models/simple_menu_model.h" 22 #include "ui/base/models/simple_menu_model.h"
20 #include "ui/base/touch/touch_editing_controller.h" 23 #include "ui/base/touch/touch_editing_controller.h"
21 #include "ui/events/keycodes/keyboard_codes.h" 24 #include "ui/events/keycodes/keyboard_codes.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void SetCompositionText(const ui::CompositionText& composition) override; 286 void SetCompositionText(const ui::CompositionText& composition) override;
284 void ConfirmCompositionText() override; 287 void ConfirmCompositionText() override;
285 void ClearCompositionText() override; 288 void ClearCompositionText() override;
286 void InsertText(const base::string16& text) override; 289 void InsertText(const base::string16& text) override;
287 void InsertChar(const ui::KeyEvent& event) override; 290 void InsertChar(const ui::KeyEvent& event) override;
288 ui::TextInputType GetTextInputType() const override; 291 ui::TextInputType GetTextInputType() const override;
289 ui::TextInputMode GetTextInputMode() const override; 292 ui::TextInputMode GetTextInputMode() const override;
290 int GetTextInputFlags() const override; 293 int GetTextInputFlags() const override;
291 bool CanComposeInline() const override; 294 bool CanComposeInline() const override;
292 gfx::Rect GetCaretBounds() const override; 295 gfx::Rect GetCaretBounds() const override;
293 bool GetCompositionCharacterBounds(uint32 index, 296 bool GetCompositionCharacterBounds(uint32_t index,
294 gfx::Rect* rect) const override; 297 gfx::Rect* rect) const override;
295 bool HasCompositionText() const override; 298 bool HasCompositionText() const override;
296 bool GetTextRange(gfx::Range* range) const override; 299 bool GetTextRange(gfx::Range* range) const override;
297 bool GetCompositionTextRange(gfx::Range* range) const override; 300 bool GetCompositionTextRange(gfx::Range* range) const override;
298 bool GetSelectionRange(gfx::Range* range) const override; 301 bool GetSelectionRange(gfx::Range* range) const override;
299 bool SetSelectionRange(const gfx::Range& range) override; 302 bool SetSelectionRange(const gfx::Range& range) override;
300 bool DeleteRange(const gfx::Range& range) override; 303 bool DeleteRange(const gfx::Range& range) override;
301 bool GetTextFromRange(const gfx::Range& range, 304 bool GetTextFromRange(const gfx::Range& range,
302 base::string16* text) const override; 305 base::string16* text) const override;
303 void OnInputMethodChanged() override; 306 void OnInputMethodChanged() override;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 487
485 // Used to bind callback functions to this object. 488 // Used to bind callback functions to this object.
486 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 489 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
487 490
488 DISALLOW_COPY_AND_ASSIGN(Textfield); 491 DISALLOW_COPY_AND_ASSIGN(Textfield);
489 }; 492 };
490 493
491 } // namespace views 494 } // namespace views
492 495
493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 496 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698