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

Side by Side Diff: native_client_sdk/src/examples/mouselock/mouselock.h

Issue 13106002: [NaCl SDK] A bunch of spelling fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix presubmit Created 7 years, 8 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 #include <cmath> 5 #include <cmath>
6 6
7 #include "ppapi/c/ppb_fullscreen.h" 7 #include "ppapi/c/ppb_fullscreen.h"
8 #include "ppapi/c/ppb_input_event.h" 8 #include "ppapi/c/ppb_input_event.h"
9 #include "ppapi/cpp/completion_callback.h" 9 #include "ppapi/cpp/completion_callback.h"
10 #include "ppapi/cpp/fullscreen.h" 10 #include "ppapi/cpp/fullscreen.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void DidFlush(int32_t result); 71 void DidFlush(int32_t result);
72 72
73 // Creates a new paint buffer, paints it then flush it to the 2D context. If 73 // Creates a new paint buffer, paints it then flush it to the 2D context. If
74 // a flush is pending, this does nothing. 74 // a flush is pending, this does nothing.
75 void Paint(); 75 void Paint();
76 76
77 // Create a new pp::ImageData and paint the graphics that represent the mouse 77 // Create a new pp::ImageData and paint the graphics that represent the mouse
78 // movement in it. Return the new pp::ImageData. 78 // movement in it. Return the new pp::ImageData.
79 pp::ImageData PaintImage(const pp::Size& size); 79 pp::ImageData PaintImage(const pp::Size& size);
80 80
81 // Fill the image with the backgroud color. 81 // Fill the image with the background color.
82 void ClearToBackground(pp::ImageData* image); 82 void ClearToBackground(pp::ImageData* image);
83 83
84 void DrawCenterSpot(pp::ImageData* image, uint32_t spot_color); 84 void DrawCenterSpot(pp::ImageData* image, uint32_t spot_color);
85 85
86 void DrawNeedle(pp::ImageData* image, uint32_t needle_color); 86 void DrawNeedle(pp::ImageData* image, uint32_t needle_color);
87 87
88 // Print the printf-style format to the "console" via PostMessage. 88 // Print the printf-style format to the "console" via PostMessage.
89 void Log(const char* format, ...); 89 void Log(const char* format, ...);
90 90
91 pp::Size size_; 91 pp::Size size_;
92 92
93 bool mouse_locked_; 93 bool mouse_locked_;
94 pp::Point mouse_movement_; 94 pp::Point mouse_movement_;
95 bool waiting_for_flush_completion_; 95 bool waiting_for_flush_completion_;
96 pp::CompletionCallbackFactory<MouseLockInstance> callback_factory_; 96 pp::CompletionCallbackFactory<MouseLockInstance> callback_factory_;
97 97
98 pp::Fullscreen fullscreen_; 98 pp::Fullscreen fullscreen_;
99 pp::Graphics2D device_context_; 99 pp::Graphics2D device_context_;
100 bool is_context_bound_; 100 bool is_context_bound_;
101 bool was_fullscreen_; 101 bool was_fullscreen_;
102 uint32_t* background_scanline_; 102 uint32_t* background_scanline_;
103 }; 103 };
104 104
105 } // namespace mouselock 105 } // namespace mouselock
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/mouselock/index.html ('k') | native_client_sdk/src/examples/pi_generator/pi_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698