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/values.h" | 9 #include "base/values.h" |
9 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
10 #include "content/public/browser/render_widget_host_iterator.h" | 11 #include "content/public/browser/render_widget_host_iterator.h" |
11 #include "content/public/browser/render_widget_host_view.h" | 12 #include "content/public/browser/render_widget_host_view.h" |
12 #include "content/public/browser/site_instance.h" | 13 #include "content/public/browser/site_instance.h" |
13 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
14 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
15 #include "content/public/browser/web_contents_delegate.h" | 16 #include "content/public/browser/web_contents_delegate.h" |
16 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
17 #include "content/public/browser/web_ui.h" | 18 #include "content/public/browser/web_ui.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 keyboard_controller()->keyboard_visible()); | 322 keyboard_controller()->keyboard_visible()); |
322 } | 323 } |
323 | 324 |
324 void KeyboardUIContent::AddBoundsChangedObserver(aura::Window* window) { | 325 void KeyboardUIContent::AddBoundsChangedObserver(aura::Window* window) { |
325 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; | 326 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; |
326 if (target_window) | 327 if (target_window) |
327 window_bounds_observer_->AddObservedWindow(target_window); | 328 window_bounds_observer_->AddObservedWindow(target_window); |
328 } | 329 } |
329 | 330 |
330 } // namespace keyboard | 331 } // namespace keyboard |
OLD | NEW |