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

Side by Side Diff: chrome/browser/ui/ash/ash_keyboard_controller_proxy.h

Issue 276483002: Fix calculation of usable area of screen when VK is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unit test Created 6 years, 7 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 | Annotate | Revision Log
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 CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_
6 #define CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_ 6 #define CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 28 matching lines...) Expand all
39 void OnRequest(const ExtensionHostMsg_Request_Params& params); 39 void OnRequest(const ExtensionHostMsg_Request_Params& params);
40 40
41 // keyboard::KeyboardControllerProxy overrides 41 // keyboard::KeyboardControllerProxy overrides
42 virtual content::BrowserContext* GetBrowserContext() OVERRIDE; 42 virtual content::BrowserContext* GetBrowserContext() OVERRIDE;
43 virtual ui::InputMethod* GetInputMethod() OVERRIDE; 43 virtual ui::InputMethod* GetInputMethod() OVERRIDE;
44 virtual void RequestAudioInput(content::WebContents* web_contents, 44 virtual void RequestAudioInput(content::WebContents* web_contents,
45 const content::MediaStreamRequest& request, 45 const content::MediaStreamRequest& request,
46 const content::MediaResponseCallback& callback) OVERRIDE; 46 const content::MediaResponseCallback& callback) OVERRIDE;
47 virtual void SetupWebContents(content::WebContents* contents) OVERRIDE; 47 virtual void SetupWebContents(content::WebContents* contents) OVERRIDE;
48 virtual void ShowKeyboardContainer(aura::Window* container) OVERRIDE; 48 virtual void ShowKeyboardContainer(aura::Window* container) OVERRIDE;
49 virtual void EnsureCaretInWorkArea() OVERRIDE;
50 49
51 // The overridden implementation dispatches 50 // The overridden implementation dispatches
52 // chrome.virtualKeyboardPrivate.onTextInputBoxFocused event to extension to 51 // chrome.virtualKeyboardPrivate.onTextInputBoxFocused event to extension to
53 // provide the input type information. Naturally, when the virtual keyboard 52 // provide the input type information. Naturally, when the virtual keyboard
54 // extension is used as an IME then chrome.input.ime.onFocus provides the 53 // extension is used as an IME then chrome.input.ime.onFocus provides the
55 // information, but not when the virtual keyboard is used in conjunction with 54 // information, but not when the virtual keyboard is used in conjunction with
56 // another IME. virtualKeyboardPrivate.onTextInputBoxFocused is the remedy in 55 // another IME. virtualKeyboardPrivate.onTextInputBoxFocused is the remedy in
57 // that case. 56 // that case.
58 virtual void SetUpdateInputType(ui::TextInputType type) OVERRIDE; 57 virtual void SetUpdateInputType(ui::TextInputType type) OVERRIDE;
59 58
60 // extensions::ExtensionFunctionDispatcher::Delegate overrides 59 // extensions::ExtensionFunctionDispatcher::Delegate overrides
61 virtual extensions::WindowController* GetExtensionWindowController() const 60 virtual extensions::WindowController* GetExtensionWindowController() const
62 OVERRIDE; 61 OVERRIDE;
63 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; 62 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
64 63
65 // content::WebContentsObserver overrides 64 // content::WebContentsObserver overrides
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 65 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
67 66
68 scoped_ptr<extensions::ExtensionFunctionDispatcher> 67 scoped_ptr<extensions::ExtensionFunctionDispatcher>
69 extension_function_dispatcher_; 68 extension_function_dispatcher_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(AshKeyboardControllerProxy); 70 DISALLOW_COPY_AND_ASSIGN(AshKeyboardControllerProxy);
72 }; 71 };
73 72
74 #endif // CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_ 73 #endif // CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698