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

Side by Side Diff: components/arc/ime/arc_ime_bridge.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_BRIDGE_H_ 5 #ifndef COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_
6 #define COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_ 6 #define COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/base/ime/text_input_type.h" 10 #include "ui/base/ime/text_input_type.h"
(...skipping 13 matching lines...) Expand all
24 class ArcImeBridge { 24 class ArcImeBridge {
25 public: 25 public:
26 virtual ~ArcImeBridge() {} 26 virtual ~ArcImeBridge() {}
27 27
28 // Received IPCs are deserialized and passed to this delegate. 28 // Received IPCs are deserialized and passed to this delegate.
29 class Delegate { 29 class Delegate {
30 public: 30 public:
31 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0; 31 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0;
32 virtual void OnCursorRectChanged(const gfx::Rect& rect) = 0; 32 virtual void OnCursorRectChanged(const gfx::Rect& rect) = 0;
33 virtual void OnCancelComposition() = 0; 33 virtual void OnCancelComposition() = 0;
34 virtual void ShowImeIfNeeded() = 0;
34 }; 35 };
35 36
36 // Serializes and sends IME related requests through IPCs. 37 // Serializes and sends IME related requests through IPCs.
37 virtual void SendSetCompositionText( 38 virtual void SendSetCompositionText(
38 const ui::CompositionText& composition) = 0; 39 const ui::CompositionText& composition) = 0;
39 virtual void SendConfirmCompositionText() = 0; 40 virtual void SendConfirmCompositionText() = 0;
40 virtual void SendInsertText(const base::string16& text) = 0; 41 virtual void SendInsertText(const base::string16& text) = 0;
41 42
42 protected: 43 protected:
43 ArcImeBridge() {} 44 ArcImeBridge() {}
44 45
45 private: 46 private:
46 DISALLOW_COPY_AND_ASSIGN(ArcImeBridge); 47 DISALLOW_COPY_AND_ASSIGN(ArcImeBridge);
47 }; 48 };
48 49
49 } // namespace arc 50 } // namespace arc
50 51
51 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_ 52 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698