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

Side by Side Diff: mojo/views/input_method_mojo_linux.h

Issue 634483003: replace OVERRIDE and FINAL with override and final in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove compiler_specific.h inclusions Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_VIEWS_INPUT_METHOD_MOJO_LINUX_H_ 5 #ifndef MOJO_VIEWS_INPUT_METHOD_MOJO_LINUX_H_
6 #define MOJO_VIEWS_INPUT_METHOD_MOJO_LINUX_H_ 6 #define MOJO_VIEWS_INPUT_METHOD_MOJO_LINUX_H_
7 7
8 #include "ui/base/ime/input_method_auralinux.h" 8 #include "ui/base/ime/input_method_auralinux.h"
9 #include "ui/base/ime/input_method_delegate.h" 9 #include "ui/base/ime/input_method_delegate.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 // An input method for linux that does absolutely no translation. 13 // An input method for linux that does absolutely no translation.
14 // 14 //
15 // The current InputMethodMinimal makes assumptions that a system will only 15 // The current InputMethodMinimal makes assumptions that a system will only
16 // input/output keydown/keyup events; it assumes that things don't work like 16 // input/output keydown/keyup events; it assumes that things don't work like
17 // Windows does. When it gets a keydown event, it then tries to insert a 17 // Windows does. When it gets a keydown event, it then tries to insert a
18 // character at the same time. 18 // character at the same time.
19 // 19 //
20 // However, we're standardizing on Windows' WM_CHAR style events. This tries to 20 // However, we're standardizing on Windows' WM_CHAR style events. This tries to
21 // follow InputMethodWin::DispatchKeyEvent() instead, because PlatformViewX11 21 // follow InputMethodWin::DispatchKeyEvent() instead, because PlatformViewX11
22 // now synthesizes a character events so that we have one behaviour across our 22 // now synthesizes a character events so that we have one behaviour across our
23 // platforms. 23 // platforms.
24 class InputMethodMojoLinux : public ui::InputMethodAuraLinux { 24 class InputMethodMojoLinux : public ui::InputMethodAuraLinux {
25 public: 25 public:
26 explicit InputMethodMojoLinux(ui::internal::InputMethodDelegate* delegate); 26 explicit InputMethodMojoLinux(ui::internal::InputMethodDelegate* delegate);
27 virtual ~InputMethodMojoLinux(); 27 virtual ~InputMethodMojoLinux();
28 28
29 // Overriden from ui::InputMethodAuraLinux: 29 // Overriden from ui::InputMethodAuraLinux:
30 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) OVERRIDE; 30 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) override;
31 31
32 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(InputMethodMojoLinux); 33 DISALLOW_COPY_AND_ASSIGN(InputMethodMojoLinux);
34 }; 34 };
35 35
36 } // namespace mojo 36 } // namespace mojo
37 37
38 #endif // MOJO_VIEWS_INPUT_METHOD_MOJO_LINUX_H_ 38 #endif // MOJO_VIEWS_INPUT_METHOD_MOJO_LINUX_H_
OLDNEW
« no previous file with comments | « mojo/services/window_manager/window_manager_unittests.cc ('k') | mojo/views/native_widget_view_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698