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

Side by Side Diff: remoting/client/plugin/pepper_mouse_locker.h

Issue 2538183002: remoting: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
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_MOUSE_LOCKER_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_MOUSE_LOCKER_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_MOUSE_LOCKER_H_ 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_MOUSE_LOCKER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ppapi/cpp/mouse_lock.h" 12 #include "ppapi/cpp/mouse_lock.h"
13 #include "ppapi/utility/completion_callback_factory.h" 13 #include "ppapi/utility/completion_callback_factory.h"
14 #include "remoting/protocol/cursor_shape_stub.h" 14 #include "remoting/protocol/cursor_shape_stub.h"
15 15
16 namespace pp { 16 namespace pp {
17 class Instance; 17 class Instance;
18 } // namespace pp 18 } // namespace pp
19 19
20 namespace remoting { 20 namespace remoting {
21 21
22 class PepperInputHandler;
23
24 class PepperMouseLocker : public pp::MouseLock, 22 class PepperMouseLocker : public pp::MouseLock,
25 public protocol::CursorShapeStub { 23 public protocol::CursorShapeStub {
26 public: 24 public:
27 // |instance| and |cursor_stub| must outlive |this|. 25 // |instance| and |cursor_stub| must outlive |this|.
28 PepperMouseLocker( 26 PepperMouseLocker(
29 pp::Instance* instance, 27 pp::Instance* instance,
30 const base::Callback<void(bool)>& enable_mouse_deltas, 28 const base::Callback<void(bool)>& enable_mouse_deltas,
31 protocol::CursorShapeStub* cursor_stub); 29 protocol::CursorShapeStub* cursor_stub);
32 ~PepperMouseLocker() override; 30 ~PepperMouseLocker() override;
33 31
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 77
80 // Holds the current mouse lock state. 78 // Holds the current mouse lock state.
81 MouseLockState mouse_lock_state_; 79 MouseLockState mouse_lock_state_;
82 80
83 DISALLOW_COPY_AND_ASSIGN(PepperMouseLocker); 81 DISALLOW_COPY_AND_ASSIGN(PepperMouseLocker);
84 }; 82 };
85 83
86 } // namespace remoting 84 } // namespace remoting
87 85
88 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_MOUSE_LOCKER_H_ 86 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_MOUSE_LOCKER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.h ('k') | remoting/client/plugin/pepper_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698