| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 namespace wm { | 27 namespace wm { |
| 28 class Shadow; | 28 class Shadow; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace keyboard { | 31 namespace keyboard { |
| 32 | 32 |
| 33 class WindowBoundsChangeObserver; | 33 class WindowBoundsChangeObserver; |
| 34 | 34 |
| 35 // An implementation of KeyboardUI that uses a content::WebContents to implement | 35 // An implementation of KeyboardUI that uses a content::WebContents to implement |
| 36 // the keyboard. | 36 // the keyboard. |
| 37 class KEYBOARD_EXPORT KeyboardUIContent : public KeyboardUI, | 37 class KeyboardUIContent : public KeyboardUI, |
| 38 public aura::WindowObserver { | 38 public aura::WindowObserver { |
| 39 public: | 39 public: |
| 40 class TestApi { | 40 class TestApi { |
| 41 public: | 41 public: |
| 42 explicit TestApi(KeyboardUIContent* ui) : ui_(ui) {} | 42 explicit TestApi(KeyboardUIContent* ui) : ui_(ui) {} |
| 43 | 43 |
| 44 const content::WebContents* keyboard_contents() { | 44 const content::WebContents* keyboard_contents() { |
| 45 return ui_->keyboard_contents_.get(); | 45 return ui_->keyboard_contents_.get(); |
| 46 } | 46 } |
| 47 | 47 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 std::unique_ptr<wm::Shadow> shadow_; | 118 std::unique_ptr<wm::Shadow> shadow_; |
| 119 | 119 |
| 120 std::unique_ptr<WindowBoundsChangeObserver> window_bounds_observer_; | 120 std::unique_ptr<WindowBoundsChangeObserver> window_bounds_observer_; |
| 121 | 121 |
| 122 DISALLOW_COPY_AND_ASSIGN(KeyboardUIContent); | 122 DISALLOW_COPY_AND_ASSIGN(KeyboardUIContent); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace keyboard | 125 } // namespace keyboard |
| 126 | 126 |
| 127 #endif // UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ | 127 #endif // UI_KEYBOARD_CONTENT_KEYBOARD_UI_CONTENT_H_ |
| OLD | NEW |