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

Side by Side Diff: ui/base/ime/chromeos/input_method_manager.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 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
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_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory>
11 #include <string> 12 #include <string>
12 #include <vector> 13 #include <vector>
13 14
14 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h"
16 #include "ui/base/ime/chromeos/input_method_descriptor.h" 16 #include "ui/base/ime/chromeos/input_method_descriptor.h"
17 #include "ui/base/ime/ui_base_ime_export.h" 17 #include "ui/base/ime/ui_base_ime_export.h"
18 18
19 class Profile; 19 class Profile;
20 20
21 namespace ui { 21 namespace ui {
22 class Accelerator; 22 class Accelerator;
23 class IMEEngineHandlerInterface; 23 class IMEEngineHandlerInterface;
24 } // namespace ui 24 } // namespace ui
25 25
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const std::vector<std::string>& initial_layouts) = 0; 152 const std::vector<std::string>& initial_layouts) = 0;
153 153
154 // Filters current state layouts and leaves only suitable for lock screen. 154 // Filters current state layouts and leaves only suitable for lock screen.
155 virtual void EnableLockScreenLayouts() = 0; 155 virtual void EnableLockScreenLayouts() = 0;
156 156
157 // Returns a list of descriptors for all Input Method Extensions. 157 // Returns a list of descriptors for all Input Method Extensions.
158 virtual void GetInputMethodExtensions(InputMethodDescriptors* result) = 0; 158 virtual void GetInputMethodExtensions(InputMethodDescriptors* result) = 0;
159 159
160 // Returns the list of input methods we can select (i.e. active) including 160 // Returns the list of input methods we can select (i.e. active) including
161 // extension input methods. 161 // extension input methods.
162 virtual scoped_ptr<InputMethodDescriptors> GetActiveInputMethods() 162 virtual std::unique_ptr<InputMethodDescriptors> GetActiveInputMethods()
163 const = 0; 163 const = 0;
164 164
165 // Returns the list of input methods we can select (i.e. active) including 165 // Returns the list of input methods we can select (i.e. active) including
166 // extension input methods. 166 // extension input methods.
167 // The same as GetActiveInputMethods but returns reference to internal list. 167 // The same as GetActiveInputMethods but returns reference to internal list.
168 virtual const std::vector<std::string>& GetActiveInputMethodIds() const = 0; 168 virtual const std::vector<std::string>& GetActiveInputMethodIds() const = 0;
169 169
170 // Returns the number of active input methods including extension input 170 // Returns the number of active input methods including extension input
171 // methods. 171 // methods.
172 virtual size_t GetNumActiveInputMethods() const = 0; 172 virtual size_t GetNumActiveInputMethods() const = 0;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 CandidateWindowObserver* observer) = 0; 248 CandidateWindowObserver* observer) = 0;
249 virtual void AddImeMenuObserver(ImeMenuObserver* observer) = 0; 249 virtual void AddImeMenuObserver(ImeMenuObserver* observer) = 0;
250 virtual void RemoveObserver(Observer* observer) = 0; 250 virtual void RemoveObserver(Observer* observer) = 0;
251 virtual void RemoveCandidateWindowObserver( 251 virtual void RemoveCandidateWindowObserver(
252 CandidateWindowObserver* observer) = 0; 252 CandidateWindowObserver* observer) = 0;
253 virtual void RemoveImeMenuObserver(ImeMenuObserver* observer) = 0; 253 virtual void RemoveImeMenuObserver(ImeMenuObserver* observer) = 0;
254 254
255 // Returns all input methods that are supported, including ones not active. 255 // Returns all input methods that are supported, including ones not active.
256 // This function never returns NULL. Note that input method extensions are NOT 256 // This function never returns NULL. Note that input method extensions are NOT
257 // included in the result. 257 // included in the result.
258 virtual scoped_ptr<InputMethodDescriptors> 258 virtual std::unique_ptr<InputMethodDescriptors> GetSupportedInputMethods()
259 GetSupportedInputMethods() const = 0; 259 const = 0;
260 260
261 // Activates the input method property specified by the |key|. 261 // Activates the input method property specified by the |key|.
262 virtual void ActivateInputMethodMenuItem(const std::string& key) = 0; 262 virtual void ActivateInputMethodMenuItem(const std::string& key) = 0;
263 263
264 virtual bool IsISOLevel5ShiftUsedByCurrentInputMethod() const = 0; 264 virtual bool IsISOLevel5ShiftUsedByCurrentInputMethod() const = 0;
265 265
266 virtual bool IsAltGrUsedByCurrentInputMethod() const = 0; 266 virtual bool IsAltGrUsedByCurrentInputMethod() const = 0;
267 267
268 // Returns an X keyboard object which could be used to change the current XKB 268 // Returns an X keyboard object which could be used to change the current XKB
269 // layout, change the caps lock status, and set the auto repeat rate/interval. 269 // layout, change the caps lock status, and set the auto repeat rate/interval.
(...skipping 28 matching lines...) Expand all
298 // called to update the IME menu items. 298 // called to update the IME menu items.
299 virtual void NotifyImeMenuItemsChanged( 299 virtual void NotifyImeMenuItemsChanged(
300 const std::string& engine_id, 300 const std::string& engine_id,
301 const std::vector<MenuItem>& items) = 0; 301 const std::vector<MenuItem>& items) = 0;
302 }; 302 };
303 303
304 } // namespace input_method 304 } // namespace input_method
305 } // namespace chromeos 305 } // namespace chromeos
306 306
307 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ 307 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/ime_keyboard_x11_unittest.cc ('k') | ui/base/ime/chromeos/input_method_whitelist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698