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

Unified Diff: ash/shell.cc

Issue 2267023003: ash: Eliminate PointerWatcherDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index a2ab7a0fd1a41505b5742f802b055c202be96d3a..1964e4ddc9bef3f4f4050f80b0623eaf421e1ea7 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -19,7 +19,6 @@
#include "ash/common/gpu_support.h"
#include "ash/common/keyboard/keyboard_ui.h"
#include "ash/common/login_status.h"
-#include "ash/common/pointer_watcher_delegate.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shelf/app_list_shelf_item_delegate.h"
#include "ash/common/shelf/shelf_delegate.h"
@@ -415,15 +414,6 @@ void Shell::ShutdownShelf() {
}
}
-void Shell::AddPointerWatcher(views::PointerWatcher* watcher,
- bool wants_moves) {
- pointer_watcher_delegate_->AddPointerWatcher(watcher, wants_moves);
-}
-
-void Shell::RemovePointerWatcher(views::PointerWatcher* watcher) {
- pointer_watcher_delegate_->RemovePointerWatcher(watcher);
-}
-
#if defined(OS_CHROMEOS)
bool Shell::ShouldSaveDisplaySettings() {
return !(
@@ -669,7 +659,6 @@ Shell::~Shell() {
window_tree_host_manager_.reset();
focus_client_.reset();
screen_position_controller_.reset();
- pointer_watcher_delegate_.reset();
keyboard::KeyboardController::ResetInstance(nullptr);
@@ -907,8 +896,7 @@ void Shell::Init(const ShellInitParams& init_params) {
session_state_delegate_.reset(
wm_shell_->delegate()->CreateSessionStateDelegate());
- pointer_watcher_delegate_ =
- wm_shell_->delegate()->CreatePointerWatcherDelegate();
+ wm_shell_->CreatePointerWatcherAdapter();
resize_shadow_controller_.reset(new ResizeShadowController());
shadow_controller_.reset(new ::wm::ShadowController(activation_client_));
« no previous file with comments | « ash/shell.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698