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

Side by Side Diff: ash/shell.h

Issue 2965503003: Ash: Inline InitKeyboard, and make the caller of it call CreateKeyboard. (Closed)
Patch Set: Ash: Inline InitKeyboard, and make the caller of it call CreateKeyboard. Created 3 years, 5 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/root_window_controller.cc ('k') | ash/shell.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_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // Sets work area insets of the display containing |window|, pings observers. 280 // Sets work area insets of the display containing |window|, pings observers.
281 void SetDisplayWorkAreaInsets(aura::Window* window, 281 void SetDisplayWorkAreaInsets(aura::Window* window,
282 const gfx::Insets& insets); 282 const gfx::Insets& insets);
283 283
284 // Called when a casting session is started or stopped. 284 // Called when a casting session is started or stopped.
285 void OnCastingSessionStartedOrStopped(bool started); 285 void OnCastingSessionStartedOrStopped(bool started);
286 286
287 // Called when a root window is created. 287 // Called when a root window is created.
288 void OnRootWindowAdded(aura::Window* root_window); 288 void OnRootWindowAdded(aura::Window* root_window);
289 289
290 // Creates a virtual keyboard. Deletes the old virtual keyboard if it already 290 // Creates a keyboard controller and associate it with the primary root window
291 // exists. 291 // controller. Destroys the old keyboard controller if it already exists.
292 void CreateKeyboard(); 292 void CreateKeyboard();
293 293
294 // Deactivates the virtual keyboard. 294 // Deactivates the virtual keyboard.
295 void DeactivateKeyboard(); 295 void DeactivateKeyboard();
296 296
297 // Test if MaximizeModeWindowManager is not enabled, and if 297 // Test if MaximizeModeWindowManager is not enabled, and if
298 // MaximizeModeController is not currently setting a display rotation. Or if 298 // MaximizeModeController is not currently setting a display rotation. Or if
299 // the |resolution_notification_controller_| is not showing its confirmation 299 // the |resolution_notification_controller_| is not showing its confirmation
300 // dialog. If true then changes to display settings can be saved. 300 // dialog. If true then changes to display settings can be saved.
301 bool ShouldSaveDisplaySettings(); 301 bool ShouldSaveDisplaySettings();
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 friend class SmsObserverTest; 620 friend class SmsObserverTest;
621 friend class test::ShellTestApi; 621 friend class test::ShellTestApi;
622 friend class shell::WindowWatcher; 622 friend class shell::WindowWatcher;
623 623
624 Shell(std::unique_ptr<ShellDelegate> shell_delegate, 624 Shell(std::unique_ptr<ShellDelegate> shell_delegate,
625 std::unique_ptr<ShellPort> shell_port); 625 std::unique_ptr<ShellPort> shell_port);
626 ~Shell() override; 626 ~Shell() override;
627 627
628 void Init(const ShellInitParams& init_params); 628 void Init(const ShellInitParams& init_params);
629 629
630 // Initializes virtual keyboard controller.
631 void InitKeyboard();
632
633 // Initializes the root window so that it can host browser windows. 630 // Initializes the root window so that it can host browser windows.
634 void InitRootWindow(aura::Window* root_window); 631 void InitRootWindow(aura::Window* root_window);
635 632
636 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate); 633 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate);
637 void DeleteSystemTrayDelegate(); 634 void DeleteSystemTrayDelegate();
638 635
639 // Destroys all child windows including widgets across all roots. 636 // Destroys all child windows including widgets across all roots.
640 void CloseAllRootWindowChildWindows(); 637 void CloseAllRootWindowChildWindows();
641 638
642 // SystemModalContainerEventFilterDelegate: 639 // SystemModalContainerEventFilterDelegate:
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 base::ObserverList<ShellObserver> shell_observers_; 830 base::ObserverList<ShellObserver> shell_observers_;
834 831
835 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 832 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
836 833
837 DISALLOW_COPY_AND_ASSIGN(Shell); 834 DISALLOW_COPY_AND_ASSIGN(Shell);
838 }; 835 };
839 836
840 } // namespace ash 837 } // namespace ash
841 838
842 #endif // ASH_SHELL_H_ 839 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698