| 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_proxy.h" | 5 #include "ui/keyboard/keyboard_controller_proxy.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "content/public/browser/site_instance.h" | 9 #include "content/public/browser/site_instance.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 keyboard_contents_->GetNativeView()->AddObserver(this); | 144 keyboard_contents_->GetNativeView()->AddObserver(this); |
| 145 } | 145 } |
| 146 | 146 |
| 147 return keyboard_contents_->GetNativeView(); | 147 return keyboard_contents_->GetNativeView(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 bool KeyboardControllerProxy::HasKeyboardWindow() const { | 150 bool KeyboardControllerProxy::HasKeyboardWindow() const { |
| 151 return keyboard_contents_; | 151 return keyboard_contents_; |
| 152 } | 152 } |
| 153 | 153 |
| 154 bool KeyboardControllerProxy::ShouldWindowOverscroll( |
| 155 aura::Window* window) const { |
| 156 return true; |
| 157 } |
| 158 |
| 154 void KeyboardControllerProxy::ShowKeyboardContainer(aura::Window* container) { | 159 void KeyboardControllerProxy::ShowKeyboardContainer(aura::Window* container) { |
| 155 GetKeyboardWindow()->Show(); | 160 GetKeyboardWindow()->Show(); |
| 156 container->Show(); | 161 container->Show(); |
| 157 } | 162 } |
| 158 | 163 |
| 159 void KeyboardControllerProxy::HideKeyboardContainer(aura::Window* container) { | 164 void KeyboardControllerProxy::HideKeyboardContainer(aura::Window* container) { |
| 160 container->Hide(); | 165 container->Hide(); |
| 161 GetKeyboardWindow()->Hide(); | 166 GetKeyboardWindow()->Hide(); |
| 162 } | 167 } |
| 163 | 168 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 } | 228 } |
| 224 | 229 |
| 225 shadow_->SetContentBounds(new_bounds); | 230 shadow_->SetContentBounds(new_bounds); |
| 226 } | 231 } |
| 227 | 232 |
| 228 void KeyboardControllerProxy::OnWindowDestroyed(aura::Window* window) { | 233 void KeyboardControllerProxy::OnWindowDestroyed(aura::Window* window) { |
| 229 window->RemoveObserver(this); | 234 window->RemoveObserver(this); |
| 230 } | 235 } |
| 231 | 236 |
| 232 } // namespace keyboard | 237 } // namespace keyboard |
| OLD | NEW |