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

Side by Side Diff: ash/common/wm_shell.h

Issue 2522613004: Revert of chromeos: Convert ash VPNDelegate interface to mojo (Closed)
Patch Set: Created 4 years 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/common/system/tray/system_tray_delegate.cc ('k') | ash/common/wm_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 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_COMMON_WM_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 class NewWindowClient; 86 class NewWindowClient;
87 } 87 }
88 88
89 namespace wm { 89 namespace wm {
90 class MaximizeModeEventHandler; 90 class MaximizeModeEventHandler;
91 class WindowState; 91 class WindowState;
92 } 92 }
93 93
94 #if defined(OS_CHROMEOS) 94 #if defined(OS_CHROMEOS)
95 class LogoutConfirmationController; 95 class LogoutConfirmationController;
96 class VpnList;
97 #endif 96 #endif
98 97
99 // Similar to ash::Shell. Eventually the two will be merged. 98 // Similar to ash::Shell. Eventually the two will be merged.
100 class ASH_EXPORT WmShell { 99 class ASH_EXPORT WmShell {
101 public: 100 public:
102 // This is necessary for a handful of places that is difficult to plumb 101 // This is necessary for a handful of places that is difficult to plumb
103 // through context. 102 // through context.
104 static void Set(WmShell* instance); 103 static void Set(WmShell* instance);
105 static WmShell* Get(); 104 static WmShell* Get();
106 static bool HasInstance() { return instance_ != nullptr; } 105 static bool HasInstance() { return instance_ != nullptr; }
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 418
420 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool() { 419 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool() {
421 return blocking_pool_; 420 return blocking_pool_;
422 } 421 }
423 422
424 #if defined(OS_CHROMEOS) 423 #if defined(OS_CHROMEOS)
425 LogoutConfirmationController* logout_confirmation_controller() { 424 LogoutConfirmationController* logout_confirmation_controller() {
426 return logout_confirmation_controller_.get(); 425 return logout_confirmation_controller_.get();
427 } 426 }
428 427
429 VpnList* vpn_list() { return vpn_list_.get(); }
430
431 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. 428 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved.
432 virtual void ToggleIgnoreExternalKeyboard() = 0; 429 virtual void ToggleIgnoreExternalKeyboard() = 0;
433 430
434 // Enable or disable the laser pointer. 431 // Enable or disable the laser pointer.
435 virtual void SetLaserPointerEnabled(bool enabled) = 0; 432 virtual void SetLaserPointerEnabled(bool enabled) = 0;
436 #endif 433 #endif
437 434
438 protected: 435 protected:
439 explicit WmShell(std::unique_ptr<ShellDelegate> shell_delegate); 436 explicit WmShell(std::unique_ptr<ShellDelegate> shell_delegate);
440 virtual ~WmShell(); 437 virtual ~WmShell();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 // See comment for GetRootWindowForNewWindows(). 506 // See comment for GetRootWindowForNewWindows().
510 WmWindow* root_window_for_new_windows_ = nullptr; 507 WmWindow* root_window_for_new_windows_ = nullptr;
511 WmWindow* scoped_root_window_for_new_windows_ = nullptr; 508 WmWindow* scoped_root_window_for_new_windows_ = nullptr;
512 509
513 bool simulate_modal_window_open_for_testing_ = false; 510 bool simulate_modal_window_open_for_testing_ = false;
514 511
515 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 512 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
516 513
517 #if defined(OS_CHROMEOS) 514 #if defined(OS_CHROMEOS)
518 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 515 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
519 std::unique_ptr<VpnList> vpn_list_;
520 #endif 516 #endif
521 }; 517 };
522 518
523 } // namespace ash 519 } // namespace ash
524 520
525 #endif // ASH_COMMON_WM_SHELL_H_ 521 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/system_tray_delegate.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698