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

Side by Side Diff: ui/views/controls/prefix_selector.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PREFIX_SELECTOR_H_ 5 #ifndef UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_
6 #define UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ 6 #define UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "base/macros.h"
8 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
9 #include "base/time/time.h" 13 #include "base/time/time.h"
10 #include "ui/base/ime/text_input_client.h" 14 #include "ui/base/ime/text_input_client.h"
11 #include "ui/views/views_export.h" 15 #include "ui/views/views_export.h"
12 16
13 namespace views { 17 namespace views {
14 18
15 class PrefixDelegate; 19 class PrefixDelegate;
16 20
17 // PrefixSelector is used to change the selection in a view as the user 21 // PrefixSelector is used to change the selection in a view as the user
(...skipping 10 matching lines...) Expand all
28 void SetCompositionText(const ui::CompositionText& composition) override; 32 void SetCompositionText(const ui::CompositionText& composition) override;
29 void ConfirmCompositionText() override; 33 void ConfirmCompositionText() override;
30 void ClearCompositionText() override; 34 void ClearCompositionText() override;
31 void InsertText(const base::string16& text) override; 35 void InsertText(const base::string16& text) override;
32 void InsertChar(const ui::KeyEvent& event) override; 36 void InsertChar(const ui::KeyEvent& event) override;
33 ui::TextInputType GetTextInputType() const override; 37 ui::TextInputType GetTextInputType() const override;
34 ui::TextInputMode GetTextInputMode() const override; 38 ui::TextInputMode GetTextInputMode() const override;
35 int GetTextInputFlags() const override; 39 int GetTextInputFlags() const override;
36 bool CanComposeInline() const override; 40 bool CanComposeInline() const override;
37 gfx::Rect GetCaretBounds() const override; 41 gfx::Rect GetCaretBounds() const override;
38 bool GetCompositionCharacterBounds(uint32 index, 42 bool GetCompositionCharacterBounds(uint32_t index,
39 gfx::Rect* rect) const override; 43 gfx::Rect* rect) const override;
40 bool HasCompositionText() const override; 44 bool HasCompositionText() const override;
41 bool GetTextRange(gfx::Range* range) const override; 45 bool GetTextRange(gfx::Range* range) const override;
42 bool GetCompositionTextRange(gfx::Range* range) const override; 46 bool GetCompositionTextRange(gfx::Range* range) const override;
43 bool GetSelectionRange(gfx::Range* range) const override; 47 bool GetSelectionRange(gfx::Range* range) const override;
44 bool SetSelectionRange(const gfx::Range& range) override; 48 bool SetSelectionRange(const gfx::Range& range) override;
45 bool DeleteRange(const gfx::Range& range) override; 49 bool DeleteRange(const gfx::Range& range) override;
46 bool GetTextFromRange(const gfx::Range& range, 50 bool GetTextFromRange(const gfx::Range& range,
47 base::string16* text) const override; 51 base::string16* text) const override;
48 void OnInputMethodChanged() override; 52 void OnInputMethodChanged() override;
(...skipping 21 matching lines...) Expand all
70 base::TimeTicks time_of_last_key_; 74 base::TimeTicks time_of_last_key_;
71 75
72 base::string16 current_text_; 76 base::string16 current_text_;
73 77
74 DISALLOW_COPY_AND_ASSIGN(PrefixSelector); 78 DISALLOW_COPY_AND_ASSIGN(PrefixSelector);
75 }; 79 };
76 80
77 } // namespace views 81 } // namespace views
78 82
79 #endif // UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ 83 #endif // UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698