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

Side by Side Diff: ash/wm/panels/attached_panel_window_targeter.cc

Issue 1849623002: Remove unused ash::SHELF_ALIGNMENT_TOP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix autoformat problem with <x, >y 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/panels/attached_panel_window_targeter.h" 5 #include "ash/wm/panels/attached_panel_window_targeter.h"
6 6
7 #include "ash/shelf/shelf.h" 7 #include "ash/shelf/shelf.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/wm/panels/panel_layout_manager.h" 9 #include "ash/wm/panels/panel_layout_manager.h"
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 switch (panel_layout_manager_->shelf()->alignment()) { 54 switch (panel_layout_manager_->shelf()->alignment()) {
55 case SHELF_ALIGNMENT_BOTTOM: 55 case SHELF_ALIGNMENT_BOTTOM:
56 touch = gfx::Insets(touch.top(), touch.left(), 0, touch.right()); 56 touch = gfx::Insets(touch.top(), touch.left(), 0, touch.right());
57 break; 57 break;
58 case SHELF_ALIGNMENT_LEFT: 58 case SHELF_ALIGNMENT_LEFT:
59 touch = gfx::Insets(touch.top(), 0, touch.bottom(), touch.right()); 59 touch = gfx::Insets(touch.top(), 0, touch.bottom(), touch.right());
60 break; 60 break;
61 case SHELF_ALIGNMENT_RIGHT: 61 case SHELF_ALIGNMENT_RIGHT:
62 touch = gfx::Insets(touch.top(), touch.left(), touch.bottom(), 0); 62 touch = gfx::Insets(touch.top(), touch.left(), touch.bottom(), 0);
63 break; 63 break;
64 case SHELF_ALIGNMENT_TOP:
65 touch = gfx::Insets(0, touch.left(), touch.bottom(), touch.right());
66 break;
67 default: 64 default:
68 NOTREACHED(); 65 NOTREACHED();
69 return; 66 return;
oshima 2016/03/30 23:59:57 ditto
James Cook 2016/04/04 15:56:05 Done.
70 } 67 }
71 68
72 set_touch_extend(touch); 69 set_touch_extend(touch);
73 } 70 }
74 71
75 } // namespace ash 72 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698