| 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 #ifndef CHROME_BROWSER_UI_ASH_CHROME_KEYBOARD_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_KEYBOARD_UI_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_CHROME_KEYBOARD_UI_H_ | 6 #define CHROME_BROWSER_UI_ASH_CHROME_KEYBOARD_UI_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
| 11 #include "ui/keyboard/content/keyboard_ui_content.h" | 12 #include "ui/keyboard/content/keyboard_ui_content.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 class BrowserContext; | 15 class BrowserContext; |
| 15 class WebContents; | 16 class WebContents; |
| 16 } | 17 } |
| 17 namespace extensions { | 18 namespace extensions { |
| 18 class ExtensionFunctionDispatcher; | 19 class ExtensionFunctionDispatcher; |
| 19 class WindowController; | 20 class WindowController; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // provide the input type information. Naturally, when the virtual keyboard | 57 // provide the input type information. Naturally, when the virtual keyboard |
| 57 // extension is used as an IME then chrome.input.ime.onFocus provides the | 58 // extension is used as an IME then chrome.input.ime.onFocus provides the |
| 58 // information, but not when the virtual keyboard is used in conjunction with | 59 // information, but not when the virtual keyboard is used in conjunction with |
| 59 // another IME. virtualKeyboardPrivate.onTextInputBoxFocused is the remedy in | 60 // another IME. virtualKeyboardPrivate.onTextInputBoxFocused is the remedy in |
| 60 // that case. | 61 // that case. |
| 61 void SetUpdateInputType(ui::TextInputType type) override; | 62 void SetUpdateInputType(ui::TextInputType type) override; |
| 62 | 63 |
| 63 // content::WebContentsObserver overrides | 64 // content::WebContentsObserver overrides |
| 64 void RenderViewCreated(content::RenderViewHost* render_view_host) override; | 65 void RenderViewCreated(content::RenderViewHost* render_view_host) override; |
| 65 | 66 |
| 66 scoped_ptr<keyboard::KeyboardControllerObserver> observer_; | 67 std::unique_ptr<keyboard::KeyboardControllerObserver> observer_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(ChromeKeyboardUI); | 69 DISALLOW_COPY_AND_ASSIGN(ChromeKeyboardUI); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 #endif // CHROME_BROWSER_UI_ASH_CHROME_KEYBOARD_UI_H_ | 72 #endif // CHROME_BROWSER_UI_ASH_CHROME_KEYBOARD_UI_H_ |
| OLD | NEW |