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

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

Issue 3161034: Rename (Host|Client)Message to Chromoting(Host|Client)Message. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix merge conflicts Created 10 years, 3 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
« no previous file with comments | « remoting/client/chromoting_view.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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. The public APIs to this class are thread-safe. 6 // as the backing stores. The public APIs to this class are thread-safe.
7 // Calls will dispatch any interaction with the pepper API onto the pepper 7 // Calls will dispatch any interaction with the pepper API onto the pepper
8 // main thread. 8 // main thread.
9 // 9 //
10 // TODO(ajwong): We need to better understand the threading semantics of this 10 // TODO(ajwong): We need to better understand the threading semantics of this
(...skipping 24 matching lines...) Expand all
35 virtual ~PepperView(); 35 virtual ~PepperView();
36 36
37 // ChromotingView implementation. 37 // ChromotingView implementation.
38 virtual bool Initialize(); 38 virtual bool Initialize();
39 virtual void TearDown(); 39 virtual void TearDown();
40 virtual void Paint(); 40 virtual void Paint();
41 virtual void SetSolidFill(uint32 color); 41 virtual void SetSolidFill(uint32 color);
42 virtual void UnsetSolidFill(); 42 virtual void UnsetSolidFill();
43 virtual void SetViewport(int x, int y, int width, int height); 43 virtual void SetViewport(int x, int y, int width, int height);
44 virtual void SetHostScreenSize(int width, int height); 44 virtual void SetHostScreenSize(int width, int height);
45 virtual void HandleBeginUpdateStream(HostMessage* msg); 45 virtual void HandleBeginUpdateStream(ChromotingHostMessage* msg);
46 virtual void HandleUpdateStreamPacket(HostMessage* msg); 46 virtual void HandleUpdateStreamPacket(ChromotingHostMessage* msg);
47 virtual void HandleEndUpdateStream(HostMessage* msg); 47 virtual void HandleEndUpdateStream(ChromotingHostMessage* msg);
48 48
49 private: 49 private:
50 void OnPaintDone(); 50 void OnPaintDone();
51 void OnPartialDecodeDone(); 51 void OnPartialDecodeDone();
52 void OnDecodeDone(); 52 void OnDecodeDone();
53 53
54 // Reference to the creating plugin instance. Needed for interacting with 54 // Reference to the creating plugin instance. Needed for interacting with
55 // pepper. Marking explciitly as const since it must be initialized at 55 // pepper. Marking explciitly as const since it must be initialized at
56 // object creation, and never change. 56 // object creation, and never change.
57 ChromotingInstance* const instance_; 57 ChromotingInstance* const instance_;
58 58
59 pp::DeviceContext2D device_context_; 59 pp::DeviceContext2D device_context_;
60 60
61 int viewport_x_; 61 int viewport_x_;
62 int viewport_y_; 62 int viewport_y_;
63 int viewport_width_; 63 int viewport_width_;
64 int viewport_height_; 64 int viewport_height_;
65 65
66 bool is_static_fill_; 66 bool is_static_fill_;
67 uint32 static_fill_color_; 67 uint32 static_fill_color_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(PepperView); 69 DISALLOW_COPY_AND_ASSIGN(PepperView);
70 }; 70 };
71 71
72 } // namespace remoting 72 } // namespace remoting
73 73
74 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperView); 74 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperView);
75 75
76 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 76 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_view.h ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698