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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_engine.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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
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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 class InputMethodEngine : public InputMethodEngineInterface { 37 class InputMethodEngine : public InputMethodEngineInterface {
38 public: 38 public:
39 InputMethodEngine(); 39 InputMethodEngine();
40 40
41 virtual ~InputMethodEngine(); 41 virtual ~InputMethodEngine();
42 42
43 void Initialize(scoped_ptr<InputMethodEngineInterface::Observer> observer, 43 void Initialize(scoped_ptr<InputMethodEngineInterface::Observer> observer,
44 const char* extension_id); 44 const char* extension_id);
45 45
46 // InputMethodEngineInterface overrides. 46 // InputMethodEngineInterface overrides.
47 virtual const std::string& GetActiveComponentId() const OVERRIDE; 47 virtual const std::string& GetActiveComponentId() const override;
48 virtual bool SetComposition(int context_id, 48 virtual bool SetComposition(int context_id,
49 const char* text, 49 const char* text,
50 int selection_start, 50 int selection_start,
51 int selection_end, 51 int selection_end,
52 int cursor, 52 int cursor,
53 const std::vector<SegmentInfo>& segments, 53 const std::vector<SegmentInfo>& segments,
54 std::string* error) OVERRIDE; 54 std::string* error) override;
55 virtual bool ClearComposition(int context_id, std::string* error) OVERRIDE; 55 virtual bool ClearComposition(int context_id, std::string* error) override;
56 virtual bool CommitText(int context_id, const char* text, 56 virtual bool CommitText(int context_id, const char* text,
57 std::string* error) OVERRIDE; 57 std::string* error) override;
58 virtual bool SendKeyEvents(int context_id, 58 virtual bool SendKeyEvents(int context_id,
59 const std::vector<KeyboardEvent>& events) OVERRIDE; 59 const std::vector<KeyboardEvent>& events) override;
60 virtual const CandidateWindowProperty& 60 virtual const CandidateWindowProperty&
61 GetCandidateWindowProperty() const OVERRIDE; 61 GetCandidateWindowProperty() const override;
62 virtual void SetCandidateWindowProperty( 62 virtual void SetCandidateWindowProperty(
63 const CandidateWindowProperty& property) OVERRIDE; 63 const CandidateWindowProperty& property) override;
64 virtual bool SetCandidateWindowVisible(bool visible, 64 virtual bool SetCandidateWindowVisible(bool visible,
65 std::string* error) OVERRIDE; 65 std::string* error) override;
66 virtual bool SetCandidates(int context_id, 66 virtual bool SetCandidates(int context_id,
67 const std::vector<Candidate>& candidates, 67 const std::vector<Candidate>& candidates,
68 std::string* error) OVERRIDE; 68 std::string* error) override;
69 virtual bool SetCursorPosition(int context_id, int candidate_id, 69 virtual bool SetCursorPosition(int context_id, int candidate_id,
70 std::string* error) OVERRIDE; 70 std::string* error) override;
71 virtual bool SetMenuItems(const std::vector<MenuItem>& items) OVERRIDE; 71 virtual bool SetMenuItems(const std::vector<MenuItem>& items) override;
72 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) OVERRIDE; 72 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) override;
73 virtual bool IsActive() const OVERRIDE; 73 virtual bool IsActive() const override;
74 virtual bool DeleteSurroundingText(int context_id, 74 virtual bool DeleteSurroundingText(int context_id,
75 int offset, 75 int offset,
76 size_t number_of_chars, 76 size_t number_of_chars,
77 std::string* error) OVERRIDE; 77 std::string* error) override;
78 78
79 // IMEEngineHandlerInterface overrides. 79 // IMEEngineHandlerInterface overrides.
80 virtual void FocusIn( 80 virtual void FocusIn(
81 const IMEEngineHandlerInterface::InputContext& input_context) OVERRIDE; 81 const IMEEngineHandlerInterface::InputContext& input_context) override;
82 virtual void FocusOut() OVERRIDE; 82 virtual void FocusOut() override;
83 virtual void Enable(const std::string& component_id) OVERRIDE; 83 virtual void Enable(const std::string& component_id) override;
84 virtual void Disable() OVERRIDE; 84 virtual void Disable() override;
85 virtual void PropertyActivate(const std::string& property_name) OVERRIDE; 85 virtual void PropertyActivate(const std::string& property_name) override;
86 virtual void Reset() OVERRIDE; 86 virtual void Reset() override;
87 virtual void ProcessKeyEvent(const ui::KeyEvent& key_event, 87 virtual void ProcessKeyEvent(const ui::KeyEvent& key_event,
88 const KeyEventDoneCallback& callback) OVERRIDE; 88 const KeyEventDoneCallback& callback) override;
89 virtual void CandidateClicked(uint32 index) OVERRIDE; 89 virtual void CandidateClicked(uint32 index) override;
90 virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos, 90 virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos,
91 uint32 anchor_pos) OVERRIDE; 91 uint32 anchor_pos) override;
92 virtual void HideInputView() OVERRIDE; 92 virtual void HideInputView() override;
93 93
94 int GetCotextIdForTesting() { return context_id_; } 94 int GetCotextIdForTesting() { return context_id_; }
95 95
96 private: 96 private:
97 // Converts MenuItem to InputMethodMenuItem. 97 // Converts MenuItem to InputMethodMenuItem.
98 void MenuItemToProperty(const MenuItem& item, 98 void MenuItemToProperty(const MenuItem& item,
99 ash::ime::InputMethodMenuItem* property); 99 ash::ime::InputMethodMenuItem* property);
100 100
101 // Enables overriding input view page to Virtual Keyboard window. 101 // Enables overriding input view page to Virtual Keyboard window.
102 void EnableInputView(); 102 void EnableInputView();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 std::map<int, int> candidate_indexes_; 138 std::map<int, int> candidate_indexes_;
139 139
140 // Used with SendKeyEvents and ProcessKeyEvent to check if the key event 140 // Used with SendKeyEvents and ProcessKeyEvent to check if the key event
141 // sent to ProcessKeyEvent is sent by SendKeyEvents. 141 // sent to ProcessKeyEvent is sent by SendKeyEvents.
142 const ui::KeyEvent* sent_key_event_; 142 const ui::KeyEvent* sent_key_event_;
143 }; 143 };
144 144
145 } // namespace chromeos 145 } // namespace chromeos
146 146
147 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 147 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698