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

Side by Side Diff: remoting/client/jni/chromoting_jni_runtime.h

Issue 1288063004: Simplify FrameConsumer interface. Remove FrameProducer interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ 5 #ifndef REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_
6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ 6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Pass on the set of negotiated capabilities to the client. 91 // Pass on the set of negotiated capabilities to the client.
92 void SetCapabilities(const std::string& capabilities); 92 void SetCapabilities(const std::string& capabilities);
93 93
94 // Passes on the deconstructed ExtensionMessage to the client to handle 94 // Passes on the deconstructed ExtensionMessage to the client to handle
95 // appropriately. 95 // appropriately.
96 void HandleExtensionMessage(const std::string& type, 96 void HandleExtensionMessage(const std::string& type,
97 const std::string& message); 97 const std::string& message);
98 98
99 // Creates a new Bitmap object to store a video frame. 99 // Creates a new Bitmap object to store a video frame.
100 base::android::ScopedJavaLocalRef<jobject> NewBitmap( 100 base::android::ScopedJavaLocalRef<jobject> NewBitmap(int width, int height);
101 webrtc::DesktopSize size);
102 101
103 // Updates video frame bitmap. |bitmap| must be an instance of 102 // Updates video frame bitmap. |bitmap| must be an instance of
104 // android.graphics.Bitmap. Call on the display thread. 103 // android.graphics.Bitmap. Call on the display thread.
105 void UpdateFrameBitmap(jobject bitmap); 104 void UpdateFrameBitmap(jobject bitmap);
106 105
107 // Updates cursor shape. Call on display thread. 106 // Updates cursor shape. Call on display thread.
108 void UpdateCursorShape(const protocol::CursorShapeInfo& cursor_shape); 107 void UpdateCursorShape(const protocol::CursorShapeInfo& cursor_shape);
109 108
110 // Draws the latest image buffer onto the canvas. Call on the display thread. 109 // Draws the latest image buffer onto the canvas. Call on the display thread.
111 void RedrawCanvas(); 110 void RedrawCanvas();
(...skipping 25 matching lines...) Expand all
137 scoped_refptr<ChromotingJniInstance> session_; 136 scoped_refptr<ChromotingJniInstance> session_;
138 137
139 friend struct DefaultSingletonTraits<ChromotingJniRuntime>; 138 friend struct DefaultSingletonTraits<ChromotingJniRuntime>;
140 139
141 DISALLOW_COPY_AND_ASSIGN(ChromotingJniRuntime); 140 DISALLOW_COPY_AND_ASSIGN(ChromotingJniRuntime);
142 }; 141 };
143 142
144 } // namespace remoting 143 } // namespace remoting
145 144
146 #endif 145 #endif
OLDNEW
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.cc ('k') | remoting/client/jni/chromoting_jni_runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698