| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_WM_CORE_INPUT_METHOD_EVENT_FILTER_H_ | 5 #ifndef UI_WM_CORE_INPUT_METHOD_EVENT_FILTER_H_ |
| 6 #define UI_WM_CORE_INPUT_METHOD_EVENT_FILTER_H_ | 6 #define UI_WM_CORE_INPUT_METHOD_EVENT_FILTER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 explicit InputMethodEventFilter(gfx::AcceleratedWidget widget); | 29 explicit InputMethodEventFilter(gfx::AcceleratedWidget widget); |
| 30 virtual ~InputMethodEventFilter(); | 30 virtual ~InputMethodEventFilter(); |
| 31 | 31 |
| 32 void SetInputMethodPropertyInRootWindow(aura::Window* root_window); | 32 void SetInputMethodPropertyInRootWindow(aura::Window* root_window); |
| 33 | 33 |
| 34 ui::InputMethod* input_method() const { return input_method_.get(); } | 34 ui::InputMethod* input_method() const { return input_method_.get(); } |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // Overridden from ui::EventHandler: | 37 // Overridden from ui::EventHandler: |
| 38 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 38 virtual void OnKeyEvent(ui::KeyEvent* event) override; |
| 39 | 39 |
| 40 // Overridden from ui::internal::InputMethodDelegate: | 40 // Overridden from ui::internal::InputMethodDelegate: |
| 41 virtual bool DispatchKeyEventPostIME(const ui::KeyEvent& event) OVERRIDE; | 41 virtual bool DispatchKeyEventPostIME(const ui::KeyEvent& event) override; |
| 42 | 42 |
| 43 scoped_ptr<ui::InputMethod> input_method_; | 43 scoped_ptr<ui::InputMethod> input_method_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(InputMethodEventFilter); | 45 DISALLOW_COPY_AND_ASSIGN(InputMethodEventFilter); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace wm | 48 } // namespace wm |
| 49 | 49 |
| 50 #endif // UI_WM_CORE_INPUT_METHOD_EVENT_FILTER_H_ | 50 #endif // UI_WM_CORE_INPUT_METHOD_EVENT_FILTER_H_ |
| OLD | NEW |