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

Unified Diff: ui/base/test/dummy_input_method.cc

Issue 10378043: Allow the RWHVW to be focused when a window is restored from minimized. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « ui/base/test/dummy_input_method.h ('k') | ui/ui_unittests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/test/dummy_input_method.cc
===================================================================
--- ui/base/test/dummy_input_method.cc (revision 0)
+++ ui/base/test/dummy_input_method.cc (revision 0)
@@ -0,0 +1,70 @@
+// Copyright (c) 2012 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.
+
+#include "ui/base/test/dummy_input_method.h"
+
+namespace ui {
+namespace test {
+
+DummyInputMethod::DummyInputMethod() {
+}
+
+DummyInputMethod::~DummyInputMethod() {
+}
+
+void DummyInputMethod::SetDelegate(internal::InputMethodDelegate* delegate) {
+}
+
+void DummyInputMethod::Init(bool focused) {
+}
+
+void DummyInputMethod::OnFocus() {
+}
+
+void DummyInputMethod::OnBlur() {
+}
+
+void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) {
+}
+
+TextInputClient* DummyInputMethod::GetTextInputClient() const {
+ return NULL;
+}
+
+void DummyInputMethod::DispatchKeyEvent(
+ const base::NativeEvent& native_key_event) {
+}
+
+void DummyInputMethod::OnTextInputTypeChanged(const TextInputClient* client) {
+}
+
+void DummyInputMethod::OnCaretBoundsChanged(const TextInputClient* client) {
+}
+
+void DummyInputMethod::CancelComposition(const TextInputClient* client) {
+}
+
+std::string DummyInputMethod::GetInputLocale() {
+ return "";
+}
+
+base::i18n::TextDirection DummyInputMethod::GetInputTextDirection() {
+ return base::i18n::UNKNOWN_DIRECTION;
+}
+
+bool DummyInputMethod::IsActive() {
+ return true;
+}
+
+TextInputType DummyInputMethod::GetTextInputType() const {
+ return TEXT_INPUT_TYPE_NONE;
+}
+
+bool DummyInputMethod::CanComposeInline() const {
+ return true;
+}
+
+} // namespace test
+} // namespace ui
+
« no previous file with comments | « ui/base/test/dummy_input_method.h ('k') | ui/ui_unittests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698