| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CONTENT_KEYBOARD_UI_CONTENT_H_ | 5 #ifndef UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ |
| 6 #define UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ | 6 #define UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/public/common/media_stream_request.h" | 11 #include "content/public/common/media_stream_request.h" |
| 12 #include "ui/aura/window_observer.h" | 12 #include "ui/aura/window_observer.h" |
| 13 #include "ui/base/ime/text_input_type.h" | 13 #include "ui/base/ime/text_input_type.h" |
| 14 #include "ui/keyboard/keyboard_export.h" | 14 #include "ui/keyboard/keyboard_export.h" |
| 15 #include "ui/keyboard/keyboard_ui.h" | 15 #include "ui/keyboard/keyboard_ui.h" |
| 16 | 16 |
| 17 namespace aura { | 17 namespace aura { |
| 18 class Window; | 18 class Window; |
| 19 } | 19 } |
| 20 namespace content { | 20 namespace content { |
| 21 class BrowserContext; | 21 class BrowserContext; |
| 22 class SiteInstance; | |
| 23 class WebContents; | 22 class WebContents; |
| 24 } | 23 } |
| 25 namespace gfx { | 24 namespace gfx { |
| 26 class Rect; | 25 class Rect; |
| 27 } | 26 } |
| 28 namespace ui { | |
| 29 class InputMethod; | |
| 30 } | |
| 31 namespace wm { | 27 namespace wm { |
| 32 class Shadow; | 28 class Shadow; |
| 33 } | 29 } |
| 34 | 30 |
| 35 namespace keyboard { | 31 namespace keyboard { |
| 36 | 32 |
| 37 class KeyboardController; | |
| 38 class WindowBoundsChangeObserver; | 33 class WindowBoundsChangeObserver; |
| 39 | 34 |
| 40 // An implementation of KeyboardUI that uses a content::WebContents to implement | 35 // An implementation of KeyboardUI that uses a content::WebContents to implement |
| 41 //the keyboard. | 36 //the keyboard. |
| 42 class KEYBOARD_EXPORT KeyboardUIContent : public KeyboardUI, | 37 class KEYBOARD_EXPORT KeyboardUIContent : public KeyboardUI, |
| 43 public aura::WindowObserver { | 38 public aura::WindowObserver { |
| 44 public: | 39 public: |
| 45 class TestApi { | 40 class TestApi { |
| 46 public: | 41 public: |
| 47 explicit TestApi(KeyboardUIContent* ui) : ui_(ui) {} | 42 explicit TestApi(KeyboardUIContent* ui) : ui_(ui) {} |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 std::unique_ptr<wm::Shadow> shadow_; | 118 std::unique_ptr<wm::Shadow> shadow_; |
| 124 | 119 |
| 125 std::unique_ptr<WindowBoundsChangeObserver> window_bounds_observer_; | 120 std::unique_ptr<WindowBoundsChangeObserver> window_bounds_observer_; |
| 126 | 121 |
| 127 DISALLOW_COPY_AND_ASSIGN(KeyboardUIContent); | 122 DISALLOW_COPY_AND_ASSIGN(KeyboardUIContent); |
| 128 }; | 123 }; |
| 129 | 124 |
| 130 } // namespace keyboard | 125 } // namespace keyboard |
| 131 | 126 |
| 132 #endif // UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ | 127 #endif // UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ |
| OLD | NEW |