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

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

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month 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
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.h ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This class is an implementation of the ChromotingView using Pepper devices 5 // This class is an implementation of the ChromotingView using Pepper devices
6 // as the backing stores. This class is used only on pepper thread. 6 // as the backing stores. This class is used only on pepper thread.
7 // Chromoting objects access this object through PepperViewProxy which 7 // Chromoting objects access this object through PepperViewProxy which
8 // delegates method calls on the pepper thread. 8 // delegates method calls on the pepper thread.
9 9
10 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 10 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
(...skipping 29 matching lines...) Expand all
40 virtual void SetSolidFill(uint32 color) OVERRIDE; 40 virtual void SetSolidFill(uint32 color) OVERRIDE;
41 virtual void UnsetSolidFill() OVERRIDE; 41 virtual void UnsetSolidFill() OVERRIDE;
42 virtual void SetConnectionState( 42 virtual void SetConnectionState(
43 protocol::ConnectionToHost::State state, 43 protocol::ConnectionToHost::State state,
44 protocol::ConnectionToHost::Error error) OVERRIDE; 44 protocol::ConnectionToHost::Error error) OVERRIDE;
45 virtual double GetHorizontalScaleRatio() const OVERRIDE; 45 virtual double GetHorizontalScaleRatio() const OVERRIDE;
46 virtual double GetVerticalScaleRatio() const OVERRIDE; 46 virtual double GetVerticalScaleRatio() const OVERRIDE;
47 47
48 // FrameConsumer implementation. 48 // FrameConsumer implementation.
49 virtual void AllocateFrame(media::VideoFrame::Format format, 49 virtual void AllocateFrame(media::VideoFrame::Format format,
50 size_t width, 50 const SkISize& size,
51 size_t height,
52 base::TimeDelta timestamp,
53 base::TimeDelta duration,
54 scoped_refptr<media::VideoFrame>* frame_out, 51 scoped_refptr<media::VideoFrame>* frame_out,
55 Task* done); 52 const base::Closure& done) OVERRIDE;
56 virtual void ReleaseFrame(media::VideoFrame* frame); 53 virtual void ReleaseFrame(media::VideoFrame* frame) OVERRIDE;
57 virtual void OnPartialFrameOutput(media::VideoFrame* frame, 54 virtual void OnPartialFrameOutput(media::VideoFrame* frame,
58 RectVector* rects, 55 RectVector* rects,
59 Task* done); 56 const base::Closure& done) OVERRIDE;
60 57
61 // This is called when the dimension of the plugin element has changed. 58 // This is called when the dimension of the plugin element has changed.
62 // Return true if plugin size has changed, false otherwise. 59 // Return true if plugin size has changed, false otherwise.
63 bool SetPluginSize(const SkISize& plugin_size); 60 bool SetPluginSize(const SkISize& plugin_size);
64 61
65 private: 62 private:
66 void OnPaintDone(base::Time paint_start); 63 void OnPaintDone(base::Time paint_start);
67 64
68 // Set the dimension of the entire host screen. 65 // Set the dimension of the entire host screen.
69 void SetHostSize(const SkISize& host_size); 66 void SetHostSize(const SkISize& host_size);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 uint32 static_fill_color_; 104 uint32 static_fill_color_;
108 105
109 ScopedRunnableMethodFactory<PepperView> task_factory_; 106 ScopedRunnableMethodFactory<PepperView> task_factory_;
110 107
111 DISALLOW_COPY_AND_ASSIGN(PepperView); 108 DISALLOW_COPY_AND_ASSIGN(PepperView);
112 }; 109 };
113 110
114 } // namespace remoting 111 } // namespace remoting
115 112
116 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 113 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_input_handler.h ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698