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

Unified Diff: ui/aura/test/test_window_delegate.h

Issue 8570011: Aura: windows in aura should honor Widget::InitParams::accept_events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 9 years, 1 month 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 | « no previous file | ui/aura/test/test_window_delegate.cc » ('j') | ui/aura/window_delegate.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_window_delegate.h
diff --git a/ui/aura/test/test_window_delegate.h b/ui/aura/test/test_window_delegate.h
index 783402b501377b7f05cfb18305c1c6387317f3d0..8ec4a4476bcef6e4f6e5c822662a5a027d5dafee 100644
--- a/ui/aura/test/test_window_delegate.h
+++ b/ui/aura/test/test_window_delegate.h
@@ -19,6 +19,8 @@ class TestWindowDelegate : public WindowDelegate {
TestWindowDelegate();
virtual ~TestWindowDelegate();
+ void set_accept_events(bool accept_events) { accept_events_ = accept_events; }
+
// Overridden from WindowDelegate:
virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds);
@@ -30,6 +32,7 @@ class TestWindowDelegate : public WindowDelegate {
virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE;
virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE;
virtual bool ShouldActivate(Event* event) OVERRIDE;
+ virtual bool ShouldAcceptEvents() OVERRIDE;
virtual void OnActivated() OVERRIDE;
virtual void OnLostActive() OVERRIDE;
virtual void OnCaptureLost() OVERRIDE;
@@ -39,6 +42,8 @@ class TestWindowDelegate : public WindowDelegate {
virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE;
private:
+ bool accept_events_;
+
DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate);
};
« no previous file with comments | « no previous file | ui/aura/test/test_window_delegate.cc » ('j') | ui/aura/window_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698