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

Unified Diff: ash/wm/workspace/frame_maximize_button.cc

Issue 10855150: Revert 151485 - Adding unit tests for maximize menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/workspace/frame_maximize_button.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/frame_maximize_button.cc
===================================================================
--- ash/wm/workspace/frame_maximize_button.cc (revision 151488)
+++ ash/wm/workspace/frame_maximize_button.cc (working copy)
@@ -32,9 +32,6 @@
// Delay before forcing an update of the snap location.
const int kUpdateDelayMS = 400;
-// The delay of the bubble appearance.
-const int kBubbleAppearanceDelayMS = 200;
-
}
// EscapeEventFilter is installed on the RootWindow to track when the escape key
@@ -110,8 +107,7 @@
is_snap_enabled_(false),
exceeded_drag_threshold_(false),
window_(NULL),
- snap_type_(SNAP_NONE),
- bubble_appearance_delay_ms_(kBubbleAppearanceDelayMS) {
+ snap_type_(SNAP_NONE) {
// TODO(sky): nuke this. It's temporary while we don't have good images.
SetImageAlignment(ALIGN_LEFT, ALIGN_BOTTOM);
}
@@ -206,8 +202,7 @@
}
maximizer_.reset(new MaximizeBubbleController(
this,
- frame_->GetWidget()->IsMaximized(),
- bubble_appearance_delay_ms_));
+ frame_->GetWidget()->IsMaximized()));
}
}
@@ -290,8 +285,7 @@
if (!maximizer_.get()) {
maximizer_.reset(new MaximizeBubbleController(
this,
- frame_->GetWidget()->IsMaximized(),
- bubble_appearance_delay_ms_));
+ frame_->GetWidget()->IsMaximized()));
} else {
// If the menu did not show up yet, we delay it even a bit more.
maximizer_->DelayCreation();
« no previous file with comments | « ash/wm/workspace/frame_maximize_button.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698