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

Unified Diff: ash/wm/window_state.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, 11 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/window_state.h ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 8553b9cb27c411a4f17a1dc088ad337048b8ddb7..1e6e1db50c99a1aae5fb385d72fbb28af1d6252a 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -250,16 +250,12 @@ void WindowState::RemoveObserver(WindowStateObserver* observer) {
observer_list_.RemoveObserver(observer);
}
-bool WindowState::CreateDragDetails(aura::Window* window,
+void WindowState::CreateDragDetails(aura::Window* window,
const gfx::Point& point_in_parent,
int window_component,
aura::client::WindowMoveSource source) {
- scoped_ptr<DragDetails> details(new DragDetails(
- window, point_in_parent, window_component, source));
- if (!details->is_resizable)
- return false;
- drag_details_ = details.Pass();
- return true;
+ drag_details_.reset(
+ new DragDetails(window, point_in_parent, window_component, source));
}
void WindowState::DeleteDragDetails() {
« no previous file with comments | « ash/wm/window_state.h ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698