| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMOTING_VIEW_H_ | 5 #ifndef REMOTING_CLIENT_CHROMOTING_VIEW_H_ |
| 6 #define REMOTING_CLIENT_CHROMOTING_VIEW_H_ | 6 #define REMOTING_CLIENT_CHROMOTING_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual void SetSolidFill(uint32 color) = 0; | 49 virtual void SetSolidFill(uint32 color) = 0; |
| 50 | 50 |
| 51 // Removes a previously set solid fill. If no fill was previous set, this | 51 // Removes a previously set solid fill. If no fill was previous set, this |
| 52 // does nothing. | 52 // does nothing. |
| 53 virtual void UnsetSolidFill() = 0; | 53 virtual void UnsetSolidFill() = 0; |
| 54 | 54 |
| 55 // Record the update the state of the connection, updating the UI as needed. | 55 // Record the update the state of the connection, updating the UI as needed. |
| 56 virtual void SetConnectionState(protocol::ConnectionToHost::State state, | 56 virtual void SetConnectionState(protocol::ConnectionToHost::State state, |
| 57 protocol::ConnectionToHost::Error error) = 0; | 57 protocol::ConnectionToHost::Error error) = 0; |
| 58 | 58 |
| 59 // Update the status of the last login attempt. Updating the UI as needed. | |
| 60 // |success| is set to true if the last login successful otherwise false. | |
| 61 // |info| contains the error information if available. | |
| 62 virtual void UpdateLoginStatus(bool success, const std::string& info) = 0; | |
| 63 | |
| 64 // Return the horizontal scale factor of this view. | 59 // Return the horizontal scale factor of this view. |
| 65 virtual double GetHorizontalScaleRatio() const = 0; | 60 virtual double GetHorizontalScaleRatio() const = 0; |
| 66 | 61 |
| 67 // Return the vertical scale factor of this view. | 62 // Return the vertical scale factor of this view. |
| 68 virtual double GetVerticalScaleRatio() const = 0; | 63 virtual double GetVerticalScaleRatio() const = 0; |
| 69 | 64 |
| 70 protected: | 65 protected: |
| 71 // Framebuffer for the decoder. | 66 // Framebuffer for the decoder. |
| 72 scoped_refptr<media::VideoFrame> frame_; | 67 scoped_refptr<media::VideoFrame> frame_; |
| 73 | 68 |
| 74 // Dimensions of |frame_| bitmap. | 69 // Dimensions of |frame_| bitmap. |
| 75 int frame_width_; | 70 int frame_width_; |
| 76 int frame_height_; | 71 int frame_height_; |
| 77 }; | 72 }; |
| 78 | 73 |
| 79 } // namespace remoting | 74 } // namespace remoting |
| 80 | 75 |
| 81 #endif // REMOTING_CLIENT_CHROMOTING_VIEW_H_ | 76 #endif // REMOTING_CLIENT_CHROMOTING_VIEW_H_ |
| OLD | NEW |