| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/input_method/input_method_engine_base.h" | 5 #include "chrome/browser/ui/input_method/input_method_engine_base.h" |
| 6 | 6 |
| 7 #undef FocusIn | 7 #undef FocusIn |
| 8 #undef FocusOut | 8 #undef FocusOut |
| 9 #undef RootWindow | 9 #undef RootWindow |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <map> | 11 #include <map> |
| 12 | 12 |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 void InputMethodEngineBase::SetSurroundingText(const std::string& text, | 395 void InputMethodEngineBase::SetSurroundingText(const std::string& text, |
| 396 uint32_t cursor_pos, | 396 uint32_t cursor_pos, |
| 397 uint32_t anchor_pos, | 397 uint32_t anchor_pos, |
| 398 uint32_t offset_pos) { | 398 uint32_t offset_pos) { |
| 399 observer_->OnSurroundingTextChanged( | 399 observer_->OnSurroundingTextChanged( |
| 400 active_component_id_, text, static_cast<int>(cursor_pos), | 400 active_component_id_, text, static_cast<int>(cursor_pos), |
| 401 static_cast<int>(anchor_pos), static_cast<int>(offset_pos)); | 401 static_cast<int>(anchor_pos), static_cast<int>(offset_pos)); |
| 402 } | 402 } |
| 403 | 403 |
| 404 } // namespace input_method | 404 } // namespace input_method |
| OLD | NEW |