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

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

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 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ 5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_
6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ 6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/common/media_stream_request.h" 9 #include "content/public/common/media_stream_request.h"
10 #include "ui/aura/window_observer.h" 10 #include "ui/aura/window_observer.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ~KeyboardControllerProxy() override; 55 ~KeyboardControllerProxy() override;
56 56
57 // Gets the virtual keyboard window. Ownership of the returned Window remains 57 // Gets the virtual keyboard window. Ownership of the returned Window remains
58 // with the proxy. 58 // with the proxy.
59 virtual aura::Window* GetKeyboardWindow(); 59 virtual aura::Window* GetKeyboardWindow();
60 60
61 // Whether the keyboard window is created. The keyboard window is tied to a 61 // Whether the keyboard window is created. The keyboard window is tied to a
62 // WebContent so we can just check if the WebContent is created or not. 62 // WebContent so we can just check if the WebContent is created or not.
63 virtual bool HasKeyboardWindow() const; 63 virtual bool HasKeyboardWindow() const;
64 64
65 // Whether this window should do an overscroll to avoid occlusion by the
66 // virtual keyboard. IME windows and virtual keyboard windows should always
67 // avoid overscroll.
68 virtual bool ShouldWindowOverscroll(aura::Window* window) const;
69
65 // Gets the InputMethod that will provide notifications about changes in the 70 // Gets the InputMethod that will provide notifications about changes in the
66 // text input context. 71 // text input context.
67 virtual ui::InputMethod* GetInputMethod() = 0; 72 virtual ui::InputMethod* GetInputMethod() = 0;
68 73
69 // Requests the audio input from microphone for speech input. 74 // Requests the audio input from microphone for speech input.
70 virtual void RequestAudioInput(content::WebContents* web_contents, 75 virtual void RequestAudioInput(content::WebContents* web_contents,
71 const content::MediaStreamRequest& request, 76 const content::MediaStreamRequest& request,
72 const content::MediaResponseCallback& callback) = 0; 77 const content::MediaResponseCallback& callback) = 0;
73 78
74 // Shows the container window of the keyboard. The default implementation 79 // Shows the container window of the keyboard. The default implementation
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 147
143 scoped_ptr<content::WebContents> keyboard_contents_; 148 scoped_ptr<content::WebContents> keyboard_contents_;
144 scoped_ptr<wm::Shadow> shadow_; 149 scoped_ptr<wm::Shadow> shadow_;
145 150
146 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); 151 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy);
147 }; 152 };
148 153
149 } // namespace keyboard 154 } // namespace keyboard
150 155
151 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ 156 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698