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

Side by Side Diff: ui/views/corewm/window_modality_controller.h

Issue 11568006: events: Update scroll and touch handlers to not return EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self-nit Created 8 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
« no previous file with comments | « ui/views/corewm/focus_controller.cc ('k') | ui/views/corewm/window_modality_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_ 5 #ifndef UI_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_
6 #define UI_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_ 6 #define UI_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 22 matching lines...) Expand all
33 class VIEWS_EXPORT WindowModalityController : public ui::EventHandler, 33 class VIEWS_EXPORT WindowModalityController : public ui::EventHandler,
34 public aura::EnvObserver, 34 public aura::EnvObserver,
35 public aura::WindowObserver { 35 public aura::WindowObserver {
36 public: 36 public:
37 WindowModalityController(); 37 WindowModalityController();
38 virtual ~WindowModalityController(); 38 virtual ~WindowModalityController();
39 39
40 // Overridden from ui::EventHandler: 40 // Overridden from ui::EventHandler:
41 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; 41 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
42 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; 42 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
43 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; 43 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE;
44 44
45 // Overridden from aura::EnvObserver: 45 // Overridden from aura::EnvObserver:
46 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE; 46 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE;
47 47
48 // Overridden from aura::WindowObserver: 48 // Overridden from aura::WindowObserver:
49 virtual void OnWindowVisibilityChanged(aura::Window* window, 49 virtual void OnWindowVisibilityChanged(aura::Window* window,
50 bool visible) OVERRIDE; 50 bool visible) OVERRIDE;
51 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; 51 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE;
52 52
53 private: 53 private:
54 // Processes a mouse/touch event, and returns true if the event should be 54 // Processes a mouse/touch event, and returns true if the event should be
55 // consumed. 55 // consumed.
56 bool ProcessLocatedEvent(aura::Window* target, 56 bool ProcessLocatedEvent(aura::Window* target,
57 ui::LocatedEvent* event); 57 ui::LocatedEvent* event);
58 58
59 std::vector<aura::Window*> windows_; 59 std::vector<aura::Window*> windows_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(WindowModalityController); 61 DISALLOW_COPY_AND_ASSIGN(WindowModalityController);
62 }; 62 };
63 63
64 } // namespace corewm 64 } // namespace corewm
65 } // namespace views 65 } // namespace views
66 66
67 #endif // UI_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_ 67 #endif // UI_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/focus_controller.cc ('k') | ui/views/corewm/window_modality_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698