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

Unified Diff: ash/test/test_keyboard_ui.h

Issue 1392713002: Extract content dependency from keyboard code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/test/content/keyboard_controller_proxy_stub.cc ('k') | ash/test/test_keyboard_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_keyboard_ui.h
diff --git a/ash/test/test_keyboard_ui.h b/ash/test/test_keyboard_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1c1f75ed15ad0663531e1737fc97c5d885ae7e8
--- /dev/null
+++ b/ash/test/test_keyboard_ui.h
@@ -0,0 +1,42 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_TEST_TEST_KEYBOARD_UI_H_
+#define ASH_TEST_TEST_KEYBOARD_UI_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "ui/aura/test/test_window_delegate.h"
+#include "ui/keyboard/keyboard_ui.h"
+
+namespace aura {
+class Window;
+} // namespace aura
+
+namespace ash {
+
+// Stub implementation of keyboard::KeyboardUI
+class TestKeyboardUI : public keyboard::KeyboardUI {
+ public:
+ TestKeyboardUI();
+ ~TestKeyboardUI() override;
+
+ bool HasKeyboardWindow() const override;
+ aura::Window* GetKeyboardWindow() override;
+
+ private:
+ // Overridden from keyboard::KeyboardUI:
+ ui::InputMethod* GetInputMethod() override;
+ void SetUpdateInputType(ui::TextInputType type) override;
+ void ReloadKeyboardIfNeeded() override;
+ void InitInsets(const gfx::Rect& keyboard_bounds) override;
+ void ResetInsets() override;
+
+ aura::test::TestWindowDelegate delegate_;
+ scoped_ptr<aura::Window> keyboard_;
+ DISALLOW_COPY_AND_ASSIGN(TestKeyboardUI);
+};
+
+} // namespace ash
+
+#endif // ASH_TEST_TEST_KEYBOARD_UI_H_
« no previous file with comments | « ash/test/content/keyboard_controller_proxy_stub.cc ('k') | ash/test/test_keyboard_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698