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" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 ~KeyboardWindowDelegate() override {} | 86 ~KeyboardWindowDelegate() override {} |
87 | 87 |
88 private: | 88 private: |
89 // Overridden from aura::WindowDelegate: | 89 // Overridden from aura::WindowDelegate: |
90 gfx::Size GetMinimumSize() const override { return gfx::Size(); } | 90 gfx::Size GetMinimumSize() const override { return gfx::Size(); } |
91 gfx::Size GetMaximumSize() const override { return gfx::Size(); } | 91 gfx::Size GetMaximumSize() const override { return gfx::Size(); } |
92 void OnBoundsChanged(const gfx::Rect& old_bounds, | 92 void OnBoundsChanged(const gfx::Rect& old_bounds, |
93 const gfx::Rect& new_bounds) override { | 93 const gfx::Rect& new_bounds) override { |
94 bounds_ = new_bounds; | 94 bounds_ = new_bounds; |
95 } | 95 } |
| 96 ui::TextInputClient* GetFocusedTextInputClient() override { |
| 97 return nullptr; |
| 98 } |
96 gfx::NativeCursor GetCursor(const gfx::Point& point) override { | 99 gfx::NativeCursor GetCursor(const gfx::Point& point) override { |
97 return gfx::kNullCursor; | 100 return gfx::kNullCursor; |
98 } | 101 } |
99 int GetNonClientComponent(const gfx::Point& point) const override { | 102 int GetNonClientComponent(const gfx::Point& point) const override { |
100 return HTNOWHERE; | 103 return HTNOWHERE; |
101 } | 104 } |
102 bool ShouldDescendIntoChildForEventHandling( | 105 bool ShouldDescendIntoChildForEventHandling( |
103 aura::Window* child, | 106 aura::Window* child, |
104 const gfx::Point& location) override { | 107 const gfx::Point& location) override { |
105 return true; | 108 return true; |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 proxy_->HideKeyboardContainer(container_.get()); | 567 proxy_->HideKeyboardContainer(container_.get()); |
565 } | 568 } |
566 | 569 |
567 void KeyboardController::AddBoundsChangedObserver(aura::Window* window) { | 570 void KeyboardController::AddBoundsChangedObserver(aura::Window* window) { |
568 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; | 571 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; |
569 if (target_window) | 572 if (target_window) |
570 window_bounds_observer_->AddObservedWindow(target_window); | 573 window_bounds_observer_->AddObservedWindow(target_window); |
571 } | 574 } |
572 | 575 |
573 } // namespace keyboard | 576 } // namespace keyboard |
OLD | NEW |