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

Side by Side Diff: ash/shell_port.h

Issue 2897863004: Revert of chromeos: adds TouchDeviceServer and wires up in mushrome (Closed)
Patch Set: Created 3 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/shell.cc ('k') | mojo/public/tools/bindings/chromium_bindings_configuration.gni » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SHELL_PORT_H_ 5 #ifndef ASH_SHELL_PORT_H_
6 #define ASH_SHELL_PORT_H_ 6 #define ASH_SHELL_PORT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "ash/ash_export.h" 13 #include "ash/ash_export.h"
14 #include "ash/metrics/gesture_action_type.h" 14 #include "ash/metrics/gesture_action_type.h"
15 #include "ash/metrics/user_metrics_action.h" 15 #include "ash/metrics/user_metrics_action.h"
16 #include "ash/wm/lock_state_observer.h" 16 #include "ash/wm/lock_state_observer.h"
17 #include "base/observer_list.h" 17 #include "base/observer_list.h"
18 #include "base/optional.h" 18 #include "base/optional.h"
19 #include "ui/base/cursor/cursor_data.h" 19 #include "ui/base/cursor/cursor_data.h"
20 #include "ui/base/ui_base_types.h" 20 #include "ui/base/ui_base_types.h"
21 #include "ui/compositor/layer_type.h" 21 #include "ui/compositor/layer_type.h"
22 #include "ui/wm/public/activation_change_observer.h" 22 #include "ui/wm/public/activation_change_observer.h"
23 #include "ui/wm/public/window_types.h" 23 #include "ui/wm/public/window_types.h"
24 24
25 namespace display { 25 namespace display {
26 class Display; 26 class Display;
27 class ManagedDisplayInfo; 27 class ManagedDisplayInfo;
28 class NativeDisplayDelegate; 28 class NativeDisplayDelegate;
29 class TouchTransformSetter;
30 } 29 }
31 30
32 namespace gfx { 31 namespace gfx {
33 class Insets; 32 class Insets;
34 class Point; 33 class Point;
35 } 34 }
36 35
37 namespace views { 36 namespace views {
38 class PointerWatcher; 37 class PointerWatcher;
39 enum class PointerWatcherEventTypes; 38 enum class PointerWatcherEventTypes;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 bool IsSystemModalWindowOpen(); 118 bool IsSystemModalWindowOpen();
120 119
121 // Creates a modal background (a partially-opaque fullscreen window) on all 120 // Creates a modal background (a partially-opaque fullscreen window) on all
122 // displays for |window|. 121 // displays for |window|.
123 void CreateModalBackground(aura::Window* window); 122 void CreateModalBackground(aura::Window* window);
124 123
125 // Called when a modal window is removed. It will activate another modal 124 // Called when a modal window is removed. It will activate another modal
126 // window if any, or remove modal screens on all displays. 125 // window if any, or remove modal screens on all displays.
127 void OnModalWindowRemoved(aura::Window* removed); 126 void OnModalWindowRemoved(aura::Window* removed);
128 127
129 // The return value from this is supplied to AshTouchTransformController; see
130 // it and TouchTransformSetter for details.
131 // TODO(sky): remove once simplified disable management enabled everywhere;
132 // http://crbug.com/718860.
133 virtual std::unique_ptr<display::TouchTransformSetter>
134 CreateTouchTransformDelegate() = 0;
135
136 // For testing only: set simulation that a modal window is open 128 // For testing only: set simulation that a modal window is open
137 void SimulateModalWindowOpenForTesting(bool modal_window_open) { 129 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
138 simulate_modal_window_open_for_testing_ = modal_window_open; 130 simulate_modal_window_open_for_testing_ = modal_window_open;
139 } 131 }
140 132
141 // See aura::client::CursorClient for details on these. 133 // See aura::client::CursorClient for details on these.
142 virtual void LockCursor() = 0; 134 virtual void LockCursor() = 0;
143 virtual void UnlockCursor() = 0; 135 virtual void UnlockCursor() = 0;
144 virtual void ShowCursor() = 0; 136 virtual void ShowCursor() = 0;
145 virtual void HideCursor() = 0; 137 virtual void HideCursor() = 0;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 static ShellPort* instance_; 241 static ShellPort* instance_;
250 242
251 base::ObserverList<LockStateObserver> lock_state_observers_; 243 base::ObserverList<LockStateObserver> lock_state_observers_;
252 244
253 bool simulate_modal_window_open_for_testing_ = false; 245 bool simulate_modal_window_open_for_testing_ = false;
254 }; 246 };
255 247
256 } // namespace ash 248 } // namespace ash
257 249
258 #endif // ASH_SHELL_PORT_H_ 250 #endif // ASH_SHELL_PORT_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | mojo/public/tools/bindings/chromium_bindings_configuration.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698