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

Side by Side Diff: ui/base/ime/linux/fake_input_method_context_factory.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 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_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ 5 #ifndef UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_
6 #define UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ 6 #define UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/base/ime/linux/linux_input_method_context_factory.h" 9 #include "ui/base/ime/linux/linux_input_method_context_factory.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 // An implementation of LinuxInputMethodContextFactory, which creates and 13 // An implementation of LinuxInputMethodContextFactory, which creates and
14 // returns FakeInputMethodContext's. 14 // returns FakeInputMethodContext's.
15 class FakeInputMethodContextFactory : public LinuxInputMethodContextFactory { 15 class FakeInputMethodContextFactory : public LinuxInputMethodContextFactory {
16 public: 16 public:
17 FakeInputMethodContextFactory(); 17 FakeInputMethodContextFactory();
18 18
19 // LinuxInputMethodContextFactory: 19 // LinuxInputMethodContextFactory:
20 scoped_ptr<LinuxInputMethodContext> CreateInputMethodContext( 20 std::unique_ptr<LinuxInputMethodContext> CreateInputMethodContext(
21 LinuxInputMethodContextDelegate* delegate, 21 LinuxInputMethodContextDelegate* delegate,
22 bool is_simple) const override; 22 bool is_simple) const override;
23 23
24 private: 24 private:
25 DISALLOW_COPY_AND_ASSIGN(FakeInputMethodContextFactory); 25 DISALLOW_COPY_AND_ASSIGN(FakeInputMethodContextFactory);
26 }; 26 };
27 27
28 } // namespace ui 28 } // namespace ui
29 29
30 #endif // UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ 30 #endif // UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_factory.cc ('k') | ui/base/ime/linux/fake_input_method_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698