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

Side by Side Diff: ui/aura_shell/root_window_event_filter.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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_SHELL_ROOT_WINDOW_EVENT_FILTER_H_ 5 #ifndef UI_AURA_SHELL_ROOT_WINDOW_EVENT_FILTER_H_
6 #define UI_AURA_SHELL_ROOT_WINDOW_EVENT_FILTER_H_ 6 #define UI_AURA_SHELL_ROOT_WINDOW_EVENT_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // Overridden from EventFilter: 34 // Overridden from EventFilter:
35 virtual bool PreHandleKeyEvent(aura::Window* target, 35 virtual bool PreHandleKeyEvent(aura::Window* target,
36 aura::KeyEvent* event) OVERRIDE; 36 aura::KeyEvent* event) OVERRIDE;
37 virtual bool PreHandleMouseEvent(aura::Window* target, 37 virtual bool PreHandleMouseEvent(aura::Window* target,
38 aura::MouseEvent* event) OVERRIDE; 38 aura::MouseEvent* event) OVERRIDE;
39 virtual ui::TouchStatus PreHandleTouchEvent(aura::Window* target, 39 virtual ui::TouchStatus PreHandleTouchEvent(aura::Window* target,
40 aura::TouchEvent* event) OVERRIDE; 40 aura::TouchEvent* event) OVERRIDE;
41 41
42 private: 42 private:
43 // If necessary, activates |window| and changes focus.
44 void ActivateIfNecessary(aura::Window* window, aura::Event* event);
45
43 // Updates the cursor if the target provides a custom one, and provides 46 // Updates the cursor if the target provides a custom one, and provides
44 // default resize cursors for window edges. 47 // default resize cursors for window edges.
45 void UpdateCursor(aura::Window* target, aura::MouseEvent* event); 48 void UpdateCursor(aura::Window* target, aura::MouseEvent* event);
46 49
47 // Dispatches event to additional filters. Returns false or 50 // Dispatches event to addtional filters. Returns false or
48 // ui::TOUCH_STATUS_UNKNOWN if event is consumed. 51 // ui::TOUCH_STATUS_UNKNOWN if event is consumed.
49 bool FilterKeyEvent(aura::Window* target, aura::KeyEvent* event); 52 bool FilterKeyEvent(aura::Window* target, aura::KeyEvent* event);
50 bool FilterMouseEvent(aura::Window* target, aura::MouseEvent* event); 53 bool FilterMouseEvent(aura::Window* target, aura::MouseEvent* event);
51 ui::TouchStatus FilterTouchEvent(aura::Window* target, 54 ui::TouchStatus FilterTouchEvent(aura::Window* target,
52 aura::TouchEvent* event); 55 aura::TouchEvent* event);
53 56
54 // Additional event filters that pre-handles events. 57 // Additional event filters that pre-handles events.
55 ObserverList<aura::EventFilter, true> filters_; 58 ObserverList<aura::EventFilter, true> filters_;
56 59
57 DISALLOW_COPY_AND_ASSIGN(RootWindowEventFilter); 60 DISALLOW_COPY_AND_ASSIGN(RootWindowEventFilter);
58 }; 61 };
59 62
60 } // namespace internal 63 } // namespace internal
61 } // namespace aura_shell 64 } // namespace aura_shell
62 65
63 #endif // UI_AURA_SHELL_ROOT_WINDOW_EVENT_FILTER_H_ 66 #endif // UI_AURA_SHELL_ROOT_WINDOW_EVENT_FILTER_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/modal_container_layout_manager_unittest.cc ('k') | ui/aura_shell/root_window_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698