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

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

Issue 187073002: Refactoring display configuration state to allow generic state objects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 9 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
« no previous file with comments | « ash/display/projecting_observer_chromeos_unittest.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 "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"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Overridden from views::WidgetObserver. 59 // Overridden from views::WidgetObserver.
60 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; 60 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
61 61
62 // Overridden from gfx::DisplayObserver. 62 // Overridden from gfx::DisplayObserver.
63 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; 63 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE;
64 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; 64 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
65 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; 65 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
66 66
67 #if defined(OS_CHROMEOS) 67 #if defined(OS_CHROMEOS)
68 // Overriden from ui::OutputConfigurator::Observer. 68 // Overriden from ui::OutputConfigurator::Observer.
69 virtual void OnDisplayModeChanged(const std::vector< 69 virtual void OnDisplayModeChanged(
70 ui::OutputConfigurator::OutputSnapshot>& outputs) OVERRIDE; 70 const ui::OutputConfigurator::DisplayStateList& outputs) OVERRIDE;
71 #endif // defined(OS_CHROMEOS) 71 #endif // defined(OS_CHROMEOS)
72 72
73 // Overriden form DisplayController::Observer. 73 // Overriden form DisplayController::Observer.
74 virtual void OnDisplaysInitialized() OVERRIDE; 74 virtual void OnDisplaysInitialized() OVERRIDE;
75 virtual void OnDisplayConfigurationChanging() OVERRIDE; 75 virtual void OnDisplayConfigurationChanging() OVERRIDE;
76 virtual void OnDisplayConfigurationChanged() OVERRIDE; 76 virtual void OnDisplayConfigurationChanged() OVERRIDE;
77 77
78 private: 78 private:
79 friend class TouchHudTestBase; 79 friend class TouchHudTestBase;
80 80
81 const int64 display_id_; 81 const int64 display_id_;
82 aura::Window* root_window_; 82 aura::Window* root_window_;
83 83
84 views::Widget* widget_; 84 views::Widget* widget_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(TouchObserverHUD); 86 DISALLOW_COPY_AND_ASSIGN(TouchObserverHUD);
87 }; 87 };
88 88
89 } // namespace internal 89 } // namespace internal
90 } // namespace ash 90 } // namespace ash
91 91
92 #endif // ASH_TOUCH_TOUCH_OBSERVER_HUD_H_ 92 #endif // ASH_TOUCH_TOUCH_OBSERVER_HUD_H_
OLDNEW
« no previous file with comments | « ash/display/projecting_observer_chromeos_unittest.cc ('k') | ash/touch/touch_observer_hud.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698