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

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: rebase 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
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | ash/wm/panels/panel_layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
68 NOTREACHED();
69 return;
70 } 64 }
71 65
72 set_touch_extend(touch); 66 set_touch_extend(touch);
73 } 67 }
74 68
75 } // namespace ash 69 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | ash/wm/panels/panel_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698