| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |