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

Unified Diff: remoting/client/chromoting_view.h

Issue 8985007: Refactoring of the client-side input pipeline and scaling dimension management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/chromoting_view.h
diff --git a/remoting/client/chromoting_view.h b/remoting/client/chromoting_view.h
index 17b24e3a79cad91c2e26e39c68d34238232ec0d8..e93ab0d013701f51603bff3fcf4f9435f74ec33d 100644
--- a/remoting/client/chromoting_view.h
+++ b/remoting/client/chromoting_view.h
@@ -5,10 +5,7 @@
#ifndef REMOTING_CLIENT_CHROMOTING_VIEW_H_
#define REMOTING_CLIENT_CHROMOTING_VIEW_H_
-#include <string>
-
-#include "base/memory/ref_counted.h"
-#include "media/base/video_frame.h"
+#include "base/basictypes.h"
#include "remoting/protocol/connection_to_host.h"
namespace remoting {
@@ -22,12 +19,7 @@ static const uint32 kFailedColor = 0xffcc00ff;
// screen.
class ChromotingView {
public:
- ChromotingView();
- virtual ~ChromotingView();
-
- // Get screen dimensions.
- // TODO(garykac): This will need to be extended to support multi-monitors.
- void GetScreenSize(int* width, int* height);
+ virtual ~ChromotingView() {}
// Initialize the common structures for the view.
virtual bool Initialize() = 0;
@@ -49,20 +41,6 @@ class ChromotingView {
// Record the update the state of the connection, updating the UI as needed.
virtual void SetConnectionState(protocol::ConnectionToHost::State state,
protocol::ConnectionToHost::Error error) = 0;
-
- // Return the horizontal scale factor of this view.
- virtual double GetHorizontalScaleRatio() const = 0;
-
- // Return the vertical scale factor of this view.
- virtual double GetVerticalScaleRatio() const = 0;
-
- protected:
- // Framebuffer for the decoder.
- scoped_refptr<media::VideoFrame> frame_;
-
- // Dimensions of |frame_| bitmap.
- int frame_width_;
- int frame_height_;
};
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698