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

Side by Side Diff: ash/test/test_keyboard_ui.h

Issue 1323053005: Fix cropped floating gesture candidate window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile 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
« no previous file with comments | « no previous file | ash/test/test_keyboard_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ASH_TEST_TEST_KEYBOARD_UI_H_ 5 #ifndef ASH_TEST_TEST_KEYBOARD_UI_H_
6 #define ASH_TEST_TEST_KEYBOARD_UI_H_ 6 #define ASH_TEST_TEST_KEYBOARD_UI_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/test/test_window_delegate.h" 9 #include "ui/aura/test/test_window_delegate.h"
10 #include "ui/keyboard/keyboard_ui.h" 10 #include "ui/keyboard/keyboard_ui.h"
11 11
12 namespace aura { 12 namespace aura {
13 class Window; 13 class Window;
14 } // namespace aura 14 } // namespace aura
15 15
16 namespace ash { 16 namespace ash {
17 17
18 // Stub implementation of keyboard::KeyboardUI 18 // Stub implementation of keyboard::KeyboardUI
19 class TestKeyboardUI : public keyboard::KeyboardUI { 19 class TestKeyboardUI : public keyboard::KeyboardUI {
20 public: 20 public:
21 TestKeyboardUI(); 21 TestKeyboardUI();
22 ~TestKeyboardUI() override; 22 ~TestKeyboardUI() override;
23 23
24 bool HasKeyboardWindow() const override; 24 bool HasKeyboardWindow() const override;
25 bool ShouldWindowOverscroll(aura::Window* window) const override;
25 aura::Window* GetKeyboardWindow() override; 26 aura::Window* GetKeyboardWindow() override;
26 27
27 private: 28 private:
28 // Overridden from keyboard::KeyboardUI: 29 // Overridden from keyboard::KeyboardUI:
29 ui::InputMethod* GetInputMethod() override; 30 ui::InputMethod* GetInputMethod() override;
30 void SetUpdateInputType(ui::TextInputType type) override; 31 void SetUpdateInputType(ui::TextInputType type) override;
31 void ReloadKeyboardIfNeeded() override; 32 void ReloadKeyboardIfNeeded() override;
32 void InitInsets(const gfx::Rect& keyboard_bounds) override; 33 void InitInsets(const gfx::Rect& keyboard_bounds) override;
33 void ResetInsets() override; 34 void ResetInsets() override;
34 35
35 aura::test::TestWindowDelegate delegate_; 36 aura::test::TestWindowDelegate delegate_;
36 scoped_ptr<aura::Window> keyboard_; 37 scoped_ptr<aura::Window> keyboard_;
37 DISALLOW_COPY_AND_ASSIGN(TestKeyboardUI); 38 DISALLOW_COPY_AND_ASSIGN(TestKeyboardUI);
38 }; 39 };
39 40
40 } // namespace ash 41 } // namespace ash
41 42
42 #endif // ASH_TEST_TEST_KEYBOARD_UI_H_ 43 #endif // ASH_TEST_TEST_KEYBOARD_UI_H_
OLDNEW
« no previous file with comments | « no previous file | ash/test/test_keyboard_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698