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

Unified Diff: ui/keyboard/webui/vk_mojo_handler.h

Issue 946623002: [Code cleanup]Remove webui keyboard mojo binding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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/keyboard/webui/keyboard.mojom ('k') | ui/keyboard/webui/vk_mojo_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/webui/vk_mojo_handler.h
diff --git a/ui/keyboard/webui/vk_mojo_handler.h b/ui/keyboard/webui/vk_mojo_handler.h
deleted file mode 100644
index 4afb1e150ab5c4e324b7f3491112b5ee9749051e..0000000000000000000000000000000000000000
--- a/ui/keyboard/webui/vk_mojo_handler.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 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 UI_KEYBOARD_WEBUI_VK_MOJO_HANDLER_H_
-#define UI_KEYBOARD_WEBUI_VK_MOJO_HANDLER_H_
-
-#include "base/macros.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
-#include "ui/base/ime/input_method_observer.h"
-#include "ui/keyboard/webui/keyboard.mojom.h"
-
-namespace keyboard {
-
-class VKMojoHandler : public KeyboardUIHandlerMojo,
- public ui::InputMethodObserver {
- public:
- explicit VKMojoHandler(mojo::InterfaceRequest<KeyboardUIHandlerMojo> request);
- ~VKMojoHandler() override;
-
- private:
- ui::InputMethod* GetInputMethod();
-
- // KeyboardUIHandlerMojo:
- void SetTextInputTypeObserver(TextInputTypeObserverPtr observer) override;
- void SendKeyEvent(const mojo::String& event_type,
- int32_t char_value,
- int32_t key_code,
- const mojo::String& key_name,
- int32_t modifiers) override;
- void HideKeyboard() override;
-
- // ui::InputMethodObserver:
- void OnTextInputTypeChanged(const ui::TextInputClient* client) override;
- void OnFocus() override;
- void OnBlur() override;
- void OnCaretBoundsChanged(const ui::TextInputClient* client) override;
- void OnTextInputStateChanged(const ui::TextInputClient* text_client) override;
- void OnInputMethodDestroyed(const ui::InputMethod* input_method) override;
- void OnShowImeIfNeeded() override;
-
- TextInputTypeObserverPtr text_input_type_observer_;
- mojo::Binding<KeyboardUIHandlerMojo> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(VKMojoHandler);
-};
-
-} // namespace keyboard
-
-#endif // UI_KEYBOARD_WEBUI_VK_MOJO_HANDLER_H_
« no previous file with comments | « ui/keyboard/webui/keyboard.mojom ('k') | ui/keyboard/webui/vk_mojo_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698