| 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/content/keyboard_ui_content.h" | 5 #include "ui/keyboard/content/keyboard_ui_content.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
| 11 #include "content/public/browser/render_widget_host_iterator.h" | 11 #include "content/public/browser/render_widget_host_iterator.h" |
| 12 #include "content/public/browser/render_widget_host_view.h" | 12 #include "content/public/browser/render_widget_host_view.h" |
| 13 #include "content/public/browser/site_instance.h" | 13 #include "content/public/browser/site_instance.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 #include "content/public/browser/web_contents_delegate.h" | 15 #include "content/public/browser/web_contents_delegate.h" |
| 16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
| 17 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 18 #include "content/public/common/bindings_policy.h" | 18 #include "content/public/common/bindings_policy.h" |
| 19 #include "ui/aura/layout_manager.h" | 19 #include "ui/aura/layout_manager.h" |
| 20 #include "ui/aura/window.h" | 20 #include "ui/aura/window.h" |
| 21 #include "ui/base/ime/input_method.h" | 21 #include "ui/base/ime/input_method.h" |
| 22 #include "ui/base/ime/text_input_client.h" | 22 #include "ui/base/ime/text_input_client.h" |
| 23 #include "ui/gfx/geometry/insets.h" |
| 23 #include "ui/keyboard/content/keyboard_constants.h" | 24 #include "ui/keyboard/content/keyboard_constants.h" |
| 24 #include "ui/keyboard/keyboard_controller.h" | 25 #include "ui/keyboard/keyboard_controller.h" |
| 25 #include "ui/keyboard/keyboard_switches.h" | 26 #include "ui/keyboard/keyboard_switches.h" |
| 26 #include "ui/keyboard/keyboard_util.h" | 27 #include "ui/keyboard/keyboard_util.h" |
| 27 #include "ui/wm/core/shadow.h" | 28 #include "ui/wm/core/shadow.h" |
| 28 #include "ui/wm/core/shadow_types.h" | 29 #include "ui/wm/core/shadow_types.h" |
| 29 | 30 |
| 30 namespace { | 31 namespace { |
| 31 | 32 |
| 32 // The WebContentsDelegate for the keyboard. | 33 // The WebContentsDelegate for the keyboard. |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 keyboard_controller()->keyboard_visible()); | 348 keyboard_controller()->keyboard_visible()); |
| 348 } | 349 } |
| 349 | 350 |
| 350 void KeyboardUIContent::AddBoundsChangedObserver(aura::Window* window) { | 351 void KeyboardUIContent::AddBoundsChangedObserver(aura::Window* window) { |
| 351 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; | 352 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; |
| 352 if (target_window) | 353 if (target_window) |
| 353 window_bounds_observer_->AddObservedWindow(target_window); | 354 window_bounds_observer_->AddObservedWindow(target_window); |
| 354 } | 355 } |
| 355 | 356 |
| 356 } // namespace keyboard | 357 } // namespace keyboard |
| OLD | NEW |