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

Side by Side Diff: blimp/client/feature/render_widget_feature.h

Issue 2023613002: Add a FakeImeFeatureDelegate to the Linux client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments & fix private: placement 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
« no previous file with comments | « blimp/client/feature/navigation_feature.h ('k') | blimp/client/feature/settings_feature.h » ('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_CLIENT_FEATURE_RENDER_WIDGET_FEATURE_H_ 5 #ifndef BLIMP_CLIENT_FEATURE_RENDER_WIDGET_FEATURE_H_
6 #define BLIMP_CLIENT_FEATURE_RENDER_WIDGET_FEATURE_H_ 6 #define BLIMP_CLIENT_FEATURE_RENDER_WIDGET_FEATURE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const int render_widget_id, 82 const int render_widget_id,
83 const cc::proto::CompositorMessage& message); 83 const cc::proto::CompositorMessage& message);
84 84
85 // Sets a RenderWidgetMessageDelegate to be notified of all incoming 85 // Sets a RenderWidgetMessageDelegate to be notified of all incoming
86 // RenderWidget related messages for |tab_id| from the engine. There can only 86 // RenderWidget related messages for |tab_id| from the engine. There can only
87 // be one RenderWidgetMessageDelegate per tab. 87 // be one RenderWidgetMessageDelegate per tab.
88 // virtual for testing. 88 // virtual for testing.
89 virtual void SetDelegate(int tab_id, RenderWidgetFeatureDelegate* delegate); 89 virtual void SetDelegate(int tab_id, RenderWidgetFeatureDelegate* delegate);
90 virtual void RemoveDelegate(const int tab_id); 90 virtual void RemoveDelegate(const int tab_id);
91 91
92 private:
93 // BlimpMessageProcessor implementation. 92 // BlimpMessageProcessor implementation.
94 void ProcessMessage(std::unique_ptr<BlimpMessage> message, 93 void ProcessMessage(std::unique_ptr<BlimpMessage> message,
95 const net::CompletionCallback& callback) override; 94 const net::CompletionCallback& callback) override;
96 95
96 private:
97 void ProcessRenderWidgetMessage( 97 void ProcessRenderWidgetMessage(
98 RenderWidgetFeatureDelegate* delegate, 98 RenderWidgetFeatureDelegate* delegate,
99 const RenderWidgetMessage& message); 99 const RenderWidgetMessage& message);
100 100
101 void ProcessCompositorMessage(RenderWidgetFeatureDelegate* delegate, 101 void ProcessCompositorMessage(RenderWidgetFeatureDelegate* delegate,
102 const CompositorMessage& message); 102 const CompositorMessage& message);
103 103
104 // Returns nullptr if no delegate is found. 104 // Returns nullptr if no delegate is found.
105 RenderWidgetFeatureDelegate* FindDelegate(const int tab_id); 105 RenderWidgetFeatureDelegate* FindDelegate(const int tab_id);
106 106
(...skipping 10 matching lines...) Expand all
117 // Used to send BlimpMessage::COMPOSITOR messages to the engine. 117 // Used to send BlimpMessage::COMPOSITOR messages to the engine.
118 std::unique_ptr<BlimpMessageProcessor> outgoing_compositor_message_processor_; 118 std::unique_ptr<BlimpMessageProcessor> outgoing_compositor_message_processor_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFeature); 120 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFeature);
121 }; 121 };
122 122
123 } // namespace client 123 } // namespace client
124 } // namespace blimp 124 } // namespace blimp
125 125
126 #endif // BLIMP_CLIENT_FEATURE_RENDER_WIDGET_FEATURE_H_ 126 #endif // BLIMP_CLIENT_FEATURE_RENDER_WIDGET_FEATURE_H_
OLDNEW
« no previous file with comments | « blimp/client/feature/navigation_feature.h ('k') | blimp/client/feature/settings_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698