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

Side by Side Diff: ash/shell.cc

Issue 298893003: Supports fake key events for setComposition/commitText by on-screen keyboards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | ui/base/ime/input_method_chromeos.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/accelerators/accelerator_controller.h" 10 #include "ash/accelerators/accelerator_controller.h"
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 void Shell::OnEvent(ui::Event* event) { 1148 void Shell::OnEvent(ui::Event* event) {
1149 } 1149 }
1150 1150
1151 //////////////////////////////////////////////////////////////////////////////// 1151 ////////////////////////////////////////////////////////////////////////////////
1152 // Shell, aura::client::ActivationChangeObserver implementation: 1152 // Shell, aura::client::ActivationChangeObserver implementation:
1153 1153
1154 void Shell::OnWindowActivated(aura::Window* gained_active, 1154 void Shell::OnWindowActivated(aura::Window* gained_active,
1155 aura::Window* lost_active) { 1155 aura::Window* lost_active) {
1156 if (gained_active) 1156 if (gained_active)
1157 target_root_window_ = gained_active->GetRootWindow(); 1157 target_root_window_ = gained_active->GetRootWindow();
1158 input_method_filter_->UpdateTargetDispatcher(
1159 target_root_window_ ? target_root_window_->GetHost()->event_processor()
1160 : NULL);
sadrul 2014/05/31 18:10:16 The problem with this is that all non-ash users of
Shu Chen 2014/06/01 05:33:23 Done.
1158 } 1161 }
1159 1162
1160 } // namespace ash 1163 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/input_method_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698