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

Side by Side Diff: ash/touch/touch_observer_hud.h

Issue 226183004: Renamed OutputConfigurator to DisplayConfigurator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
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 ASH_TOUCH_TOUCH_OBSERVER_HUD_H_ 5 #ifndef ASH_TOUCH_TOUCH_OBSERVER_HUD_H_
6 #define ASH_TOUCH_TOUCH_OBSERVER_HUD_H_ 6 #define ASH_TOUCH_TOUCH_OBSERVER_HUD_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/display/display_controller.h" 9 #include "ash/display/display_controller.h"
10 #include "ui/events/event_handler.h" 10 #include "ui/events/event_handler.h"
11 #include "ui/gfx/display_observer.h" 11 #include "ui/gfx/display_observer.h"
12 #include "ui/views/widget/widget_observer.h" 12 #include "ui/views/widget/widget_observer.h"
13 13
14 #if defined(OS_CHROMEOS) 14 #if defined(OS_CHROMEOS)
15 #include "ui/display/chromeos/output_configurator.h" 15 #include "ui/display/chromeos/display_configurator.h"
16 #endif // defined(OS_CHROMEOS) 16 #endif // defined(OS_CHROMEOS)
17 17
18 namespace views { 18 namespace views {
19 class Widget; 19 class Widget;
20 } 20 }
21 21
22 namespace ash { 22 namespace ash {
23 23
24 // An event filter which handles system level gesture events. Objects of this 24 // An event filter which handles system level gesture events. Objects of this
25 // class manage their own lifetime. 25 // class manage their own lifetime.
26 class ASH_EXPORT TouchObserverHUD : public ui::EventHandler, 26 class ASH_EXPORT TouchObserverHUD : public ui::EventHandler,
27 public views::WidgetObserver, 27 public views::WidgetObserver,
28 public gfx::DisplayObserver, 28 public gfx::DisplayObserver,
29 #if defined(OS_CHROMEOS) 29 #if defined(OS_CHROMEOS)
30 public ui::OutputConfigurator::Observer, 30 public ui::DisplayConfigurator::Observer,
31 #endif // defined(OS_CHROMEOS) 31 #endif // defined(OS_CHROMEOS)
32 public DisplayController::Observer { 32 public DisplayController::Observer {
33 public: 33 public:
34 // Called to clear touch points and traces from the screen. Default 34 // Called to clear touch points and traces from the screen. Default
35 // implementation does nothing. Sub-classes should implement appropriately. 35 // implementation does nothing. Sub-classes should implement appropriately.
36 virtual void Clear(); 36 virtual void Clear();
37 37
38 // Removes the HUD from the screen. 38 // Removes the HUD from the screen.
39 void Remove(); 39 void Remove();
40 40
(...skipping 16 matching lines...) Expand all
57 57
58 // Overridden from views::WidgetObserver. 58 // Overridden from views::WidgetObserver.
59 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; 59 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
60 60
61 // Overridden from gfx::DisplayObserver. 61 // Overridden from gfx::DisplayObserver.
62 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; 62 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE;
63 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; 63 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
64 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; 64 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
65 65
66 #if defined(OS_CHROMEOS) 66 #if defined(OS_CHROMEOS)
67 // Overriden from ui::OutputConfigurator::Observer. 67 // Overriden from ui::DisplayConfigurator::Observer.
68 virtual void OnDisplayModeChanged( 68 virtual void OnDisplayModeChanged(
69 const ui::OutputConfigurator::DisplayStateList& outputs) OVERRIDE; 69 const ui::DisplayConfigurator::DisplayStateList& outputs) OVERRIDE;
70 #endif // defined(OS_CHROMEOS) 70 #endif // defined(OS_CHROMEOS)
71 71
72 // Overriden form DisplayController::Observer. 72 // Overriden form DisplayController::Observer.
73 virtual void OnDisplaysInitialized() OVERRIDE; 73 virtual void OnDisplaysInitialized() OVERRIDE;
74 virtual void OnDisplayConfigurationChanging() OVERRIDE; 74 virtual void OnDisplayConfigurationChanging() OVERRIDE;
75 virtual void OnDisplayConfigurationChanged() OVERRIDE; 75 virtual void OnDisplayConfigurationChanged() OVERRIDE;
76 76
77 private: 77 private:
78 friend class TouchHudTestBase; 78 friend class TouchHudTestBase;
79 79
80 const int64 display_id_; 80 const int64 display_id_;
81 aura::Window* root_window_; 81 aura::Window* root_window_;
82 82
83 views::Widget* widget_; 83 views::Widget* widget_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(TouchObserverHUD); 85 DISALLOW_COPY_AND_ASSIGN(TouchObserverHUD);
86 }; 86 };
87 87
88 } // namespace ash 88 } // namespace ash
89 89
90 #endif // ASH_TOUCH_TOUCH_OBSERVER_HUD_H_ 90 #endif // ASH_TOUCH_TOUCH_OBSERVER_HUD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698