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

Unified Diff: ash/wm/system_modal_container_layout_manager.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/wm/system_modal_container_layout_manager.cc
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index 3ab957b7e32a98bb815387583b3752caec76e5c3..16e53330c8d587d76eff9a40e484091afe505e65 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -40,8 +40,7 @@ SystemModalContainerLayoutManager::SystemModalContainerLayoutManager(
container_(container),
modal_background_(nullptr) {}
-SystemModalContainerLayoutManager::~SystemModalContainerLayoutManager() {
-}
+SystemModalContainerLayoutManager::~SystemModalContainerLayoutManager() {}
////////////////////////////////////////////////////////////////////////////////
// SystemModalContainerLayoutManager, aura::LayoutManager implementation:
@@ -215,8 +214,8 @@ gfx::Rect SystemModalContainerLayoutManager::GetUsableDialogArea() {
if (keyboard_controller) {
gfx::Rect bounds = keyboard_controller->current_keyboard_bounds();
if (!bounds.IsEmpty()) {
- valid_bounds.set_height(std::max(
- 0, valid_bounds.height() - bounds.height()));
+ valid_bounds.set_height(
+ std::max(0, valid_bounds.height() - bounds.height()));
}
}
return valid_bounds;
@@ -248,9 +247,9 @@ bool SystemModalContainerLayoutManager::DialogIsCentered(
const gfx::Rect& window_bounds) {
gfx::Point window_center = window_bounds.CenterPoint();
gfx::Point container_center = GetUsableDialogArea().CenterPoint();
- return
- std::abs(window_center.x() - container_center.x()) < kCenterPixelDelta &&
- std::abs(window_center.y() - container_center.y()) < kCenterPixelDelta;
+ return std::abs(window_center.x() - container_center.x()) <
+ kCenterPixelDelta &&
+ std::abs(window_center.y() - container_center.y()) < kCenterPixelDelta;
}
} // namespace ash
« no previous file with comments | « ash/wm/system_modal_container_event_filter.cc ('k') | ash/wm/system_modal_container_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698