| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |