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

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

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra LOGs Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This class is an implementation of the ChromotingView for Pepper. It is 5 // This class is an implementation of the ChromotingView for Pepper. It is
6 // callable only on the Pepper thread. 6 // callable only on the Pepper thread.
7 7
8 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 8 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
9 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 9 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
10 10
(...skipping 25 matching lines...) Expand all
36 virtual ~PepperView(); 36 virtual ~PepperView();
37 37
38 // ChromotingView implementation. 38 // ChromotingView implementation.
39 virtual bool Initialize() OVERRIDE; 39 virtual bool Initialize() OVERRIDE;
40 virtual void TearDown() OVERRIDE; 40 virtual void TearDown() OVERRIDE;
41 virtual void SetConnectionState( 41 virtual void SetConnectionState(
42 protocol::ConnectionToHost::State state, 42 protocol::ConnectionToHost::State state,
43 protocol::ErrorCode error) OVERRIDE; 43 protocol::ErrorCode error) OVERRIDE;
44 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; 44 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE;
45 45
46 // CursorShapeStub implementation.
47 virtual void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape)
48 OVERRIDE;
49
46 // FrameConsumer implementation. 50 // FrameConsumer implementation.
47 virtual void ApplyBuffer(const SkISize& view_size, 51 virtual void ApplyBuffer(const SkISize& view_size,
48 const SkIRect& clip_area, 52 const SkIRect& clip_area,
49 pp::ImageData* buffer, 53 pp::ImageData* buffer,
50 const SkRegion& region) OVERRIDE; 54 const SkRegion& region) OVERRIDE;
51 virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE; 55 virtual void ReturnBuffer(pp::ImageData* buffer) OVERRIDE;
52 virtual void SetSourceSize(const SkISize& source_size) OVERRIDE; 56 virtual void SetSourceSize(const SkISize& source_size) OVERRIDE;
53 57
54 // Sets the display size and clipping area of this view. 58 // Sets the display size and clipping area of this view.
55 void SetView(const SkISize& view_size, const SkIRect& clip_area); 59 void SetView(const SkISize& view_size, const SkIRect& clip_area);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 120
117 // True after Initialize() has been called, until TearDown(). 121 // True after Initialize() has been called, until TearDown().
118 bool is_initialized_; 122 bool is_initialized_;
119 123
120 DISALLOW_COPY_AND_ASSIGN(PepperView); 124 DISALLOW_COPY_AND_ASSIGN(PepperView);
121 }; 125 };
122 126
123 } // namespace remoting 127 } // namespace remoting
124 128
125 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 129 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698