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

Unified Diff: ui/views/widget/native_widget_delegate.h

Issue 2651753003: Wires up ShouldDescendIntoChildForEventHandling() for DesktopNativeWidgetAura (Closed)
Patch Set: improve comments Created 3 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
« no previous file with comments | « ui/views/widget/native_widget_aura_unittest.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_delegate.h
diff --git a/ui/views/widget/native_widget_delegate.h b/ui/views/widget/native_widget_delegate.h
index 963f48d294b22bed6a7055c83a1b3c53e0c8cc44..8f2e56a4a4d91190167c0b5e70c2ba94f0803710 100644
--- a/ui/views/widget/native_widget_delegate.h
+++ b/ui/views/widget/native_widget_delegate.h
@@ -5,9 +5,8 @@
#ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
#define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
-#include <vector>
-
#include "ui/events/event_constants.h"
+#include "ui/gfx/native_widget_types.h"
#include "ui/views/views_export.h"
namespace gfx {
@@ -128,9 +127,6 @@ class VIEWS_EXPORT NativeWidgetDelegate {
// Runs the specified native command. Returns true if the command is handled.
virtual bool ExecuteCommand(int command_id) = 0;
- // Returns the child Layers of the Widgets layer that were created by Views.
- virtual const std::vector<ui::Layer*>& GetRootLayers() = 0;
-
// Returns true if window has a hit-test mask.
virtual bool HasHitTestMask() const = 0;
@@ -147,6 +143,15 @@ class VIEWS_EXPORT NativeWidgetDelegate {
// not set the initial focus, or false if the caller should set the initial
// focus (if any).
virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0;
+
+ // Returns true if event handling should descend into |child|. |root_layer| is
+ // the layer associated with the root Window and |child_layer| the layer
+ // associated with |child|. |location| is in terms of the Window.
+ virtual bool ShouldDescendIntoChildForEventHandling(
+ ui::Layer* root_layer,
+ gfx::NativeView child,
+ ui::Layer* child_layer,
+ const gfx::Point& location) = 0;
};
} // namespace internal
« no previous file with comments | « ui/views/widget/native_widget_aura_unittest.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698