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

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

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « ash/touch/touch_hud_debug.cc ('k') | ash/touch/touch_observer_hud.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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/display/window_tree_host_manager.h" 11 #include "ash/display/window_tree_host_manager.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "ui/display/display_observer.h"
13 #include "ui/events/event_handler.h" 14 #include "ui/events/event_handler.h"
14 #include "ui/gfx/display_observer.h"
15 #include "ui/views/widget/widget_observer.h" 15 #include "ui/views/widget/widget_observer.h"
16 16
17 #if defined(OS_CHROMEOS) 17 #if defined(OS_CHROMEOS)
18 #include "ui/display/chromeos/display_configurator.h" 18 #include "ui/display/chromeos/display_configurator.h"
19 #endif // defined(OS_CHROMEOS) 19 #endif // defined(OS_CHROMEOS)
20 20
21 namespace views { 21 namespace views {
22 class Widget; 22 class Widget;
23 } 23 }
24 24
25 namespace ash { 25 namespace ash {
26 26
27 // An event filter which handles system level gesture events. Objects of this 27 // An event filter which handles system level gesture events. Objects of this
28 // class manage their own lifetime. 28 // class manage their own lifetime.
29 class ASH_EXPORT TouchObserverHUD : public ui::EventHandler, 29 class ASH_EXPORT TouchObserverHUD : public ui::EventHandler,
30 public views::WidgetObserver, 30 public views::WidgetObserver,
31 public gfx::DisplayObserver, 31 public display::DisplayObserver,
32 #if defined(OS_CHROMEOS) 32 #if defined(OS_CHROMEOS)
33 public ui::DisplayConfigurator::Observer, 33 public ui::DisplayConfigurator::Observer,
34 #endif // defined(OS_CHROMEOS) 34 #endif // defined(OS_CHROMEOS)
35 public WindowTreeHostManager::Observer { 35 public WindowTreeHostManager::Observer {
36 public: 36 public:
37 // Called to clear touch points and traces from the screen. Default 37 // Called to clear touch points and traces from the screen. Default
38 // implementation does nothing. Sub-classes should implement appropriately. 38 // implementation does nothing. Sub-classes should implement appropriately.
39 virtual void Clear(); 39 virtual void Clear();
40 40
41 // Removes the HUD from the screen. 41 // Removes the HUD from the screen.
(...skipping 12 matching lines...) Expand all
54 RootWindowController* controller) = 0; 54 RootWindowController* controller) = 0;
55 55
56 views::Widget* widget() { return widget_; } 56 views::Widget* widget() { return widget_; }
57 57
58 // Overriden from ui::EventHandler. 58 // Overriden from ui::EventHandler.
59 void OnTouchEvent(ui::TouchEvent* event) override; 59 void OnTouchEvent(ui::TouchEvent* event) override;
60 60
61 // Overridden from views::WidgetObserver. 61 // Overridden from views::WidgetObserver.
62 void OnWidgetDestroying(views::Widget* widget) override; 62 void OnWidgetDestroying(views::Widget* widget) override;
63 63
64 // Overridden from gfx::DisplayObserver. 64 // Overridden from display::DisplayObserver.
65 void OnDisplayAdded(const gfx::Display& new_display) override; 65 void OnDisplayAdded(const display::Display& new_display) override;
66 void OnDisplayRemoved(const gfx::Display& old_display) override; 66 void OnDisplayRemoved(const display::Display& old_display) override;
67 void OnDisplayMetricsChanged(const gfx::Display& display, 67 void OnDisplayMetricsChanged(const display::Display& display,
68 uint32_t metrics) override; 68 uint32_t metrics) override;
69 69
70 #if defined(OS_CHROMEOS) 70 #if defined(OS_CHROMEOS)
71 // Overriden from ui::DisplayConfigurator::Observer. 71 // Overriden from ui::DisplayConfigurator::Observer.
72 void OnDisplayModeChanged( 72 void OnDisplayModeChanged(
73 const ui::DisplayConfigurator::DisplayStateList& outputs) override; 73 const ui::DisplayConfigurator::DisplayStateList& outputs) override;
74 #endif // defined(OS_CHROMEOS) 74 #endif // defined(OS_CHROMEOS)
75 75
76 // Overriden form WindowTreeHostManager::Observer. 76 // Overriden form WindowTreeHostManager::Observer.
77 void OnDisplaysInitialized() override; 77 void OnDisplaysInitialized() override;
78 void OnDisplayConfigurationChanging() override; 78 void OnDisplayConfigurationChanging() override;
79 void OnDisplayConfigurationChanged() override; 79 void OnDisplayConfigurationChanged() override;
80 80
81 private: 81 private:
82 friend class TouchHudTestBase; 82 friend class TouchHudTestBase;
83 83
84 const int64_t display_id_; 84 const int64_t display_id_;
85 aura::Window* root_window_; 85 aura::Window* root_window_;
86 86
87 views::Widget* widget_; 87 views::Widget* widget_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(TouchObserverHUD); 89 DISALLOW_COPY_AND_ASSIGN(TouchObserverHUD);
90 }; 90 };
91 91
92 } // namespace ash 92 } // namespace ash
93 93
94 #endif // ASH_TOUCH_TOUCH_OBSERVER_HUD_H_ 94 #endif // ASH_TOUCH_TOUCH_OBSERVER_HUD_H_
OLDNEW
« no previous file with comments | « ash/touch/touch_hud_debug.cc ('k') | ash/touch/touch_observer_hud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698