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

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

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes 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 #include "chrome/browser/chromeos/input_method/input_method_engine.h" 5 #include "chrome/browser/chromeos/input_method/input_method_engine.h"
6 6
7 #include <memory>
7 #include <utility> 8 #include <utility>
8 9
9 #undef FocusIn 10 #undef FocusIn
10 #undef FocusOut 11 #undef FocusOut
11 #undef RootWindow 12 #undef RootWindow
12 #include <map> 13 #include <map>
13 14
14 #include "ash/shell.h" 15 #include "ash/shell.h"
15 #include "base/logging.h" 16 #include "base/logging.h"
16 #include "base/memory/scoped_ptr.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
21 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
22 #include "chrome/browser/profiles/profile_manager.h" 22 #include "chrome/browser/profiles/profile_manager.h"
23 #include "ui/aura/window.h" 23 #include "ui/aura/window.h"
24 #include "ui/aura/window_tree_host.h" 24 #include "ui/aura/window_tree_host.h"
25 #include "ui/base/ime/candidate_window.h" 25 #include "ui/base/ime/candidate_window.h"
26 #include "ui/base/ime/chromeos/component_extension_ime_manager.h" 26 #include "ui/base/ime/chromeos/component_extension_ime_manager.h"
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 if (event->key_code() == ui::VKEY_UNKNOWN) 330 if (event->key_code() == ui::VKEY_UNKNOWN)
331 event->set_key_code(ui::DomKeycodeToKeyboardCode(code)); 331 event->set_key_code(ui::DomKeycodeToKeyboardCode(code));
332 332
333 ui::EventProcessor* dispatcher = 333 ui::EventProcessor* dispatcher =
334 ash::Shell::GetPrimaryRootWindow()->GetHost()->event_processor(); 334 ash::Shell::GetPrimaryRootWindow()->GetHost()->event_processor();
335 ui::EventDispatchDetails details = dispatcher->OnEventFromSource(event); 335 ui::EventDispatchDetails details = dispatcher->OnEventFromSource(event);
336 return !details.dispatcher_destroyed; 336 return !details.dispatcher_destroyed;
337 } 337 }
338 338
339 } // namespace chromeos 339 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698