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

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

Issue 1929023002: Refactors WindowResizers to use ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
diff --git a/ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc b/ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
index 93cefc8ea48c00510279a0352e2751830aae49fa..09451cc6f47c4d13ffe90a8ba7f8c696af76d51c 100644
--- a/ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
+++ b/ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
@@ -13,6 +13,7 @@
#include "ash/system/tray/system_tray_notifier.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_utils.h"
+#include "ash/wm/common/shelf/wm_shelf_util.h"
#include "grit/ash_resources.h"
#include "grit/ash_strings.h"
#include "ui/base/l10n/l10n_util.h"
@@ -61,7 +62,7 @@ void VirtualKeyboardTray::SetShelfAlignment(wm::ShelfAlignment alignment) {
// Square up the padding if horizontally aligned. Avoid extra padding when
// vertically aligned as the button would violate the width constraint on the
// shelf.
- if (IsHorizontalAlignment(alignment)) {
+ if (wm::IsHorizontalAlignment(alignment)) {
gfx::Insets insets = button_->GetInsets();
int additional_padding = std::max(0, top_padding - left_padding);
left_padding += additional_padding;

Powered by Google App Engine
This is Rietveld 408576698