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

Unified Diff: views/ime/input_method_win.h

Issue 8581003: views: Move ime and test directories to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux Created 9 years, 1 month 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 | « views/ime/input_method_wayland.cc ('k') | views/ime/input_method_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/ime/input_method_win.h
diff --git a/views/ime/input_method_win.h b/views/ime/input_method_win.h
deleted file mode 100644
index 912a4c6f2ffd9dce9ff15ea82e4e1b360f6d4871..0000000000000000000000000000000000000000
--- a/views/ime/input_method_win.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// Copyright (c) 2011 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 VIEWS_IME_INPUT_METHOD_WIN_H_
-#define VIEWS_IME_INPUT_METHOD_WIN_H_
-#pragma once
-
-#include <windows.h>
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/base/win/ime_input.h"
-#include "views/ime/input_method_base.h"
-#include "views/view.h"
-#include "views/widget/widget.h"
-
-namespace views {
-
-// An InputMethod implementation based on Windows IMM32 API.
-class InputMethodWin : public InputMethodBase {
- public:
- explicit InputMethodWin(internal::InputMethodDelegate* delegate);
- virtual ~InputMethodWin();
-
- // Overridden from InputMethod:
- virtual void Init(Widget* widget) OVERRIDE;
- virtual void OnFocus() OVERRIDE;
- virtual void OnBlur() OVERRIDE;
- virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE;
- virtual void OnTextInputTypeChanged(View* view) OVERRIDE;
- virtual void OnCaretBoundsChanged(View* view) OVERRIDE;
- virtual void CancelComposition(View* view) OVERRIDE;
- virtual std::string GetInputLocale() OVERRIDE;
- virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE;
- virtual bool IsActive() OVERRIDE;
-
- // Handles IME messages.
- LRESULT OnImeMessages(UINT message, WPARAM wparam, LPARAM lparam,
- BOOL* handled);
-
- // Message handlers. The native widget is responsible for forwarding following
- // messages to the input method.
- void OnInputLangChange(DWORD character_set, HKL input_language_id);
-
- private:
- LRESULT OnImeSetContext(
- UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
- LRESULT OnImeStartComposition(
- UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
- LRESULT OnImeComposition(
- UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
- LRESULT OnImeEndComposition(
- UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
- LRESULT OnImeRequest(
- UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
- // For both WM_CHAR and WM_SYSCHAR
- LRESULT OnChar(
- UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
- // For both WM_DEADCHAR and WM_SYSDEADCHAR
- LRESULT OnDeadChar(
- UINT message, WPARAM wparam, LPARAM lparam, BOOL* handled);
-
- LRESULT OnDocumentFeed(RECONVERTSTRING *reconv);
- LRESULT OnReconvertString(RECONVERTSTRING *reconv);
-
- // Overridden from InputMethodBase.
- virtual void OnWillChangeFocus(View* focused_before, View* focused) OVERRIDE;
- virtual void OnDidChangeFocus(View* focused_before, View* focused) OVERRIDE;
-
- // A helper function to return the Widget's native window.
- HWND hwnd() const { return widget()->GetNativeView(); }
-
- // Asks the client to confirm current composition text.
- void ConfirmCompositionText();
-
- // Enables or disables the IME according to the current text input type.
- void UpdateIMEState();
-
- // Indicates if the current input locale has an IME.
- bool active_;
-
- // Name of the current input locale.
- std::string locale_;
-
- // The current input text direction.
- base::i18n::TextDirection direction_;
-
- // The new text direction and layout alignment requested by the user by
- // pressing ctrl-shift. It'll be sent to the text input client when the key
- // is released.
- base::i18n::TextDirection pending_requested_direction_;
-
- // Windows IMM32 wrapper.
- // (See "ui/base/win/ime_input.h" for its details.)
- ui::ImeInput ime_input_;
-
- DISALLOW_COPY_AND_ASSIGN(InputMethodWin);
-};
-
-} // namespace views
-
-#endif // VIEWS_IME_INPUT_METHOD_WIN_H_
« no previous file with comments | « views/ime/input_method_wayland.cc ('k') | views/ime/input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698