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

Side by Side Diff: blimp/common/create_blimp_message.h

Issue 1779673003: Added network components for blimp text input feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge origin/master 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 | « blimp/common/DEPS ('k') | blimp/common/create_blimp_message.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 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 #ifndef BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ 5 #ifndef BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_
6 #define BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ 6 #define BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "blimp/common/blimp_common_export.h" 13 #include "blimp/common/blimp_common_export.h"
14 14
15 namespace blimp { 15 namespace blimp {
16 16
17 class BlimpMessage; 17 class BlimpMessage;
18 class CompositorMessage; 18 class CompositorMessage;
19 class TabControlMessage; 19 class ImeMessage;
20 class InputMessage; 20 class InputMessage;
21 class NavigationMessage; 21 class NavigationMessage;
22 class RenderWidgetMessage; 22 class RenderWidgetMessage;
23 class SizeMessage; 23 class SizeMessage;
24 class StartConnectionMessage; 24 class StartConnectionMessage;
25 class TabControlMessage;
25 26
26 // Suite of helper methods to simplify the repetitive task of creating 27 // Suite of helper methods to simplify the repetitive task of creating
27 // new BlimpMessages, initializing them, and extracting type-specific 28 // new BlimpMessages, initializing them, and extracting type-specific
28 // inner messages. 29 // inner messages.
29 // 30 //
30 // 31 //
31 // Every specialization of CreateBlimpMessage returns an initialized 32 // Every specialization of CreateBlimpMessage returns an initialized
32 // BlimpMessage object. In addition, a pointer to the type-specific inner 33 // BlimpMessage object. In addition, a pointer to the type-specific inner
33 // message is returned via the initial double-pointer parameter. 34 // message is returned via the initial double-pointer parameter.
34 // 35 //
35 // Additional initialization arguments may be taken depending on the 36 // Additional initialization arguments may be taken depending on the
36 // message type. 37 // message type.
37 38
38 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 39 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
39 CompositorMessage** compositor_message, 40 CompositorMessage** compositor_message,
40 int target_tab_id); 41 int target_tab_id);
41 42
42 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 43 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
43 TabControlMessage** control_message); 44 TabControlMessage** control_message);
44 45
45 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 46 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
46 InputMessage** input_message); 47 InputMessage** input_message);
47 48
48 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 49 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
49 NavigationMessage** navigation_message, 50 NavigationMessage** navigation_message,
50 int target_tab_id); 51 int target_tab_id);
51 52
52 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 53 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
54 ImeMessage** ime_message,
55 int target_tab_id);
56
57 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
53 RenderWidgetMessage** render_widget_message, 58 RenderWidgetMessage** render_widget_message,
54 int target_tab_id); 59 int target_tab_id);
55 60
56 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage( 61 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateBlimpMessage(
57 SizeMessage** size_message); 62 SizeMessage** size_message);
58 63
59 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateStartConnectionMessage( 64 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateStartConnectionMessage(
60 const std::string& client_token, 65 const std::string& client_token,
61 int protocol_version); 66 int protocol_version);
62 67
63 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateCheckpointAckMessage( 68 BLIMP_COMMON_EXPORT scoped_ptr<BlimpMessage> CreateCheckpointAckMessage(
64 int64_t checkpoint_id); 69 int64_t checkpoint_id);
65 70
66 } // namespace blimp 71 } // namespace blimp
67 72
68 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_ 73 #endif // BLIMP_COMMON_CREATE_BLIMP_MESSAGE_H_
OLDNEW
« no previous file with comments | « blimp/common/DEPS ('k') | blimp/common/create_blimp_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698