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

Unified Diff: ui/aura/window_delegate.h

Issue 8926004: Revert 114095 - Move the concept of Activation to the Shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_delegate.h
===================================================================
--- ui/aura/window_delegate.h (revision 114099)
+++ ui/aura/window_delegate.h (working copy)
@@ -55,6 +55,18 @@
// Returns true of the window can be focused.
virtual bool CanFocus() = 0;
+ // Returns true if the window should be activated. |event| is either the mouse
+ // event supplied if the activation is the result of a mouse, or the touch
+ // event if the activation is the result of a touch, or NULL if activation is
+ // attempted for another reason.
+ virtual bool ShouldActivate(Event* event) = 0;
+
+ // Sent when the window is activated.
+ virtual void OnActivated() = 0;
+
+ // Sent when the window loses active status.
+ virtual void OnLostActive() = 0;
+
// Invoked when mouse capture is lost on the window.
virtual void OnCaptureLost() = 0;
Property changes on: ui\aura\window_delegate.h
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698