Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: ui/keyboard/keyboard_controller_proxy.cc

Issue 1323053005: Fix cropped floating gesture candidate window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« ui/keyboard/keyboard_controller.cc ('K') | « ui/keyboard/keyboard_controller_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698