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

Unified Diff: ash/wm/window_resizer.cc

Issue 9566014: Attempt 2: Allows tab dragging when maximized on aura. To fix it I made it so (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/toplevel_window_event_filter.cc ('k') | ash/wm/window_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_resizer.cc
diff --git a/ash/wm/window_resizer.cc b/ash/wm/window_resizer.cc
index e2838e989209101cb0f6b81b14bce3a301787fd5..2557a929f81472476eb19416b5683850413235a6 100644
--- a/ash/wm/window_resizer.cc
+++ b/ash/wm/window_resizer.cc
@@ -106,13 +106,6 @@ gfx::Point ConvertPointToParent(aura::Window* window,
return result;
}
-bool IsNormalWindow(aura::Window* window) {
- return window->GetProperty(aura::client::kShowStateKey) ==
- ui::SHOW_STATE_NORMAL ||
- window->GetProperty(aura::client::kShowStateKey) ==
- ui::SHOW_STATE_DEFAULT;
-}
-
} // namespace
// static
@@ -142,8 +135,7 @@ WindowResizer::WindowResizer(aura::Window* window,
GetPositionChangeDirectionForWindowComponent(window_component_)),
size_change_direction_(
GetSizeChangeDirectionForWindowComponent(window_component_)),
- is_resizable_(bounds_change_ != kBoundsChangeDirection_None &&
- IsNormalWindow(window)),
+ is_resizable_(bounds_change_ != kBoundsChangeDirection_None),
grid_size_(grid_size),
did_move_or_resize_(false),
root_filter_(NULL) {
« no previous file with comments | « ash/wm/toplevel_window_event_filter.cc ('k') | ash/wm/window_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698