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

Unified Diff: ash/wm/toplevel_window_event_handler.cc

Issue 149303003: [Refactor] Move the logic to update bounds for show type from WorkspaceLayoutManager to DefaultState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handle show_inactive 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/resize_handle_window_targeter.cc ('k') | ash/wm/window_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/toplevel_window_event_handler.cc
diff --git a/ash/wm/toplevel_window_event_handler.cc b/ash/wm/toplevel_window_event_handler.cc
index 156ff04472de54e73176fbff535b03369845f0c5..1dbb6b4d66689bf2bf5fe94dc1d4ee91ce72139d 100644
--- a/ash/wm/toplevel_window_event_handler.cc
+++ b/ash/wm/toplevel_window_event_handler.cc
@@ -104,8 +104,8 @@ class ToplevelWindowEventHandler::ScopedWindowResizer
virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
// WindowStateObserver overrides:
- virtual void OnWindowShowTypeChanged(wm::WindowState* window_state,
- wm::WindowShowType type) OVERRIDE;
+ virtual void OnPreWindowShowTypeChange(wm::WindowState* window_state,
+ wm::WindowShowType type) OVERRIDE;
private:
ToplevelWindowEventHandler* handler_;
@@ -144,7 +144,8 @@ void ToplevelWindowEventHandler::ScopedWindowResizer::OnWindowHierarchyChanging(
handler_->CompleteDrag(DRAG_COMPLETE);
}
-void ToplevelWindowEventHandler::ScopedWindowResizer::OnWindowShowTypeChanged(
+void
+ToplevelWindowEventHandler::ScopedWindowResizer::OnPreWindowShowTypeChange(
wm::WindowState* window_state,
wm::WindowShowType old) {
handler_->CompleteDrag(DRAG_COMPLETE);
« no previous file with comments | « ash/wm/resize_handle_window_targeter.cc ('k') | ash/wm/window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698