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

Side by Side Diff: components/arc/ime/arc_ime_service.h

Issue 2039233003: Showing virtual keyboard when input type changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ImeHost.ShowImeIfNeeded to ARC bridge Created 4 years, 6 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 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 COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ 5 #ifndef COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_
6 #define COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ 6 #define COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void OnWindowAddedToRootWindow(aura::Window* window) override; 56 void OnWindowAddedToRootWindow(aura::Window* window) override;
57 57
58 // Overridden from aura::client::FocusChangeObserver: 58 // Overridden from aura::client::FocusChangeObserver:
59 void OnWindowFocused(aura::Window* gained_focus, 59 void OnWindowFocused(aura::Window* gained_focus,
60 aura::Window* lost_focus) override; 60 aura::Window* lost_focus) override;
61 61
62 // Overridden from ArcImeBridge::Delegate: 62 // Overridden from ArcImeBridge::Delegate:
63 void OnTextInputTypeChanged(ui::TextInputType type) override; 63 void OnTextInputTypeChanged(ui::TextInputType type) override;
64 void OnCursorRectChanged(const gfx::Rect& rect) override; 64 void OnCursorRectChanged(const gfx::Rect& rect) override;
65 void OnCancelComposition() override; 65 void OnCancelComposition() override;
66 void ShowImeIfNeeded() override;
66 67
67 // Overridden from ui::TextInputClient: 68 // Overridden from ui::TextInputClient:
68 void SetCompositionText(const ui::CompositionText& composition) override; 69 void SetCompositionText(const ui::CompositionText& composition) override;
69 void ConfirmCompositionText() override; 70 void ConfirmCompositionText() override;
70 void ClearCompositionText() override; 71 void ClearCompositionText() override;
71 void InsertText(const base::string16& text) override; 72 void InsertText(const base::string16& text) override;
72 void InsertChar(const ui::KeyEvent& event) override; 73 void InsertChar(const ui::KeyEvent& event) override;
73 ui::TextInputType GetTextInputType() const override; 74 ui::TextInputType GetTextInputType() const override;
74 gfx::Rect GetCaretBounds() const override; 75 gfx::Rect GetCaretBounds() const override;
75 76
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 aura::WindowTracker focused_arc_window_; 111 aura::WindowTracker focused_arc_window_;
111 112
112 ui::InputMethod* test_input_method_; 113 ui::InputMethod* test_input_method_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(ArcImeService); 115 DISALLOW_COPY_AND_ASSIGN(ArcImeService);
115 }; 116 };
116 117
117 } // namespace arc 118 } // namespace arc
118 119
119 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ 120 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698