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

Side by Side Diff: ash/shell_port.h

Issue 2910773002: cros: CustomFrameViewAsh avatar icon from a window prop (Closed)
Patch Set: add test Created 3 years, 6 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_delegate.h ('k') | ash/shell_port.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 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>
(...skipping 30 matching lines...) Expand all
41 41
42 namespace ash { 42 namespace ash {
43 class AcceleratorController; 43 class AcceleratorController;
44 class AshWindowTreeHost; 44 class AshWindowTreeHost;
45 struct AshWindowTreeHostInitParams; 45 struct AshWindowTreeHostInitParams;
46 class ImmersiveFullscreenController; 46 class ImmersiveFullscreenController;
47 class KeyEventWatcher; 47 class KeyEventWatcher;
48 class KeyboardUI; 48 class KeyboardUI;
49 class RootWindowController; 49 class RootWindowController;
50 class ScopedDisableInternalMouseAndKeyboard; 50 class ScopedDisableInternalMouseAndKeyboard;
51 class SessionStateDelegate;
52 struct ShellInitParams; 51 struct ShellInitParams;
53 class WindowCycleEventFilter; 52 class WindowCycleEventFilter;
54 class WindowResizer; 53 class WindowResizer;
55 class WmDisplayObserver; 54 class WmDisplayObserver;
56 class WmWindow; 55 class WmWindow;
57 class WorkspaceEventHandler; 56 class WorkspaceEventHandler;
58 57
59 enum class Config; 58 enum class Config;
60 enum class LoginStatus; 59 enum class LoginStatus;
61 enum class TaskSwitchSource; 60 enum class TaskSwitchSource;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 CreateScopedDisableInternalMouseAndKeyboard() = 0; 176 CreateScopedDisableInternalMouseAndKeyboard() = 0;
178 177
179 virtual std::unique_ptr<ImmersiveFullscreenController> 178 virtual std::unique_ptr<ImmersiveFullscreenController>
180 CreateImmersiveFullscreenController() = 0; 179 CreateImmersiveFullscreenController() = 0;
181 180
182 // Creates the KeyboardUI. This is called early on. 181 // Creates the KeyboardUI. This is called early on.
183 virtual std::unique_ptr<KeyboardUI> CreateKeyboardUI() = 0; 182 virtual std::unique_ptr<KeyboardUI> CreateKeyboardUI() = 0;
184 183
185 virtual std::unique_ptr<KeyEventWatcher> CreateKeyEventWatcher() = 0; 184 virtual std::unique_ptr<KeyEventWatcher> CreateKeyEventWatcher() = 0;
186 185
187 virtual SessionStateDelegate* GetSessionStateDelegate() = 0;
188
189 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; 186 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0;
190 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; 187 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0;
191 188
192 // If |events| is PointerWatcherEventTypes::MOVES, 189 // If |events| is PointerWatcherEventTypes::MOVES,
193 // PointerWatcher::OnPointerEventObserved() is called for pointer move events. 190 // PointerWatcher::OnPointerEventObserved() is called for pointer move events.
194 // If |events| is PointerWatcherEventTypes::DRAGS, 191 // If |events| is PointerWatcherEventTypes::DRAGS,
195 // PointerWatcher::OnPointerEventObserved() is called for pointer drag events. 192 // PointerWatcher::OnPointerEventObserved() is called for pointer drag events.
196 // Requesting pointer moves or drags may incur a performance hit and should be 193 // Requesting pointer moves or drags may incur a performance hit and should be
197 // avoided if possible. 194 // avoided if possible.
198 virtual void AddPointerWatcher(views::PointerWatcher* watcher, 195 virtual void AddPointerWatcher(views::PointerWatcher* watcher,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 static ShellPort* instance_; 246 static ShellPort* instance_;
250 247
251 base::ObserverList<LockStateObserver> lock_state_observers_; 248 base::ObserverList<LockStateObserver> lock_state_observers_;
252 249
253 bool simulate_modal_window_open_for_testing_ = false; 250 bool simulate_modal_window_open_for_testing_ = false;
254 }; 251 };
255 252
256 } // namespace ash 253 } // namespace ash
257 254
258 #endif // ASH_SHELL_PORT_H_ 255 #endif // ASH_SHELL_PORT_H_
OLDNEW
« no previous file with comments | « ash/shell_delegate.h ('k') | ash/shell_port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698