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

Unified Diff: chrome/common/search_types.h

Issue 12631008: alternate ntp: implement Show/HideBars API to reduce jank when showing/hiding bars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed build break Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/resources/extensions/searchbox_api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/search_types.h
diff --git a/chrome/common/search_types.h b/chrome/common/search_types.h
index 04d64b6564e56fcd3eb86ce20f9ebc4b00304918..5fb85e753c0e1840c52c4889d57f576325fbfd3f 100644
--- a/chrome/common/search_types.h
+++ b/chrome/common/search_types.h
@@ -50,6 +50,10 @@ struct Mode {
return mode == rhs.mode && origin == rhs.origin;
}
+ bool operator!=(const Mode& rhs) const {
+ return !(*this == rhs);
+ }
+
bool is_default() const {
return mode == MODE_DEFAULT;
}
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/resources/extensions/searchbox_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698