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

Unified Diff: ash/shell.h

Issue 10960015: aura: Start converting event-filters into event-handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 997d0f5295b5dbcfa61dd06b848d189361ec4314..a1cebe6728db568848e29b89a28815804b6fdc33 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -181,10 +181,10 @@ class ASH_EXPORT Shell : ash::CursorDelegate {
active_root_window_ = active_root_window;
}
- // Adds or removes |filter| from the aura::Env's CompoundEventFilter.
+ // Adds or removes |filter| from the aura::Env's pre-target event-handler
+ // list.
void AddEnvEventFilter(aura::EventFilter* filter);
void RemoveEnvEventFilter(aura::EventFilter* filter);
- size_t GetEnvEventFilterCount() const;
// Shows the background menu over |widget|.
void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location);
@@ -246,7 +246,7 @@ class ASH_EXPORT Shell : ash::CursorDelegate {
#endif // !defined(OS_MACOSX)
aura::shared::CompoundEventFilter* env_filter() {
- return env_filter_;
+ return env_filter_.get();
}
internal::TooltipController* tooltip_controller() {
return tooltip_controller_.get();
@@ -400,7 +400,7 @@ class ASH_EXPORT Shell : ash::CursorDelegate {
aura::RootWindow* active_root_window_;
// The CompoundEventFilter owned by aura::Env object.
- aura::shared::CompoundEventFilter* env_filter_;
+ scoped_ptr<aura::shared::CompoundEventFilter> env_filter_;
std::vector<WindowAndBoundsPair> to_restore_;
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/shell.cc » ('j') | ui/aura/root_window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698