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

Unified Diff: ash/display/cursor_window_controller.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
« no previous file with comments | « ash/dip_unittest.cc ('k') | ash/display/display_change_observer_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/cursor_window_controller.cc
diff --git a/ash/display/cursor_window_controller.cc b/ash/display/cursor_window_controller.cc
index 83e8fe08d6657a2d43c43df5b3a050a6b19bb9eb..c0dc13471816a40f6633733dedc9b43b172d3e11 100644
--- a/ash/display/cursor_window_controller.cc
+++ b/ash/display/cursor_window_controller.cc
@@ -84,8 +84,7 @@ CursorWindowController::CursorWindowController()
cursor_type_(ui::kCursorNone),
visible_(true),
cursor_set_(ui::CURSOR_SET_NORMAL),
- delegate_(new CursorWindowDelegate()) {
-}
+ delegate_(new CursorWindowDelegate()) {}
CursorWindowController::~CursorWindowController() {
SetContainer(NULL);
@@ -139,8 +138,8 @@ void CursorWindowController::SetDisplay(const display::Display& display) {
if (!root_window)
return;
- SetContainer(GetRootWindowController(root_window)->GetContainer(
- kShellWindowId_MouseCursorContainer));
+ SetContainer(GetRootWindowController(root_window)
+ ->GetContainer(kShellWindowId_MouseCursorContainer));
SetBoundsInScreen(display.bounds());
// Updates the hot point based on the current display.
UpdateCursorImage();
@@ -239,23 +238,18 @@ void CursorWindowController::UpdateCursorImage() {
case display::Display::ROTATE_90:
rotated = gfx::ImageSkiaOperations::CreateRotatedImage(
*image, SkBitmapOperations::ROTATION_90_CW);
- hot_point_.SetPoint(
- rotated.width() - hot_point_.y(),
- hot_point_.x());
+ hot_point_.SetPoint(rotated.width() - hot_point_.y(), hot_point_.x());
break;
case display::Display::ROTATE_180:
rotated = gfx::ImageSkiaOperations::CreateRotatedImage(
*image, SkBitmapOperations::ROTATION_180_CW);
- hot_point_.SetPoint(
- rotated.height() - hot_point_.x(),
- rotated.width() - hot_point_.y());
+ hot_point_.SetPoint(rotated.height() - hot_point_.x(),
+ rotated.width() - hot_point_.y());
break;
case display::Display::ROTATE_270:
rotated = gfx::ImageSkiaOperations::CreateRotatedImage(
*image, SkBitmapOperations::ROTATION_270_CW);
- hot_point_.SetPoint(
- hot_point_.y(),
- rotated.height() - hot_point_.x());
+ hot_point_.SetPoint(hot_point_.y(), rotated.height() - hot_point_.x());
break;
}
// Note that mirror window's scale factor is always 1.0f, therefore we
« no previous file with comments | « ash/dip_unittest.cc ('k') | ash/display/display_change_observer_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698