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

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

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Fix missed references. Created 3 years, 11 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/shell.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/display/display_observer.h"
14 #include "ui/events/event_handler.h" 14 #include "ui/events/event_handler.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/manager/chromeos/display_configurator.h" 18 #include "ui/display/manager/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
30 public views::WidgetObserver, 30 : public ui::EventHandler,
31 public display::DisplayObserver, 31 public views::WidgetObserver,
32 public display::DisplayObserver,
32 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
rjkroege 2017/01/04 21:19:50 Now that james has removed ash support for CrOS, s
oshima 2017/01/05 22:21:25 Not sure if I understand. Can you elaborate?
kylechar 2017/01/05 22:29:17 I think rjkroege means that the "ash" target will
oshima 2017/01/06 00:07:09 Oh, so he meant Win/Linux not CrOS?
33 public ui::DisplayConfigurator::Observer, 34 public display::DisplayConfigurator::Observer,
34 #endif // defined(OS_CHROMEOS) 35 #endif // defined(OS_CHROMEOS)
35 public WindowTreeHostManager::Observer { 36 public WindowTreeHostManager::Observer {
36 public: 37 public:
37 // Called to clear touch points and traces from the screen. Default 38 // Called to clear touch points and traces from the screen. Default
38 // implementation does nothing. Sub-classes should implement appropriately. 39 // implementation does nothing. Sub-classes should implement appropriately.
39 virtual void Clear(); 40 virtual void Clear();
40 41
41 // Removes the HUD from the screen. 42 // Removes the HUD from the screen.
42 void Remove(); 43 void Remove();
43 44
44 int64_t display_id() const { return display_id_; } 45 int64_t display_id() const { return display_id_; }
45 46
(...skipping 15 matching lines...) Expand all
61 // Overridden from views::WidgetObserver. 62 // Overridden from views::WidgetObserver.
62 void OnWidgetDestroying(views::Widget* widget) override; 63 void OnWidgetDestroying(views::Widget* widget) override;
63 64
64 // Overridden from display::DisplayObserver. 65 // Overridden from display::DisplayObserver.
65 void OnDisplayAdded(const display::Display& new_display) override; 66 void OnDisplayAdded(const display::Display& new_display) override;
66 void OnDisplayRemoved(const display::Display& old_display) override; 67 void OnDisplayRemoved(const display::Display& old_display) override;
67 void OnDisplayMetricsChanged(const display::Display& display, 68 void OnDisplayMetricsChanged(const display::Display& display,
68 uint32_t metrics) override; 69 uint32_t metrics) override;
69 70
70 #if defined(OS_CHROMEOS) 71 #if defined(OS_CHROMEOS)
71 // Overriden from ui::DisplayConfigurator::Observer. 72 // Overriden from display::DisplayConfigurator::Observer.
72 void OnDisplayModeChanged( 73 void OnDisplayModeChanged(
73 const ui::DisplayConfigurator::DisplayStateList& outputs) override; 74 const display::DisplayConfigurator::DisplayStateList& outputs) override;
74 #endif // defined(OS_CHROMEOS) 75 #endif // defined(OS_CHROMEOS)
75 76
76 // Overriden form WindowTreeHostManager::Observer. 77 // Overriden form WindowTreeHostManager::Observer.
77 void OnDisplaysInitialized() override; 78 void OnDisplaysInitialized() override;
78 void OnDisplayConfigurationChanging() override; 79 void OnDisplayConfigurationChanging() override;
79 void OnDisplayConfigurationChanged() override; 80 void OnDisplayConfigurationChanged() override;
80 81
81 private: 82 private:
82 friend class TouchHudTestBase; 83 friend class TouchHudTestBase;
83 84
84 const int64_t display_id_; 85 const int64_t display_id_;
85 aura::Window* root_window_; 86 aura::Window* root_window_;
86 87
87 views::Widget* widget_; 88 views::Widget* widget_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(TouchObserverHUD); 90 DISALLOW_COPY_AND_ASSIGN(TouchObserverHUD);
90 }; 91 };
91 92
92 } // namespace ash 93 } // namespace ash
93 94
94 #endif // ASH_TOUCH_TOUCH_OBSERVER_HUD_H_ 95 #endif // ASH_TOUCH_TOUCH_OBSERVER_HUD_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/touch/touch_observer_hud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698