Index: public/platform/WebScreenInfo.h |
diff --git a/public/platform/WebScreenInfo.h b/public/platform/WebScreenInfo.h |
index 90413b9d4c6169b8f37054d41c3c6c95b9865956..76561bbb41564ffde82fa33a873106bac7c21c43 100644 |
--- a/public/platform/WebScreenInfo.h |
+++ b/public/platform/WebScreenInfo.h |
@@ -84,6 +84,23 @@ struct WebScreenInfo { |
, isMonochrome(false) |
, orientationType(WebScreenOrientationUndefined) |
, orientationAngle(0) { } |
+ |
+ bool operator==(const WebScreenInfo& other) const |
+ { |
+ return this->deviceScaleFactor == other.deviceScaleFactor |
+ && this->depth == other.depth |
+ && this->depthPerComponent == other.depthPerComponent |
+ && this->isMonochrome == other.isMonochrome |
+ && this->rect == other.rect |
+ && this->availableRect == other.availableRect |
+ && this->orientationType == other.orientationType |
+ && this->orientationAngle == other.orientationAngle; |
+ } |
+ |
+ bool operator!=(const WebScreenInfo& other) const |
+ { |
+ return !this->operator==(other); |
+ } |
}; |
} // namespace blink |