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

Unified Diff: ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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/common/system/chromeos/tray_tracing.cc ('k') | ash/common/system/date/date_default_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
diff --git a/ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc b/ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
index 8a254ae523c80ce7632bee9b5d0941351b3f61f8..5ff516355c01e0177cf67c1cf8a92f583a9adb41 100644
--- a/ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
+++ b/ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
@@ -10,9 +10,9 @@
#include "ash/common/shelf/shelf_constants.h"
#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/system/tray/tray_constants.h"
-#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/resources/vector_icons/vector_icons.h"
+#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/display/display.h"
@@ -35,8 +35,8 @@ VirtualKeyboardTray::VirtualKeyboardTray(WmShelf* wm_shelf)
tray_container()->AddChildView(icon_);
// The Shell may not exist in some unit tests.
- if (WmShell::HasInstance())
- WmShell::Get()->keyboard_ui()->AddObserver(this);
+ if (Shell::HasInstance())
+ Shell::Get()->keyboard_ui()->AddObserver(this);
// Try observing keyboard controller, in case it is already constructed.
ObserveKeyboardController();
}
@@ -45,8 +45,8 @@ VirtualKeyboardTray::~VirtualKeyboardTray() {
// Try unobserving keyboard controller, in case it still exists.
UnobserveKeyboardController();
// The Shell may not exist in some unit tests.
- if (WmShell::HasInstance())
- WmShell::Get()->keyboard_ui()->RemoveObserver(this);
+ if (Shell::HasInstance())
+ Shell::Get()->keyboard_ui()->RemoveObserver(this);
}
void VirtualKeyboardTray::SetShelfAlignment(ShelfAlignment alignment) {
@@ -70,7 +70,7 @@ void VirtualKeyboardTray::ClickedOutsideBubble() {}
bool VirtualKeyboardTray::PerformAction(const ui::Event& event) {
const int64_t display_id =
wm_shelf_->GetWindow()->GetDisplayNearestWindow().id();
- WmShell::Get()->keyboard_ui()->ShowInDisplay(display_id);
+ Shell::Get()->keyboard_ui()->ShowInDisplay(display_id);
// Normally, active status is set when virtual keyboard is shown/hidden,
// however, showing virtual keyboard happens asynchronously and, especially
// the first time, takes some time. We need to set active status here to
« no previous file with comments | « ash/common/system/chromeos/tray_tracing.cc ('k') | ash/common/system/date/date_default_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698