OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLUGIN_PEPPER_CURSOR_SETTER_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_CURSOR_SETTER_H_ |
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_CURSOR_SETTER_H_ | 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_CURSOR_SETTER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ppapi/cpp/instance_handle.h" | 9 #include "ppapi/cpp/instance_handle.h" |
9 #include "remoting/protocol/cursor_shape_stub.h" | 10 #include "remoting/protocol/cursor_shape_stub.h" |
10 | 11 |
11 namespace remoting { | 12 namespace remoting { |
12 | 13 |
13 // Helper that applies supplied cursor shapes to the plugin. | 14 // Helper that applies supplied cursor shapes to the plugin. |
14 class PepperCursorSetter : public protocol::CursorShapeStub { | 15 class PepperCursorSetter : public protocol::CursorShapeStub { |
15 public: | 16 public: |
16 explicit PepperCursorSetter(const pp::InstanceHandle& instance); | 17 explicit PepperCursorSetter(const pp::InstanceHandle& instance); |
17 ~PepperCursorSetter() override; | 18 ~PepperCursorSetter() override; |
(...skipping 17 matching lines...) Expand all Loading... |
35 | 36 |
36 pp::InstanceHandle instance_; | 37 pp::InstanceHandle instance_; |
37 protocol::CursorShapeStub* delegate_stub_; | 38 protocol::CursorShapeStub* delegate_stub_; |
38 | 39 |
39 DISALLOW_COPY_AND_ASSIGN(PepperCursorSetter); | 40 DISALLOW_COPY_AND_ASSIGN(PepperCursorSetter); |
40 }; | 41 }; |
41 | 42 |
42 } // namespace remoting | 43 } // namespace remoting |
43 | 44 |
44 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_CURSOR_SETTER_H_ | 45 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_CURSOR_SETTER_H_ |
OLD | NEW |