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

Side by Side Diff: ash/wm/drag_details.cc

Issue 144713003: [Refactor] Kill some dead code because it is no longer possible to drag maximized windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/drag_details.h ('k') | ash/wm/window_state.h » ('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/drag_details.h" 5 #include "ash/wm/drag_details.h"
6 6
7 #include "ash/wm/window_resizer.h" 7 #include "ash/wm/window_resizer.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/base/hit_test.h" 9 #include "ui/base/hit_test.h"
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 bounds_change( 52 bounds_change(
53 WindowResizer::GetBoundsChangeForWindowComponent(window_component)), 53 WindowResizer::GetBoundsChangeForWindowComponent(window_component)),
54 position_change_direction( 54 position_change_direction(
55 WindowResizer::GetPositionChangeDirectionForWindowComponent( 55 WindowResizer::GetPositionChangeDirectionForWindowComponent(
56 window_component)), 56 window_component)),
57 size_change_direction( 57 size_change_direction(
58 GetSizeChangeDirectionForWindowComponent(window_component)), 58 GetSizeChangeDirectionForWindowComponent(window_component)),
59 is_resizable(bounds_change != WindowResizer::kBoundsChangeDirection_None), 59 is_resizable(bounds_change != WindowResizer::kBoundsChangeDirection_None),
60 source(source), 60 source(source),
61 should_attach_to_shelf(window->type() == ui::wm::WINDOW_TYPE_PANEL && 61 should_attach_to_shelf(window->type() == ui::wm::WINDOW_TYPE_PANEL &&
62 wm::GetWindowState(window)->panel_attached()), 62 wm::GetWindowState(window)->panel_attached()) {
63 window_resizer(NULL) {
64 wm::WindowState* window_state = wm::GetWindowState(window); 63 wm::WindowState* window_state = wm::GetWindowState(window);
65 if (window_state->IsNormalShowState() && 64 if (window_state->IsNormalShowState() &&
66 window_state->HasRestoreBounds() && 65 window_state->HasRestoreBounds() &&
67 window_component == HTCAPTION) 66 window_component == HTCAPTION)
68 restore_bounds = window_state->GetRestoreBoundsInScreen(); 67 restore_bounds = window_state->GetRestoreBoundsInScreen();
69 } 68 }
70 69
71 DragDetails::~DragDetails() { 70 DragDetails::~DragDetails() {
72 } 71 }
73 72
74 } // namespace ash 73 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/drag_details.h ('k') | ash/wm/window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698