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

Unified Diff: components/mus/ws/server_window.h

Issue 1489923002: Wire up inset of SetUnderlaySurfaceOffsetAndExtendedHitArea (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « components/mus/ws/event_dispatcher_unittest.cc ('k') | components/mus/ws/server_window_surface_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/server_window.h
diff --git a/components/mus/ws/server_window.h b/components/mus/ws/server_window.h
index 89d291b393581b6e8049916c40b74d198654eafc..7cadc08faf15489c15edee50e1f038f3d024b9b3 100644
--- a/components/mus/ws/server_window.h
+++ b/components/mus/ws/server_window.h
@@ -134,10 +134,20 @@ class ServerWindow {
// Called when its appropriate to destroy surfaces scheduled for destruction.
void DestroySurfacesScheduledForDestruction();
+ const gfx::Insets& extended_hit_test_region() const {
+ return extended_hit_test_region_;
+ }
+ void set_extended_hit_test_region(const gfx::Insets& insets) {
+ extended_hit_test_region_ = insets;
+ }
+
ServerWindowSurfaceManager* GetOrCreateSurfaceManager();
ServerWindowSurfaceManager* surface_manager() {
return surface_manager_.get();
}
+ const ServerWindowSurfaceManager* surface_manager() const {
+ return surface_manager_.get();
+ }
// Offset of the underlay from the the window bounds (used for shadows).
const gfx::Vector2d& underlay_offset() const { return underlay_offset_; }
@@ -190,6 +200,10 @@ class ServerWindow {
gfx::Vector2d underlay_offset_;
+ // The hit test for windows extends outside the bounds of the window by this
+ // amount.
+ gfx::Insets extended_hit_test_region_;
+
base::ObserverList<ServerWindowObserver> observers_;
DISALLOW_COPY_AND_ASSIGN(ServerWindow);
« no previous file with comments | « components/mus/ws/event_dispatcher_unittest.cc ('k') | components/mus/ws/server_window_surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698