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

Side by Side Diff: chrome/browser/ui/input_method/input_method_engine.h

Issue 1807133002: UX updates for IME window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/input_method/input_method_engine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 5 #ifndef CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
6 #define CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 6 #define CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 const std::string& url, 36 const std::string& url,
37 ui::ImeWindow::Mode mode, 37 ui::ImeWindow::Mode mode,
38 const gfx::Rect& bounds, 38 const gfx::Rect& bounds,
39 std::string* error); 39 std::string* error);
40 void ShowImeWindow(int window_id); 40 void ShowImeWindow(int window_id);
41 void HideImeWindow(int window_id); 41 void HideImeWindow(int window_id);
42 void CloseImeWindows(); 42 void CloseImeWindows();
43 43
44 private: 44 private:
45 // input_method::InputMethodEngineBase: 45 // input_method::InputMethodEngineBase:
46 void FocusIn(const ui::IMEEngineHandlerInterface::InputContext& input_context)
47 override;
48 void FocusOut() override; 46 void FocusOut() override;
49 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; 47 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override;
50 void UpdateComposition(const ui::CompositionText& composition_text, 48 void UpdateComposition(const ui::CompositionText& composition_text,
51 uint32_t cursor_pos, 49 uint32_t cursor_pos,
52 bool is_visible) override; 50 bool is_visible) override;
53 void CommitTextToInputContext(int context_id, 51 void CommitTextToInputContext(int context_id,
54 const std::string& text) override; 52 const std::string& text) override;
55 bool SendKeyEvent(ui::KeyEvent* ui_event, const std::string& code) override; 53 bool SendKeyEvent(ui::KeyEvent* ui_event, const std::string& code) override;
56 54
57 // ui::ImeWindowObserver: 55 // ui::ImeWindowObserver:
(...skipping 10 matching lines...) Expand all
68 // Tracks the current cursor bounds so that the new follow cursor window can 66 // Tracks the current cursor bounds so that the new follow cursor window can
69 // be aligned with cursor once it being created. 67 // be aligned with cursor once it being created.
70 gfx::Rect current_cursor_bounds_; 68 gfx::Rect current_cursor_bounds_;
71 69
72 DISALLOW_COPY_AND_ASSIGN(InputMethodEngine); 70 DISALLOW_COPY_AND_ASSIGN(InputMethodEngine);
73 }; 71 };
74 72
75 } // namespace input_method 73 } // namespace input_method
76 74
77 #endif // CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ 75 #endif // CHROME_BROWSER_UI_INPUT_METHOD_INPUT_METHOD_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/input_method/input_method_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698