summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
authorbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 22:26:15 +0000
committerbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 22:26:15 +0000
commit935d00fd2e39a0c216f798cb0453b298b9ad689f (patch)
tree4e61181702d7ac74542eecdc704ecb0447162644 /ppapi/cpp
parent1f1225be279e05a22e672284bf2f1a2200d70740 (diff)
downloadchromium_src-935d00fd2e39a0c216f798cb0453b298b9ad689f.zip
chromium_src-935d00fd2e39a0c216f798cb0453b298b9ad689f.tar.gz
chromium_src-935d00fd2e39a0c216f798cb0453b298b9ad689f.tar.bz2
[PPAPI] Fix a bunch of spelling mistakes
BUG=none Review URL: https://codereview.chromium.org/13220002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191456 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/audio_config.h2
-rw-r--r--ppapi/cpp/dev/file_chooser_dev.h2
-rw-r--r--ppapi/cpp/dev/scriptable_object_deprecated.cc2
-rw-r--r--ppapi/cpp/dev/scriptable_object_deprecated.h2
-rw-r--r--ppapi/cpp/dev/var_array_dev.h4
-rw-r--r--ppapi/cpp/dev/var_dictionary_dev.h4
-rw-r--r--ppapi/cpp/extensions/ext_output_traits.h2
-rw-r--r--ppapi/cpp/file_io.h4
-rw-r--r--ppapi/cpp/graphics_2d.h2
-rw-r--r--ppapi/cpp/graphics_3d.h2
-rw-r--r--ppapi/cpp/input_event.h20
-rw-r--r--ppapi/cpp/instance.h4
-rw-r--r--ppapi/cpp/message_loop.h7
-rw-r--r--ppapi/cpp/module.h2
-rw-r--r--ppapi/cpp/mouse_cursor.h4
-rw-r--r--ppapi/cpp/point.h4
-rw-r--r--ppapi/cpp/private/network_list_private.cc2
-rw-r--r--ppapi/cpp/private/var_private.h2
-rw-r--r--ppapi/cpp/rect.cc4
-rw-r--r--ppapi/cpp/rect.h4
-rw-r--r--ppapi/cpp/url_loader.h4
-rw-r--r--ppapi/cpp/url_request_info.h2
-rw-r--r--ppapi/cpp/url_response_info.h2
-rw-r--r--ppapi/cpp/var.h4
-rw-r--r--ppapi/cpp/var_array_buffer.h2
25 files changed, 47 insertions, 46 deletions
diff --git a/ppapi/cpp/audio_config.h b/ppapi/cpp/audio_config.h
index 8ece912..e7ade54 100644
--- a/ppapi/cpp/audio_config.h
+++ b/ppapi/cpp/audio_config.h
@@ -100,7 +100,7 @@ class AudioConfig : public Resource {
/// @param[in] sample_rate A <code>PP_AudioSampleRate</code> which is either
/// <code>PP_AUDIOSAMPLERATE_44100</code> or
/// <code>PP_AUDIOSAMPLERATE_48000</code>.
- /// @param[in] requested_sample_frame_count A uint_32t requested frame count.
+ /// @param[in] requested_sample_frame_count A uint32_t requested frame count.
///
/// @return A uint32_t containing the recommended sample frame count if
/// successful. If the sample frame count or bit rate is not supported,
diff --git a/ppapi/cpp/dev/file_chooser_dev.h b/ppapi/cpp/dev/file_chooser_dev.h
index 4feee6a..10b0ba0 100644
--- a/ppapi/cpp/dev/file_chooser_dev.h
+++ b/ppapi/cpp/dev/file_chooser_dev.h
@@ -86,7 +86,7 @@ class FileChooser_Dev : public Resource {
PP_CompletionCallback original_callback;
};
- // Provide backwards-compatability for older versions. Converts the old-style
+ // Provide backwards-compatibility for older versions. Converts the old-style
// 0.5 "iterator" interface to the new-style 0.6 "array output" interface that
// the caller is expecting.
//
diff --git a/ppapi/cpp/dev/scriptable_object_deprecated.cc b/ppapi/cpp/dev/scriptable_object_deprecated.cc
index 449e760..1b701cb 100644
--- a/ppapi/cpp/dev/scriptable_object_deprecated.cc
+++ b/ppapi/cpp/dev/scriptable_object_deprecated.cc
@@ -178,7 +178,7 @@ Var ScriptableObject::Call(const Var& /*method_name*/,
Var ScriptableObject::Construct(const std::vector<Var>& /*args*/,
Var* exception) {
- *exception = Var("Constuct method does not exist in ScriptableObject");
+ *exception = Var("Construct method does not exist in ScriptableObject");
return Var();
}
diff --git a/ppapi/cpp/dev/scriptable_object_deprecated.h b/ppapi/cpp/dev/scriptable_object_deprecated.h
index 3099977..7423d23 100644
--- a/ppapi/cpp/dev/scriptable_object_deprecated.h
+++ b/ppapi/cpp/dev/scriptable_object_deprecated.h
@@ -80,7 +80,7 @@ class ScriptableObject {
friend class ::pp::VarPrivate;
static const PPP_Class_Deprecated* GetClass();
- // Unimplemented, copy and assigmnent is not allowed.
+ // Unimplemented, copy and assignment is not allowed.
ScriptableObject(const ScriptableObject& other);
ScriptableObject& operator=(const ScriptableObject& other);
};
diff --git a/ppapi/cpp/dev/var_array_dev.h b/ppapi/cpp/dev/var_array_dev.h
index e790f97..17a3277 100644
--- a/ppapi/cpp/dev/var_array_dev.h
+++ b/ppapi/cpp/dev/var_array_dev.h
@@ -19,14 +19,14 @@ class VarArray_Dev : public Var {
/// Constructs a new array var.
VarArray_Dev();
- /// Contructs a <code>VarArray_Dev</code> given a var for which is_array() is
+ /// Constructs a <code>VarArray_Dev</code> given a var for which is_array() is
/// true. This will refer to the same array var, but allow you to access
/// methods specific to arrays.
///
/// @param[in] var An array var.
explicit VarArray_Dev(const Var& var);
- /// Contructs a <code>VarArray_Dev</code> given a <code>PP_Var</code> of type
+ /// Constructs a <code>VarArray_Dev</code> given a <code>PP_Var</code> of type
/// PP_VARTYPE_ARRAY.
///
/// @param[in] var A <code>PP_Var</code> of type PP_VARTYPE_ARRAY.
diff --git a/ppapi/cpp/dev/var_dictionary_dev.h b/ppapi/cpp/dev/var_dictionary_dev.h
index 5934b81..2b2e79d 100644
--- a/ppapi/cpp/dev/var_dictionary_dev.h
+++ b/ppapi/cpp/dev/var_dictionary_dev.h
@@ -19,14 +19,14 @@ class VarDictionary_Dev : public Var {
/// Constructs a new dictionary var.
VarDictionary_Dev();
- /// Contructs a <code>VarDictionary_Dev</code> given a var for which
+ /// Constructs a <code>VarDictionary_Dev</code> given a var for which
/// is_dictionary() is true. This will refer to the same dictionary var, but
/// allow you to access methods specific to dictionary.
///
/// @param[in] var A dictionary var.
explicit VarDictionary_Dev(const Var& var);
- /// Contructs a <code>VarDictionary_Dev</code> given a <code>PP_Var</code>
+ /// Constructs a <code>VarDictionary_Dev</code> given a <code>PP_Var</code>
/// of type PP_VARTYPE_DICTIONARY.
///
/// @param[in] var A <code>PP_Var</code> of type PP_VARTYPE_DICTIONARY.
diff --git a/ppapi/cpp/extensions/ext_output_traits.h b/ppapi/cpp/extensions/ext_output_traits.h
index d03258d..1bfec8e 100644
--- a/ppapi/cpp/extensions/ext_output_traits.h
+++ b/ppapi/cpp/extensions/ext_output_traits.h
@@ -76,7 +76,7 @@ struct ExtensionsCallbackOutputTraits {
};
// This class provides storage for a PP_Var and a vector of objects which are
-// of type T. The PP_Var is used as an output parameter to recevie an array var
+// of type T. The PP_Var is used as an output parameter to receive an array var
// from the browser. Each element in the array var is converted to a T object,
// using FromVarConverter, and stores in the vector.
template <class T>
diff --git a/ppapi/cpp/file_io.h b/ppapi/cpp/file_io.h
index bf2c857..9bbb5f7 100644
--- a/ppapi/cpp/file_io.h
+++ b/ppapi/cpp/file_io.h
@@ -117,7 +117,7 @@ class FileIO : public Resource {
/// where a copy of your FileIO resource could outlive your class, the
/// callback will still be pending when your class goes out of scope, creating
/// the possibility of writing into invalid memory. So it's recommended to
- /// keep your FileIO resource and any oubput buffers tightly controlled in
+ /// keep your FileIO resource and any output buffers tightly controlled in
/// the same scope.
///
/// <strong>Caveat:</strong> This Read() is potentially unsafe if you're using
@@ -229,7 +229,7 @@ class FileIO : public Resource {
PP_CompletionCallback original_callback;
};
- // Provide backwards-compatability for older Read versions. Converts the
+ // Provide backwards-compatibility for older Read versions. Converts the
// old-style "char*" output buffer of 1.0 to the new "PP_ArrayOutput"
// interface in 1.1.
//
diff --git a/ppapi/cpp/graphics_2d.h b/ppapi/cpp/graphics_2d.h
index 0ce6641..427ea48 100644
--- a/ppapi/cpp/graphics_2d.h
+++ b/ppapi/cpp/graphics_2d.h
@@ -58,7 +58,7 @@ class Graphics2D : public Resource {
/// A destructor that decrements the reference count of a
/// <code>Graphics2D</code> object made using the previous copy constructor.
- /// It is possible that the destructor does not toally destroy the underlying
+ /// It is possible that the destructor does not totally destroy the underlying
/// 2D context if there are outstanding references to it.
virtual ~Graphics2D();
diff --git a/ppapi/cpp/graphics_3d.h b/ppapi/cpp/graphics_3d.h
index 56383da..bb8706a 100644
--- a/ppapi/cpp/graphics_3d.h
+++ b/ppapi/cpp/graphics_3d.h
@@ -21,7 +21,7 @@ class Graphics3D : public Resource {
/// Default constructor for creating an is_null() Graphics3D object.
Graphics3D();
- /// A constructor for creating and and initializing a 3D rendering context.
+ /// A constructor for creating and initializing a 3D rendering context.
/// The returned context is created off-screen and must be attached
/// to a module instance using <code>Instance::BindGraphics</code> to draw on
/// the web page.
diff --git a/ppapi/cpp/input_event.h b/ppapi/cpp/input_event.h
index 379e0e8..42848e2 100644
--- a/ppapi/cpp/input_event.h
+++ b/ppapi/cpp/input_event.h
@@ -103,13 +103,13 @@ class MouseInputEvent : public InputEvent {
/// This constructor manually constructs a mouse event from the provided
/// parameters.
///
- /// @param[in] instance The instance for which this event occured.
+ /// @param[in] instance The instance for which this event occurred.
///
/// @param[in] type A <code>PP_InputEvent_Type</code> identifying the type of
/// input event.
///
/// @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time
- /// when the event occured.
+ /// when the event occurred.
///
/// @param[in] modifiers A bit field combination of the
/// <code>PP_InputEvent_Modifier</code> flags.
@@ -119,7 +119,7 @@ class MouseInputEvent : public InputEvent {
/// mouse move, enter, and leave events.
///
/// @param[in] mouse_position A <code>Point</code> containing the x and y
- /// position of the mouse when the eent occurred.
+ /// position of the mouse when the event occurred.
///
/// @param[in] click_count
// TODO(brettw) figure out exactly what this means.
@@ -178,10 +178,10 @@ class WheelInputEvent : public InputEvent {
/// Constructs a wheel input even from the given parameters.
///
- /// @param[in] instance The instance for which this event occured.
+ /// @param[in] instance The instance for which this event occurred.
///
/// @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time
- /// when the event occured.
+ /// when the event occurred.
///
/// @param[in] modifiers A bit field combination of the
/// <code>PP_InputEvent_Modifier</code> flags.
@@ -216,7 +216,7 @@ class WheelInputEvent : public InputEvent {
/// possible, for example, on some trackpads and newer mice that don't have
/// "clicks".
///
- /// @return The vertial and horizontal scroll values. The units are either in
+ /// @return The vertical and horizontal scroll values. The units are either in
/// pixels (when scroll_by_page is false) or pages (when scroll_by_page is
/// true). For example, y = -3 means scroll up 3 pixels when scroll_by_page
/// is false, and scroll up 3 pages when scroll_by_page is true.
@@ -263,13 +263,13 @@ class KeyboardInputEvent : public InputEvent {
/// Constructs a keyboard input even from the given parameters.
///
- /// @param[in] instance The instance for which this event occured.
+ /// @param[in] instance The instance for which this event occurred.
///
/// @param[in] type A <code>PP_InputEvent_Type</code> identifying the type of
/// input event.
///
/// @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time
- /// when the event occured.
+ /// when the event occurred.
///
/// @param[in] modifiers A bit field combination of the
/// <code>PP_InputEvent_Modifier</code> flags.
@@ -311,13 +311,13 @@ class TouchInputEvent : public InputEvent {
/// Constructs a touch input even from the given parameters.
///
- /// @param[in] instance The instance for which this event occured.
+ /// @param[in] instance The instance for which this event occurred.
///
/// @param[in] type A <code>PP_InputEvent_Type</code> identifying the type of
/// input event.
///
/// @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time
- /// when the event occured.
+ /// when the event occurred.
///
/// @param[in] modifiers A bit field combination of the
/// <code>PP_InputEvent_Modifier</code> flags.
diff --git a/ppapi/cpp/instance.h b/ppapi/cpp/instance.h
index 00eaadc..c8f8cab 100644
--- a/ppapi/cpp/instance.h
+++ b/ppapi/cpp/instance.h
@@ -139,7 +139,7 @@ class Instance {
/// the clip when the instance is partially visible. Instead, update the
/// entire region. The time saved doing partial paints is usually not
/// significant and it can create artifacts when scrolling (this notification
- /// is sent asynchronously from scolling so there can be flashes of old
+ /// is sent asynchronously from scrolling so there can be flashes of old
/// content in the exposed regions).
virtual void DidChangeView(const Rect& position, const Rect& clip);
@@ -333,7 +333,7 @@ class Instance {
/// do optimizations for scroll or touch events that can be processed
/// substantially faster if it knows there are no non-default receivers for
/// that message. Requesting that such messages be delivered, even if they are
- /// processed very quickly, may have a noticable effect on the performance of
+ /// processed very quickly, may have a noticeable effect on the performance of
/// the page.
///
/// When requesting input events through this function, the events will be
diff --git a/ppapi/cpp/message_loop.h b/ppapi/cpp/message_loop.h
index fa38c669..9e28b2d 100644
--- a/ppapi/cpp/message_loop.h
+++ b/ppapi/cpp/message_loop.h
@@ -24,7 +24,8 @@ class InstanceHandle;
/// suddenly see their PP_Resource handles become invalid. In this case, calls
/// will fail with PP_ERROR_BADRESOURCE. If you need to access data associated
/// with your instance, you will probably want to create some kind of threadsafe
-/// proxy object that can handle asynchonous destruction of the instance object.
+/// proxy object that can handle asynchronous destruction of the instance
+/// object.
///
/// Typical usage:
/// On the main thread:
@@ -37,7 +38,7 @@ class InstanceHandle;
/// - Call AttachToCurrentThread() with the message loop resource.
/// - Call Run() with the message loop resource.
///
-/// Your callacks should look like this:
+/// Your callbacks should look like this:
/// void DoMyWork(void* user_data, int32_t status) {
/// if (status != PP_OK) {
/// Cleanup(); // e.g. free user_data.
@@ -199,7 +200,7 @@ class MessageLoop : public Resource {
/// @param callback A pointer to the completion callback to execute from the
/// message loop.
///
- /// @param delay_ms The number of millseconds to delay execution of the given
+ /// @param delay_ms The number of milliseconds to delay execution of the given
/// completion callback. Passing 0 means it will get queued normally and
/// executed in order.
///
diff --git a/ppapi/cpp/module.h b/ppapi/cpp/module.h
index 07cfea9..40de3b8 100644
--- a/ppapi/cpp/module.h
+++ b/ppapi/cpp/module.h
@@ -82,7 +82,7 @@ class Module {
/// GetBrowserInterface() returns interfaces which the browser implements
/// (i.e. PPB interfaces).
- /// @param[in] interface_name The browser interface for the moduel to get.
+ /// @param[in] interface_name The browser interface for the module to get.
const void* GetBrowserInterface(const char* interface_name);
/// InstanceForPPInstance() returns the object associated with this
diff --git a/ppapi/cpp/mouse_cursor.h b/ppapi/cpp/mouse_cursor.h
index ec1374c..827d95c 100644
--- a/ppapi/cpp/mouse_cursor.h
+++ b/ppapi/cpp/mouse_cursor.h
@@ -26,7 +26,7 @@ class MouseCursor {
/// <code>PP_MOUSECURSOR_TYPE_CUSTOM</code> and specify your image and hot
/// spot.
///
- /// @param[in] instance A handle indentifying the instance that the mouse
+ /// @param[in] instance A handle identifying the instance that the mouse
/// cursor will affect.
///
/// @param[in] type A <code>PP_MouseCursor_Type</code> identifying the type
@@ -39,7 +39,7 @@ class MouseCursor {
/// When you are specifying a predefined cursor, this parameter should be a
/// default-constructed ImageData.
///
- /// @param[in] hot_spot When setting a custom cursor, this idenfifies the
+ /// @param[in] hot_spot When setting a custom cursor, this identifies the
/// pixel position within the given image of the "hot spot" of the cursor.
/// When specifying a stock cursor, this parameter is ignored.
///
diff --git a/ppapi/cpp/point.h b/ppapi/cpp/point.h
index 9daa6b53d..c881bbd 100644
--- a/ppapi/cpp/point.h
+++ b/ppapi/cpp/point.h
@@ -101,7 +101,7 @@ class Point {
}
/// Subtracts one Point from another Point by subtracting their x values
- /// and y values. Returnes a new point with the result.
+ /// and y values. Returns a new point with the result.
///
/// @param[in] other A Point.
///
@@ -240,7 +240,7 @@ class FloatPoint {
}
/// Subtracts one Point from another Point by subtracting their x values
- /// and y values. Returnes a new point with the result.
+ /// and y values. Returns a new point with the result.
///
/// @param[in] other A FloatPoint.
///
diff --git a/ppapi/cpp/private/network_list_private.cc b/ppapi/cpp/private/network_list_private.cc
index 35bb66a..1297aa3 100644
--- a/ppapi/cpp/private/network_list_private.cc
+++ b/ppapi/cpp/private/network_list_private.cc
@@ -64,7 +64,7 @@ void NetworkListPrivate::GetIpAddresses(
if (!has_interface<PPB_NetworkList_Private>())
return;
- // Most netword interfaces don't have more than 3 network
+ // Most network interfaces don't have more than 3 network
// interfaces.
addresses->resize(3);
diff --git a/ppapi/cpp/private/var_private.h b/ppapi/cpp/private/var_private.h
index 1c4cc8a..7cc0e31 100644
--- a/ppapi/cpp/private/var_private.h
+++ b/ppapi/cpp/private/var_private.h
@@ -16,7 +16,7 @@ class ScriptableObject;
}
// VarPrivate is a version of Var that exposes the private scripting API.
-// It's designed to be mostly interchangable with Var since most callers will
+// It's designed to be mostly interchangeable with Var since most callers will
// be dealing with Vars from various places.
class VarPrivate : public Var {
public:
diff --git a/ppapi/cpp/rect.cc b/ppapi/cpp/rect.cc
index 39d8018..1e9ff05 100644
--- a/ppapi/cpp/rect.cc
+++ b/ppapi/cpp/rect.cc
@@ -89,14 +89,14 @@ Rect Rect::Subtract(const Rect& rect) const {
int32_t rb = bottom();
if (rect.y() <= y() && rect.bottom() >= bottom()) {
- // complete int32_tersection in the y-direction
+ // complete intersection in the y-direction
if (rect.x() <= x()) {
rx = rect.right();
} else {
rr = rect.x();
}
} else if (rect.x() <= x() && rect.right() >= right()) {
- // complete int32_tersection in the x-direction
+ // complete intersection in the x-direction
if (rect.y() <= y()) {
ry = rect.bottom();
} else {
diff --git a/ppapi/cpp/rect.h b/ppapi/cpp/rect.h
index aa659d1..b47226b 100644
--- a/ppapi/cpp/rect.h
+++ b/ppapi/cpp/rect.h
@@ -282,7 +282,7 @@ class Rect {
/// Offset() moves the rectangle by a horizontal and vertical distance.
///
- /// @param[in] horizontal An int32_t value representing a horzontal
+ /// @param[in] horizontal An int32_t value representing a horizontal
/// move distance.
/// @param[in] vertical An int32_t value representing a vertical
/// move distance.
@@ -331,7 +331,7 @@ class Rect {
/// @return true if the rectangle fall inside this rectangle.
bool Contains(const Rect& rect) const;
- /// Insersects() determines if this rectangle intersects the specified
+ /// Intersects() determines if this rectangle intersects the specified
/// rectangle.
///
/// @param[in] rect A pointer to a <code>Rect</code>.
diff --git a/ppapi/cpp/url_loader.h b/ppapi/cpp/url_loader.h
index 3ed5fe6..00c086e 100644
--- a/ppapi/cpp/url_loader.h
+++ b/ppapi/cpp/url_loader.h
@@ -54,7 +54,7 @@ class URLLoader : public Resource {
/// URLRequestInfo.
/// @param[in] cc A <code>CompletionCallback</code> to run on asynchronous
/// completion of Open(). This callback will run when response
- /// headers for the url are received or error occured. This callback
+ /// headers for the url are received or error occurred. This callback
/// will only run if Open() returns <code>PP_OK_COMPLETIONPENDING</code>.
///
/// @return An int32_t containing an error code from
@@ -67,7 +67,7 @@ class URLLoader : public Resource {
///
/// @param[in] cc A <code>CompletionCallback</code> to run on asynchronous
/// completion of FollowRedirect(). This callback will run when response
- /// headers for the redirect url are received or error occured. This callback
+ /// headers for the redirect url are received or error occurred. This callback
/// will only run if FollowRedirect() returns
/// <code>PP_OK_COMPLETIONPENDING</code>.
///
diff --git a/ppapi/cpp/url_request_info.h b/ppapi/cpp/url_request_info.h
index 15c1713..c476be4 100644
--- a/ppapi/cpp/url_request_info.h
+++ b/ppapi/cpp/url_request_info.h
@@ -130,7 +130,7 @@ class URLRequestInfo : public Resource {
/// <code>PP_VARTYPE_STRING</code>) property for the request.
/// Refer to the
/// <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html"Header
- /// Field Definitions</a> documentaiton for further information.
+ /// Field Definitions</a> documentation for further information.
///
/// @param[in] headers_string A <code>Var</code> containing the property
/// value.
diff --git a/ppapi/cpp/url_response_info.h b/ppapi/cpp/url_response_info.h
index 682fbf7..f9e60cf 100644
--- a/ppapi/cpp/url_response_info.h
+++ b/ppapi/cpp/url_response_info.h
@@ -15,7 +15,7 @@ namespace pp {
class FileRef;
-/// URLResponseInfo provides an API for examaning URL responses.
+/// URLResponseInfo provides an API for examining URL responses.
class URLResponseInfo : public Resource {
public:
/// Default constructor. This constructor creates an <code>is_null</code>
diff --git a/ppapi/cpp/var.h b/ppapi/cpp/var.h
index 77bb5d8..fe30e10 100644
--- a/ppapi/cpp/var.h
+++ b/ppapi/cpp/var.h
@@ -132,7 +132,7 @@ class Var {
/// This function determines if this <code>Var</code> is a dictionary.
///
- /// @return true if this <code>Var</code> is a dictinoary, otherwise false.
+ /// @return true if this <code>Var</code> is a dictionary, otherwise false.
bool is_dictionary() const { return var_.type == PP_VARTYPE_DICTIONARY; }
/// This function determines if this <code>Var</code> is an integer value.
@@ -237,7 +237,7 @@ class Var {
std::string DebugString() const;
/// This class is used when calling the raw C PPAPI when using the C++
- /// <code>Var</code> as a possibe NULL exception. This class will handle
+ /// <code>Var</code> as a possible NULL exception. This class will handle
/// getting the address of the internal value out if it's non-NULL and
/// fixing up the reference count.
///
diff --git a/ppapi/cpp/var_array_buffer.h b/ppapi/cpp/var_array_buffer.h
index 74f97aa..fd2b05b0 100644
--- a/ppapi/cpp/var_array_buffer.h
+++ b/ppapi/cpp/var_array_buffer.h
@@ -19,7 +19,7 @@ namespace pp {
/// <code>HandleMessage</code> functions of <code>Instance</code>.
class VarArrayBuffer : public Var {
public:
- /// Contruct a <code>VarArrayBuffer</code> given a var for which
+ /// Construct a <code>VarArrayBuffer</code> given a var for which
/// is_array_buffer() is true. This will refer to the same
/// <code>ArrayBuffer</code> as var, but allows you to access methods
/// specific to <code>VarArrayBuffer</code>.