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

Unified Diff: ui/views/mus/window_manager_frame_values.h

Issue 1639563003: Renames WindowManagerConfig to FrameDecorationValues and moves to Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 11 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
Index: ui/views/mus/window_manager_frame_values.h
diff --git a/ui/views/mus/window_manager_frame_values.h b/ui/views/mus/window_manager_frame_values.h
index b0b8e10ee77af8a0cdde595cc0e4bbf43714cc38..50c73f34c0fcc5bf8f44e25c3ac10e1ca5906980 100644
--- a/ui/views/mus/window_manager_frame_values.h
+++ b/ui/views/mus/window_manager_frame_values.h
@@ -19,6 +19,16 @@ struct VIEWS_MUS_EXPORT WindowManagerFrameValues {
static void SetInstance(const WindowManagerFrameValues& values);
static const WindowManagerFrameValues& instance();
+ bool operator==(const WindowManagerFrameValues& other) const {
+ return normal_insets == other.normal_insets &&
+ maximized_insets == other.maximized_insets &&
+ max_title_bar_button_width == other.max_title_bar_button_width;
+ }
+
+ bool operator!=(const WindowManagerFrameValues& other) const {
+ return !(*this == other);
+ }
+
// Ideal insets the window manager renders non-client frame decorations into.
gfx::Insets normal_insets;
gfx::Insets maximized_insets;

Powered by Google App Engine
This is Rietveld 408576698