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

Unified Diff: ash/wm/default_state.h

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: 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
Index: ash/wm/default_state.h
diff --git a/ash/wm/default_state.h b/ash/wm/default_state.h
index 72e1f74fb71bce2b7434fce9b86b196111e0b4bb..c362ede0a10c1b4d1b776d7ec704ac3c5e835880 100644
--- a/ash/wm/default_state.h
+++ b/ash/wm/default_state.h
@@ -17,9 +17,17 @@ class DefaultState : public WindowState::State {
virtual ~DefaultState();
// WindowState::State overrides:
- virtual void OnWMEvent(WindowState* window_state,
- WMEvent event) OVERRIDE;
+ virtual void OnWMEvent(WindowState* window_state, WMEvent event) OVERRIDE;
+
private:
+ // Process a stete dependent events, such as TOGGLE_MAXIMZIED,
pkotwicz 2014/02/12 22:27:27 "a stete" -> "state" TOGGLE_MAXIMZIED -> TOGGLE_MA
oshima 2014/02/13 14:52:34 Done.
+ // TOGGLE_FULLSCREEN.
+ static bool ProcessCompoundEvents(WindowState* window_state, WMEvent event);
+
+ // Update the window bounds according to the current and previous show type.
pkotwicz 2014/02/12 22:27:27 How about: "Animate to new window bounds based on
oshima 2014/02/13 14:52:34 Done.
+ static void UpdateBoundsFromShowType(wm::WindowState* window_state,
+ wm::WindowShowType old_show_type);
+
DISALLOW_COPY_AND_ASSIGN(DefaultState);
};

Powered by Google App Engine
This is Rietveld 408576698