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

Unified Diff: cc/output/selection_handle.h

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 7 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: cc/output/selection_handle.h
diff --git a/cc/output/selection_handle.h b/cc/output/selection_handle.h
new file mode 100644
index 0000000000000000000000000000000000000000..ec936f9058efe9f70a635e43b9995b8a0e21f4c0
--- /dev/null
+++ b/cc/output/selection_handle.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_OUTPUT_SELECTION_HANDLE_H_
+#define CC_OUTPUT_SELECTION_HANDLE_H_
+
+#include "cc/base/cc_export.h"
+#include "ui/gfx/geometry/rect_f.h"
+
+namespace cc {
+
+struct CC_EXPORT SelectionHandle {
+ enum Type { LEFT, RIGHT, CENTER, NONE, IGNORED, TYPE_LAST = IGNORED };
+
+ SelectionHandle();
+ ~SelectionHandle();
+
+ Type type;
+ gfx::RectF bounds;
+ bool visible;
+};
+
+inline bool operator==(const SelectionHandle& lhs, const SelectionHandle& rhs) {
+ return lhs.type == rhs.type && lhs.visible == rhs.visible &&
+ lhs.bounds == rhs.bounds;
+}
+
+inline bool operator!=(const SelectionHandle& lhs, const SelectionHandle& rhs) {
+ return !(lhs == rhs);
+}
+
+} // namespace cc
+
+#endif // CC_OUTPUT_SELECTION_HANDLE_H_

Powered by Google App Engine
This is Rietveld 408576698