| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ui/keyboard/keyboard_controller.h" | 5 #include "ui/keyboard/keyboard_controller.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "content/public/browser/render_widget_host.h" | 11 #include "content/public/browser/render_widget_host.h" |
| 12 #include "content/public/browser/render_widget_host_iterator.h" | 12 #include "content/public/browser/render_widget_host_iterator.h" |
| 13 #include "content/public/browser/render_widget_host_view.h" | 13 #include "content/public/browser/render_widget_host_view.h" |
| 14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
| 15 #include "ui/aura/window_delegate.h" | 15 #include "ui/aura/window_delegate.h" |
| 16 #include "ui/aura/window_observer.h" | 16 #include "ui/aura/window_observer.h" |
| 17 #include "ui/base/cursor/cursor.h" | 17 #include "ui/base/cursor/cursor.h" |
| 18 #include "ui/base/hit_test.h" | 18 #include "ui/base/hit_test.h" |
| 19 #include "ui/base/ime/input_method.h" | 19 #include "ui/base/ime/input_method.h" |
| 20 #include "ui/base/ime/text_input_client.h" | 20 #include "ui/base/ime/text_input_client.h" |
| 21 #include "ui/compositor/layer_animation_observer.h" | 21 #include "ui/compositor/layer_animation_observer.h" |
| 22 #include "ui/compositor/scoped_layer_animation_settings.h" | 22 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 23 #include "ui/gfx/geometry/rect.h" |
| 23 #include "ui/gfx/path.h" | 24 #include "ui/gfx/path.h" |
| 24 #include "ui/gfx/rect.h" | |
| 25 #include "ui/gfx/skia_util.h" | 25 #include "ui/gfx/skia_util.h" |
| 26 #include "ui/keyboard/keyboard_controller_observer.h" | 26 #include "ui/keyboard/keyboard_controller_observer.h" |
| 27 #include "ui/keyboard/keyboard_controller_proxy.h" | 27 #include "ui/keyboard/keyboard_controller_proxy.h" |
| 28 #include "ui/keyboard/keyboard_layout_manager.h" | 28 #include "ui/keyboard/keyboard_layout_manager.h" |
| 29 #include "ui/keyboard/keyboard_util.h" | 29 #include "ui/keyboard/keyboard_util.h" |
| 30 #include "ui/wm/core/masked_window_targeter.h" | 30 #include "ui/wm/core/masked_window_targeter.h" |
| 31 | 31 |
| 32 #if defined(OS_CHROMEOS) | 32 #if defined(OS_CHROMEOS) |
| 33 #include "base/process/launch.h" | 33 #include "base/process/launch.h" |
| 34 #include "base/sys_info.h" | 34 #include "base/sys_info.h" |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 proxy_->HideKeyboardContainer(container_.get()); | 564 proxy_->HideKeyboardContainer(container_.get()); |
| 565 } | 565 } |
| 566 | 566 |
| 567 void KeyboardController::AddBoundsChangedObserver(aura::Window* window) { | 567 void KeyboardController::AddBoundsChangedObserver(aura::Window* window) { |
| 568 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; | 568 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; |
| 569 if (target_window) | 569 if (target_window) |
| 570 window_bounds_observer_->AddObservedWindow(target_window); | 570 window_bounds_observer_->AddObservedWindow(target_window); |
| 571 } | 571 } |
| 572 | 572 |
| 573 } // namespace keyboard | 573 } // namespace keyboard |
| OLD | NEW |