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

Side by Side Diff: blimp/client/core/contents/mock_ime_feature_delegate.h

Issue 2393043004: Blimp: IME should submit form with text (Closed)
Patch Set: dtrainor@ comments Created 4 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
« no previous file with comments | « blimp/client/core/contents/ime_feature_unittest.cc ('k') | blimp/common/proto/ime.proto » ('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 BLIMP_CLIENT_CORE_CONTENTS_MOCK_IME_FEATURE_DELEGATE_H_ 5 #ifndef BLIMP_CLIENT_CORE_CONTENTS_MOCK_IME_FEATURE_DELEGATE_H_
6 #define BLIMP_CLIENT_CORE_CONTENTS_MOCK_IME_FEATURE_DELEGATE_H_ 6 #define BLIMP_CLIENT_CORE_CONTENTS_MOCK_IME_FEATURE_DELEGATE_H_
7 7
8 #include "blimp/client/core/contents/ime_feature.h" 8 #include "blimp/client/core/contents/ime_feature.h"
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace blimp { 14 namespace blimp {
15 namespace client { 15 namespace client {
16 16
17 class MockImeFeatureDelegate : public client::ImeFeature::Delegate { 17 class MockImeFeatureDelegate : public client::ImeFeature::Delegate {
18 public: 18 public:
19 MockImeFeatureDelegate(); 19 MockImeFeatureDelegate();
20 ~MockImeFeatureDelegate() override; 20 ~MockImeFeatureDelegate() override;
21 21
22 MOCK_METHOD3(OnShowImeRequested, 22 MOCK_METHOD1(OnShowImeRequested,
23 void(ui::TextInputType input_type, 23 void(const ImeFeature::WebInputRequest& request));
24 const std::string& text,
25 const ImeFeature::ShowImeCallback& callback));
26 MOCK_METHOD0(OnHideImeRequested, void()); 24 MOCK_METHOD0(OnHideImeRequested, void());
27 }; 25 };
28 26
29 } // namespace client 27 } // namespace client
30 } // namespace blimp 28 } // namespace blimp
31 29
32 #endif // BLIMP_CLIENT_CORE_CONTENTS_MOCK_IME_FEATURE_DELEGATE_H_ 30 #endif // BLIMP_CLIENT_CORE_CONTENTS_MOCK_IME_FEATURE_DELEGATE_H_
OLDNEW
« no previous file with comments | « blimp/client/core/contents/ime_feature_unittest.cc ('k') | blimp/common/proto/ime.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698