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

Side by Side Diff: blimp/client/app/linux/blimp_client_session_linux.cc

Issue 2292343002: Hooking up Blimp IME with BlimpContents (Closed)
Patch Set: Fixed linux client Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "blimp/client/app/linux/blimp_client_session_linux.h" 5 #include "blimp/client/app/linux/blimp_client_session_linux.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 " in tab " << tab_id; 66 " in tab " << tab_id;
67 } 67 }
68 68
69 class FakeImeFeatureDelegate : public ImeFeature::Delegate { 69 class FakeImeFeatureDelegate : public ImeFeature::Delegate {
70 public: 70 public:
71 FakeImeFeatureDelegate(); 71 FakeImeFeatureDelegate();
72 ~FakeImeFeatureDelegate() override; 72 ~FakeImeFeatureDelegate() override;
73 73
74 // ImeFeature::Delegate implementation. 74 // ImeFeature::Delegate implementation.
75 void OnShowImeRequested(ui::TextInputType input_type, 75 void OnShowImeRequested(ui::TextInputType input_type,
76 const std::string& text) override; 76 const std::string& text,
77 const ImeFeature::ShowImeCallback& callback) override;
77 void OnHideImeRequested() override; 78 void OnHideImeRequested() override;
78 79
79 private: 80 private:
80 DISALLOW_COPY_AND_ASSIGN(FakeImeFeatureDelegate); 81 DISALLOW_COPY_AND_ASSIGN(FakeImeFeatureDelegate);
81 }; 82 };
82 83
83 FakeImeFeatureDelegate::FakeImeFeatureDelegate() {} 84 FakeImeFeatureDelegate::FakeImeFeatureDelegate() {}
84 85
85 FakeImeFeatureDelegate::~FakeImeFeatureDelegate() {} 86 FakeImeFeatureDelegate::~FakeImeFeatureDelegate() {}
86 87
87 void FakeImeFeatureDelegate::OnShowImeRequested(ui::TextInputType input_type, 88 void FakeImeFeatureDelegate::OnShowImeRequested(
88 const std::string& text) { 89 ui::TextInputType input_type,
90 const std::string& text,
91 const ImeFeature::ShowImeCallback& callback) {
89 DVLOG(1) << "Show IME requested (input_type=" << input_type << ")"; 92 DVLOG(1) << "Show IME requested (input_type=" << input_type << ")";
90 } 93 }
91 94
92 void FakeImeFeatureDelegate::OnHideImeRequested() { 95 void FakeImeFeatureDelegate::OnHideImeRequested() {
93 DVLOG(1) << "Hide IME requested"; 96 DVLOG(1) << "Hide IME requested";
94 } 97 }
95 98
96 } // namespace 99 } // namespace
97 100
98 BlimpClientSessionLinux::BlimpClientSessionLinux() 101 BlimpClientSessionLinux::BlimpClientSessionLinux()
(...skipping 11 matching lines...) Expand all
110 } 113 }
111 114
112 BlimpClientSessionLinux::~BlimpClientSessionLinux() {} 115 BlimpClientSessionLinux::~BlimpClientSessionLinux() {}
113 116
114 void BlimpClientSessionLinux::OnClosed() { 117 void BlimpClientSessionLinux::OnClosed() {
115 base::MessageLoop::current()->QuitNow(); 118 base::MessageLoop::current()->QuitNow();
116 } 119 }
117 120
118 } // namespace client 121 } // namespace client
119 } // namespace blimp 122 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698